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.

0b
0o
0x

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

DecBinOctHex
0000
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
1281000000020080
25511111111377FF

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.

Related Tools