Number Base Converter

Binary, octal, decimal and hex, all at once.

How to use

  1. Pick the base of your input number (decimal, binary, octal, hex, or custom).
  2. Type the number into the input field.
  3. The value appears simultaneously in all standard bases.
  4. Open the custom-base panel to convert to any radix from 2 to 36.
  5. Copy any result with a single tap.

Frequently asked questions

What bases are supported?

Any base from 2 (binary) to 36, which is the largest base representable with digits 0-9 and letters A-Z. Common ones (2, 8, 10, 16) have their own quick-access fields.

Does it handle negative numbers and fractions?

Negative integers are supported across all bases. Fractional parts are supported for decimal and hex; for other bases, fractional support depends on the chosen precision.

How big can the numbers be?

The converter uses BigInt for integer conversions, so any size of whole number works. Fractional values are limited by JavaScript double precision, around 15-17 significant digits.

Why is hex sometimes written as 0x?

The 0x prefix is a C-language convention to mark a hexadecimal literal. The converter accepts it on input and never emits it on output.

Advertisement