Free exact browser converter
Decimal to Base36 Converter
Convert decimal integers to Base36 online using digits 0–9 and A–Z. Keep large numbers exact with BigInt and choose uppercase or lowercase output.
Interactive tool
Convert Decimal to Base36
Ready
Choose a clear output representation.
Detailed conversion guide
How to Convert Decimal to Base36
Base36 uses ten decimal digits and 26 letters. Their values run from 0 through 35, so decimal 35 becomes Z and decimal 36 becomes 10. Repeated division by 36 yields the output digits; 46655 is ZZZ.
The full decimal string is parsed as BigInt before formatting in base 36. Values above 2^53 − 1 stay exact. Uppercase and lowercase outputs represent the same integer, which is useful when checking compact numeric IDs.
| Input | Output | Meaning |
|---|---|---|
0 | 0 | zero |
35 | Z | last single digit |
46655 | ZZZ | 36³ − 1 |
9007199254740993 | 2GOSA7PA2GX | above Number precision |
Exact Decimal to Base36 in JavaScript
The algorithm validates the representation before exact integer conversion, so malformed input never produces a plausible partial answer.
const digits = input.trim().replace(/[\s_]/g, "");
if (!/^[0-9]+$/.test(digits)) throw Error("Invalid decimal");
const base36 = BigInt(digits).toString(36).toUpperCase();Numeric IDs, Case, and Unsupported Input
This is an integer representation converter. It does not encrypt IDs or encode arbitrary text. Signs, fractional values, and scientific notation such as 1e3 are rejected without a partial result.
Leading decimal zeros are discarded because the output describes a value, not a fixed-width identifier. Spaces and underscores join digits. Use the reverse Base36 to Decimal tool to verify the value; do not use parseInt for integers beyond Number precision.
Related converters
Continue with exact representation converters
Choose a converter for the formats you are working with.