Number Base Converter
Binary (Base 2)
-
Octal (Base 8)
-
Hexadecimal (Base 16)
-
Computers store all data in binary (base 2). Hexadecimal (base 16) is a compact shorthand - each hex digit represents exactly 4 bits, which is why it is common in color codes (#FF0000), memory addresses, and byte-level data.
1.
Select the input base (binary, octal, decimal, or hexadecimal)
2.
Enter your number - all other representations appear instantly
▸
Converting memory addresses from hex to decimal while debugging
▸
Understanding binary representations of integers in low-level code
▸
Converting color channel values between decimal and hex
What bases does this support?
The tool converts between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) - the four most common number bases in computing.
Where is hexadecimal used?
Hexadecimal is used extensively in computing for memory addresses, color codes (#FF6600), bytecodes, and debug output because one hex digit represents exactly four binary bits.
Is there a maximum input size?
The tool uses JavaScript BigInt internally, so it can handle arbitrarily large integers with full precision - no upper limit beyond available memory.
Is my data sent to a server?
All conversion runs locally in your browser. No data is transmitted anywhere.
Can I enter negative numbers?
The tool handles positive integers. Negative number representation (two's complement) varies by bit width and is not directly supported.