22 · Calculators

Binary, Hex & Decimal Converter

Choose the base you’re starting from, type a number, and see it in every other base. Large numbers are converted exactly.

Binary, Hex & Decimal Converter

Hexadecimal

—

How to use the binary, hex & decimal converter

  1. Choose the base of the number you have.
  2. Type the number. Prefixes like 0x and 0b, spaces and underscores are fine.
  3. Read the value in the other bases.

A quick guide to number bases

Binary (base 2)
Digits 0 and 1. How computers store everything.
Octal (base 8)
Digits 0–7. Still used for Unix file permissions, like 755.
Decimal (base 10)
The everyday number system.
Hexadecimal (base 16)
Digits 0–9 and A–F. Compact for bytes, colours (#FF8800) and memory addresses.

Examples

255 in decimal

FF hex · 11111111 binary · 377 octal

0x1F4 in hex

500 decimal

Questions

How large can the number be?

Up to 256 digits. The converter uses arbitrary-precision integers, so there’s no rounding.

Does it handle negative numbers?

Yes, with a leading minus sign. It doesn’t produce two’s-complement form.

What about fractions?

Only whole numbers are supported.