Binary, Hex & Octal Converter
Convert numbers between binary, decimal, hexadecimal, and octal bases. See all representations simultaneously as you type.
Runs in your browser. No data leaves your device.
Frequently Asked Questions
How does the Number Base Converter work?
The tool uses JavaScript's parseInt() to read the input in its source base, then Number.toString(base) to convert to each target base. All four fields (binary, octal, decimal, hex) are recalculated simultaneously whenever you type in any one of them. The conversion is pure arithmetic with no server calls.
What number bases are supported?
Binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). All four representations update simultaneously as you type in any field.
Why would I need to convert between number bases?
Programmers use binary and hexadecimal to work with memory addresses, color codes, file data, and hardware registers. Hex is a compact way to represent binary values -- each hex digit maps to exactly 4 binary bits.
Can I convert large numbers?
Yes. The tool handles numbers up to JavaScript's safe integer limit. For most programming tasks, this covers any value you would encounter in real-world code.