Skip to main content
HandyWeb

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.

Input base

Auto: a 0x prefix is hex, 0o is octal, 0b is binary, and no prefix is decimal.

How to Use It

  1. Enter the number. The 0x, 0o, and 0b prefixes and Persian digits are accepted.
  2. If the input has no prefix, choose its base.
  3. 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.

Source code of this toolReport a problem on GitHub