Convert decimal numbers to Base36 and back
A Base36 converter lets you represent regular decimal numbers using a shorter alphabet made from:
- 0-9
- A-Z or a-z
That makes Base36 useful when you want compact numeric strings that are still readable and easy to copy.
This tool supports both directions:
- Decimal → Base36
- Base36 → Decimal
You can convert single values or process a full list line by line, all directly in your browser.
What Base36 actually is
Base36 is a positional number system, just like decimal, binary, or hexadecimal.
The difference is the number of symbols available.
- Decimal uses 10 symbols:
0-9 - Hexadecimal uses 16 symbols:
0-9andA-F - Base36 uses 36 symbols:
0-9andA-Z
Because Base36 has more symbols than decimal, it can represent the same numeric value using fewer characters.
That is why Base36 often appears in:
- compact IDs
- short codes
- internal database references
- invite codes
- URL-friendly numeric strings
- developer tools and scripts
Why Base36 is useful
The main advantage of Base36 is compactness without punctuation.
If you convert a large decimal value into Base36, the result is often noticeably shorter while still staying readable.
This makes Base36 useful when you want values that are:
- shorter than decimal
- easier to copy than longer numbers
- limited to letters and digits only
- friendlier for URLs, filenames, and identifiers
Compared with formats that include symbols, Base36 also avoids many characters that can create friction in forms, command lines, or text processing pipelines.
What this tool does
This tool gives you a fast way to convert between decimal integers and Base36 strings.
You can:
- encode decimal numbers into Base36
- decode Base36 back into decimal
- process one value or many values at once
- trim messy input lines automatically in batch mode
- choose uppercase encoded output
- copy the result instantly
Because the conversion updates live, it is easy to test values, compare formats, and work through lists quickly.
Supported conversion directions
Decimal → Base36
Use this mode when you want to make numeric values shorter and more compact.
Examples of when this is useful:
- turning database IDs into shorter readable strings
- generating compact user-facing codes
- comparing how large numbers shrink in Base36
- preparing numeric values for URL-safe text use
Base36 → Decimal
Use this mode when you need to inspect or validate an existing Base36 string.
This is useful for:
- debugging shortened IDs
- verifying stored identifiers
- reversing examples from documentation or code
- understanding the original numeric value behind a compact code
How to use the tool
1. Choose the direction
Use the mode toggle inside the input area:
- Decimal → Base36
- Base36 → Decimal
2. Paste or type your values
Depending on the selected mode:
- enter a whole decimal number
- or enter a valid Base36 value
Negative values are also supported.
3. Decide whether to batch by newline
If Batch by newline is enabled, the tool processes one value per line.
This is especially useful when you have:
- lists of IDs
- sample values from logs
- many test cases
- migration or mapping data
4. Keep Trim lines on when needed
If your input contains accidental spaces, Trim lines helps clean each line before conversion.
5. Choose uppercase output when encoding
When converting decimal to Base36, you can enable Uppercase output.
This is useful when you want a consistent style for:
- product codes
- invite codes
- visible identifiers
- documentation examples
6. Copy the result
Use the Copy button to grab the output instantly.
Understanding the controls
Batch by newline
When enabled, each line is treated as a separate conversion.
Example input:
123
456
789
Produces one converted result per line.
This is ideal for batch work where you want speed and consistency.
Trim lines
This removes leading and trailing spaces from each line before processing.
It is useful when values come from:
- spreadsheets
- copied logs
- CSV snippets
- manually edited lists
Keeping it enabled helps reduce avoidable validation errors.
Uppercase output
When encoding decimal to Base36, you can choose uppercase letters instead of lowercase.
For example, a Base36 result can appear as:
kf12x- or
KF12X
The numeric value is the same either way. This setting only changes the display style of encoded output.
Practical examples
Shorten large numeric IDs
A long decimal ID can often be represented with fewer characters in Base36.
This is useful for:
- internal references
- compact tracking codes
- shorter shared identifiers
Decode an existing Base36 string
If you have a Base36 ID from a database, app, or URL and want to know its original decimal value, switch to Base36 → Decimal.
Batch-convert a full list of numbers
Paste one value per line and convert everything in a single pass.
This is helpful when validating datasets or building mappings between decimal and Base36 values.
Standardize encoded values for output
If your system or documentation prefers uppercase codes, enable Uppercase output to keep the encoded results consistent.
Common mistakes and how to fix them
“Invalid decimal number”
This means the input is not a valid whole number.
Common causes:
- decimal points
- commas
- spaces inside the number
- letters mixed into decimal input
Fix:
- enter only whole integers, optionally with a leading minus sign
“Invalid Base36 value”
This means the input contains characters outside the Base36 alphabet.
Valid Base36 characters are:
0-9A-Za-z- optional leading
-
Fix:
- remove invalid symbols
- make sure the value is truly Base36
- keep Trim lines enabled for copied input
The output is longer than expected
Base36 is shorter than decimal for many large values, but very small numbers may not look dramatically different.
That is normal. The biggest gains appear with larger integers.
Uppercase looks different from lowercase
That only changes the text style, not the numeric value.
For example:
abc123ABC123
Both represent the same Base36 number.
How Base36 conversion works
At a high level, Base36 conversion is straightforward.
Decimal to Base36
- start with a whole decimal number
- repeatedly divide by 36
- map each remainder to a Base36 digit
- build the output string from those digits
Base36 to Decimal
- read each character in the Base36 string
- convert it to its numeric digit value
- multiply the running total by 36
- add the next digit value
This tool uses big integer conversion, which is why it can handle very large whole numbers reliably.
Why this tool is useful
You can always convert values in code, but for many everyday tasks that is unnecessary overhead.
This tool is useful when you want:
- a quick browser-based converter
- side-by-side input and output
- support for very large integers
- batch conversion without scripts
- private processing without uploading data
It is especially practical for developers, QA workflows, migrations, internal tooling, and documentation work.
Perfect for
- developers working with compact IDs and codes
- admins validating numeric identifiers
- QA and support teams converting lists of values
- makers building invite codes or URL-safe numeric strings
- anyone who needs a private, browser-based decimal and Base36 converter
Convert, batch-process, copy, and move on — without opening a terminal or sending your values anywhere.