How the Number Base Converter Works
AnyTool Number Base Converter performs every conversion in the browser using a "value-to-base-to-value" model. The input string is parsed in its chosen base into a single canonical BigInt — accumulating digit × base + nextDigit — and that BigInt is then formatted into binary, octal, decimal, hexadecimal and any selected radix from 2 to 36. Because BigInt is arbitrary-precision, a full 64-bit value such as 0xFFFFFFFFFFFFFFFF converts exactly, whereas tools built on ordinary JavaScript numbers lose precision above 2^53. A leading minus sign denotes a negative integer, and 0x / 0b / 0o prefixes, spaces and underscores are accepted on input.
- Any radix from 2 to 36, with binary/octal/decimal/hex shown at once
- All arithmetic is BigInt — 64-bit and longer values never round
- Input is parsed to one canonical integer, then formatted to every base
- Accepts signs, 0x/0b/0o prefixes and digit-group separators
- Editing the value or the input base reconverts live
