Number Base Converter — Binary, Octal, Decimal, Hexadecimal
This free online number base converter instantly converts numbers between the four most common numeral systems used in programming and computer science: binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
Number Systems Explained
- Binary (Base 2) — uses only 0 and 1. The fundamental language of computers and digital circuits. e.g.,
1010 = decimal 10.
- Octal (Base 8) — uses digits 0–7. Used in Unix file permissions (
chmod 755) and older computing systems.
- Decimal (Base 10) — the standard number system used in everyday life. Uses digits 0–9.
- Hexadecimal (Base 16) — uses digits 0–9 and letters A–F. Widely used in memory addresses, color codes (
#FF5733), HTML/CSS, and machine code.
Common Conversions
- Decimal 255 = Binary 11111111 = Octal 377 = Hex FF
- Decimal 16 = Binary 10000 = Octal 20 = Hex 10
- Decimal 1024 = Binary 10000000000 = Octal 2000 = Hex 400