Number Base Converter
Convert a number between binary, octal, decimal, hex, and any base from 2 to 36. Very large numbers stay exact.
Runs on your device.
Auto: a 0x prefix is hex, 0o is octal, 0b is binary, and no prefix is decimal.
How to Use It
- Enter the number. The 0x, 0o, and 0b prefixes and Persian digits are accepted.
- If the input has no prefix, choose its base.
- Copy each base with the button next to it.
Questions and Answers
How large can the number be?
Up to 10,000 digits. The tool uses BigInt, so unlike many calculators, it does not round the last digits of large numbers.
What is base 36?
A base that uses the digits 0 to 9 and the letters a to z. It is used for short IDs, such as in short links.
Good to Know
Only whole numbers are accepted, not fractions. A negative number is written with a minus sign, not as two's complement.
Related Tools
- Unix Timestamp ConverterConvert a Unix timestamp to a Jalali, Gregorian, or ISO 8601 date, or a Jalali or Gregorian date to a timestamp. Seconds and milliseconds are detected for you.
- Unicode Escape and UnescapeConvert text to Unicode escapes such as \u0633 or U+0633, or decode strings such as \u0633\u0644\u0627\u0645 back to readable text.