Number Base Converter
This free number base converter translates an integer from any base between 2 and 36 into binary, octal, decimal, hexadecimal and base 36 all at once, plus one custom target base you can pick yourself.
How to use
- Type an integer using the digits of its base (0-9 plus A-Z for bases above 10).
- Pick the source base from 2 to 36, or keep auto-detect and let the tool infer it.
- Read binary, octal, decimal, hex and base 36 side by side as you type.
- Optionally choose a custom target base to add a sixth row.
Frequently asked questions
How does auto-detect choose the source base?
It takes the smallest base that can represent every character you typed — the highest digit value plus one, at least 2. So 1010 reads as binary, 77 as octal, 19 as decimal, FF as hexadecimal and ZZ as base 36. Pick an explicit base when you want to override that.
How are very large numbers handled?
All parsing and formatting runs on BigInt, so results stay exact at any length — 9007199254740993 converts precisely even though plain JavaScript numbers would already corrupt it past 2^53. There is no cutoff where the tool silently switches to an approximate path.
Are decimals and fractions supported?
No — the converter handles integers only. A decimal point is rejected with an explicit error naming its position instead of being truncated or approximated, so a wrong paste never produces a quietly wrong answer.
Which letters are valid and how is case treated?
Digits above 9 use the letters A through Z (A=10 … Z=35). Input is case-insensitive, so ff, Ff and FF all mean 255 in hexadecimal; output letters are always uppercase. An invalid character is reported at the first position where it appears.
What about negative numbers?
A leading minus sign is parsed as the sign and preserved in every target base, so -42 becomes -101010 in binary, -2A in hex and -16 in base 36. A lone sign with no digits is rejected.
Related tools
About this tool
This free number base converter translates an integer from any base between 2 and 36 into binary, octal, decimal, hexadecimal and base 36 all at once, plus one custom target base you can pick yourself. Type a number, choose its source base or leave the auto-detect on, and every representation appears as you type. The parser checks the character domain strictly: a digit that cannot exist in the source base is rejected with the position of the first offending character, so FF2C typed as base 10 fails at the F instead of producing a silent guess. Auto-detect picks the smallest base that can represent every character you typed — 1010 reads as binary, FF as hexadecimal. Arithmetic runs on JavaScript BigInt, so numbers far beyond the 64-bit comfort zone convert exactly instead of quietly losing digits, and a leading minus sign is carried into every target base. Only whole numbers are supported: a decimal point is reported as an explicit error rather than truncated. Everything runs locally in your browser.