Number Base Converter

Convert between decimal, binary, octal, and hex — all four update live.

GenerateMake a QR codeQR codes for links, Wi-Fi, and contacts — no watermark, no sign-up.Create

Type in any field — the other three convert live. Each field only accepts digits valid for its base.

How to convert a number

Type a value into whichever field matches your base — decimal, binary, octal, or hex. The other three fields update live with the converted value. Each field accepts only digits valid for its base.

Where base conversion helps

Reading hex color codes and memory addresses, working with binary flags and bitmasks, or decoding octal file permissions. Seeing all four bases side by side makes the relationships obvious.

Questions

Which bases can I convert between?
Decimal (base 10), binary (base 2), octal (base 8), and hexadecimal (base 16). Type into any one field and the other three convert instantly, so it works in every direction.
How big a number can it handle?
It uses JavaScript's exact integer math, so values up to about 9 quadrillion (2^53) convert precisely. Beyond that, floating-point limits apply, which is plenty for typical addresses, flags, and color values.