Number base converter

Type into any field: binary, octal, decimal, and hex stay in sync. Arbitrarily large integers welcome.

Frequently asked questions

Why does hexadecimal exist?

One hex digit is exactly four binary bits, so hex is compressed binary a human can read: 0xFF is 11111111. That is why memory addresses, color codes, and hashes are written in hex.

How large a number can this handle?

Effectively unlimited: it uses JavaScript BigInt rather than floating point, so numbers past the usual 9,007,199,254,740,991 (2^53 - 1) safe-integer limit convert exactly.

Are prefixes like 0x and 0b accepted?

Yes, 0x, 0b, and 0o prefixes are stripped automatically, and spaces or underscores used as digit separators are ignored.