Number Base Converter
Convert numbers between Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16) instantly. All formats update in real time.
About this tool
Number base conversion is fundamental in computer science and digital electronics. Decimal (base 10) is what humans use daily. Binary (base 2) is how computers store data. Hexadecimal (base 16) is a compact way to represent binary values, and Octal (base 8) was historically used in Unix file permissions.
This converter updates all four bases in real time as you type in any field. All calculations happen in your browser with zero server calls.
menu_bookQuick Reference
| Dec | Bin | Oct | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 4 | 100 | 4 | 4 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 128 | 10000000 | 200 | 80 |
| 255 | 11111111 | 377 | FF |
lightbulbTip
Type in any field and all other bases update instantly. Only valid digits for each base are accepted (binary: 0-1, octal: 0-7, hex: 0-9 and A-F).
Frequently Asked Questions
What number bases are supported?
The tool supports four bases: Binary (base 2, digits 0-1), Octal (base 8, digits 0-7), Decimal (base 10, digits 0-9), and Hexadecimal (base 16, digits 0-9 and A-F).
How large of a number can I convert?
The tool handles numbers up to JavaScript's safe integer limit (2^53 - 1, or 9,007,199,254,740,991). For most practical uses, this is more than sufficient.
Can I type in any base and see all others?
Yes. Type a number in any of the four fields and all other fields update in real time. The tool validates your input to ensure only valid digits for each base are accepted.