Number Base Converter
Convert between binary, octal, decimal, hex, and ASCII text with exact 64-bit BigInt math. Runs entirely in your browser.
Input
How it works
- Enter a value and pick its base — or switch to ASCII text to pack up to 8 characters into a 64-bit integer (big-endian byte order).
- Binary is grouped in nibbles, octal gets the
0oprefix, hex the0xprefix, and all arithmetic is exact BigInt — no float rounding up to 64 bits. - If the value fits a Unicode code point, the character is shown; values with the high bit set also get their signed 8/16/32/64-bit interpretations.
- Invalid digits for the selected base (for example
2in binary) produce a clear error instead of a wrong answer.
About Number Base Converter
Binary, octal, decimal, and hex are the same number in different uniforms — bit flags, color channels, and network masks are far easier to read in the right base. This converter shows every base at once, so you can flip between them without re-entering anything, and it accepts 0x / 0b / 0o prefixes so you can paste a value exactly as it appears in code.
Because browsers compute integers losslessly only up to 2^53, this tool uses BigInt throughout: values up to 64 bits convert exactly. The signed interpretation rows are the usual two’s-complement reading for 8/16/32/64-bit widths, which is what debuggers and CPU registers show when the high bit is set.