🔒 Runs in your browser — nothing is uploaded✓ Free, no signup

Number Base Converter

Type a number in binary, octal, decimal, hexadecimal or any base up to 36 and see it in every other base instantly — even numbers far larger than 64 bits.

Type in any box — the others update instantly. Works with numbers of any size.

When should you use the Number Base Converter?

  • Converting hex colour, memory or error codes to decimal
  • Checking binary flags and bit masks
  • Learning or teaching how number bases work

How to use the Number Base Converter

  1. 1

    Type in any box

    Enter a value in binary, octal, decimal or hex. The other boxes update as you type.

  2. 2

    Use prefixes if you like

    0x, 0b and 0o prefixes, spaces, commas and underscores are ignored.

  3. 3

    Try another base

    Pick any base from 2 to 36 in Custom base.

  4. 4

    Copy

    Copy the value you need. Tick 'Group digits' for easier reading.

Examples

255 in every base

Decimal

255

Converted

Binary       11111111
Octal        377
Hexadecimal  FF
Base 36      73

Common errors and how to fix them

"G" is not a valid base-16 digit
Each base only allows certain digits — hex uses 0–9 and A–F. Check you typed in the right box.
Negative numbers in binary
Negative values are shown with a minus sign, not two's complement. For two's complement, add 2^n to the negative number first.
Related tools: Text to Hex & Binary Converter · Color Picker & Converter · Hash Generator

More from Encoding & Security

Free tools that run in your browser — no signup, nothing uploaded.

Number Base Converter FAQ

Type the binary number in the Binary box and read the result in the Decimal box. Each binary digit is a power of 2: 1010 = 8 + 0 + 2 + 0 = 10.

Type the number in the Decimal box. Hexadecimal uses digits 0–9 and A–F, so 255 becomes FF.

There's no practical limit. The converter uses arbitrary-precision integers, so numbers with hundreds of digits convert exactly.

Base 36 uses the digits 0–9 and the letters A–Z. It's sometimes used for short IDs, because large numbers become compact strings.

No — it converts whole numbers (integers), which is what base conversion is usually needed for.

No. All conversions happen in your browser.