Number Base Converter
Convert a number between binary, octal, decimal, hexadecimal, or any base from 2 to 36. Big integers are handled exactly, so 64-bit hex values and long bit masks won't lose precision.
Convert a number between binary, octal, decimal, hexadecimal, or any base from 2 to 36. Big integers are handled exactly, so 64-bit hex values and long bit masks won't lose precision.
Computers think in binary, but humans rarely do. Hexadecimal packs four bits into one digit, which is why colors, memory addresses, and byte values show up as hex. Octal still turns up in Unix file permissions. Decimal is what the rest of the world counts in. Moving a value between these views is a constant small task when you're debugging, and getting it wrong by a digit is easy to do by hand.
Pick the base your input is written in, and the binary, octal, decimal, and hex versions update as you type. Binary is grouped into nibbles and hex into bytes so long values stay readable. You can paste values with 0x, 0b, or 0o prefixes and they'll be understood. For anything unusual, the custom base field covers every radix from 2 to 36, which is handy for base-32 or base-36 encodings.