Number Base Converter

Convert integers of any size between binary, octal, decimal, hexadecimal and base 36 using exact BigInt arithmetic.

Runs on your device

Result

Results appear here as you type.

What it does

Useful for bit masks, register values and colour codes. Because conversion uses BigInt, 64-bit and larger values convert exactly with no floating point rounding.

How to use it

  1. Choose the base of your input.
  2. Type the number (prefixes such as 0x and 0b are accepted).
  3. Read the value in every other base.

Example

The example fills in realistic values and runs the tool. Select Try an example above to see it.

When it helps

  • Reading microcontroller register dumps.
  • Checking subnet masks in binary.
  • Digital logic coursework.

Questions

Are fractions supported?

No, integers only. Negative values are shown with a minus sign rather than two’s complement.

Can I use underscores as separators?

Yes. Underscores and spaces are ignored, so 1111_0000 is read as 11110000.

More developer tools

See all 25

People also use

Browse all 200 tools