Number Base Converter keeps decimal, binary, octal, and hexadecimal representations synchronized. Edit any of the four fields and the other three update immediately. Includes a 32-bit binary representation with nibble spacing for readability.
Edit any field — the others update automatically.
The tool uses JavaScript's standard number type, which safely represents integers up to 2^53 - 1 (about 9 quadrillion). For the 32-bit binary display specifically, values are treated as unsigned 32-bit integers, so numbers above 4,294,967,295 won't display correctly in that panel even though the main fields still convert them.
Currently the tool supports non-negative integers only. Negative number representation (two's complement) is not yet supported — entering a minus sign will not produce a valid conversion.
Each base validates its own character set as you type: binary only accepts 0 and 1, octal only accepts 0-7, and hex only accepts 0-9 and A-F. An invalid character for that base triggers a validation error message instead of updating the other fields.
It shows the decimal value as a full 32-bit binary string, grouped into 4-bit nibbles for readability. This is useful for understanding how a number is represented at the bit level, such as when working with bitwise operations or low-level protocols.
You can edit any of the four fields — decimal, binary, octal, or hexadecimal — and the other three update automatically to match.
No — enter hex digits directly (e.g. 2A, not 0x2A). The tool treats the entire field as hex digits without requiring or accepting a prefix.
Octal is less common in modern code but still appears in Unix/Linux file permission notation (e.g. chmod 755) and some legacy systems, which is why it's included alongside the more commonly used binary and hex.