Convert numbers between binary, octal, decimal, and hexadecimal simultaneously, plus any custom base from 2 to 36, with live conversion, arbitrary-precision (BigInt) accuracy, negative number support, and automatic bit-length detection.
Rather than converting one direction at a time, this tool treats all five fields — binary, octal, decimal, hexadecimal, and a custom base of your choosing — as different views of the exact same underlying value. Type into any field and the other four recalculate instantly; there's no separate 'convert' button or mode switch, since the whole point is being able to see a number's representation across every common base at a glance while you work.
Most base converters are built on ordinary floating-point numbers under the hood, which quietly lose precision once a value exceeds about 9 quadrillion (2^53) — a real, easy-to-hit limit when working with 64-bit hex values, hash fragments, or large IDs. This tool is built on JavaScript's BigInt type from the ground up, so it handles values of genuinely unlimited size — a 128-bit number, a 256-bit number, or an arbitrarily large one — with exact, lossless accuracy in every base.
Binary, octal, decimal, and hexadecimal cover the vast majority of real-world needs, but base conversion isn't limited to those four — this tool supports any base from 2 up to 36, the maximum practical range using digits 0-9 combined with letters a-z. Base 36 in particular is a genuinely useful, compact encoding used by URL shorteners and ID generators; base 3, base 5, and other unusual bases occasionally show up in computer science coursework, puzzles, and certain algorithmic problems.
Alongside the converted value itself, the tool calculates the exact minimum number of bits needed to represent the current value's magnitude, and flags which common fixed-width integer size (8, 16, 32, 64, or 128 bits) it fits comfortably within. This is a quick, practical sanity check for a very common real task — confirming a value won't silently overflow a specific integer type before you commit it to code, a database column, or a binary file format with a fixed-width field.
Developers reach for base conversion constantly and often without thinking of it as a distinct task: reading a hex color code as its decimal RGB components, decoding a Unix file permission octal value (like 755) into what it actually grants, working out a subnet mask or IP address in binary, converting a hash digest fragment between hex and decimal for a database lookup, or simply double-checking a bitwise operation's result by seeing its binary representation directly instead of mentally converting from decimal.
Number Base Converter pairs naturally with these developer tools for encoding, formatting, and low-level debugging.