Number Base Converter
Convert between binary, octal, decimal, and hexadecimal. Type in any field to update all others.
Number system reference
- Binary (base 2): digits 0–1. Used in digital logic and CPU instructions.
- Octal (base 8): digits 0–7. Used in Unix file permissions.
- Decimal (base 10): digits 0–9. The everyday number system.
- Hexadecimal (base 16): digits 0–9 and A–F. Used in memory addresses, colours, and byte representations.
When you need number base conversion
Programmers encounter number bases constantly. Binary (base-2) is the native language of CPUs. Hexadecimal (base-16) compactly represents binary: each hex digit represents exactly 4 binary bits, making it easy to read memory addresses, colour values, and byte sequences. Octal (base-8) was common in early Unix systems for file permissions (chmod 755).
- Binary (base-2) — only 0 and 1, used in CPU operations, bit manipulation, and logical flags
- Octal (base-8) — digits 0-7, used for Unix file permissions (e.g. chmod 755 = 111 101 101 in binary)
- Decimal (base-10) — everyday numbers, 10 digits 0-9
- Hexadecimal (base-16) — digits 0-9 then A-F, used for memory addresses, colours (#FF5733), and byte values
Frequently Asked Questions
About the Number Base Converter
What it does
Converts integers between decimal (base 10), binary (base 2), octal (base 8), and hexadecimal (base 16). All four representations update simultaneously as you type in any field.
Why different bases?
Binary is the native language of computers. Hexadecimal is used in programming, colour codes, and memory addresses because it compactly represents binary data — each hex digit maps to exactly 4 binary bits.
- Decimal (base 10) — digits 0–9; everyday counting system
- Binary (base 2) — digits 0–1; the foundation of all digital computing
- Octal (base 8) — digits 0–7; used in Unix/Linux file permissions
- Hexadecimal (base 16) — digits 0–9 and A–F; used in colours, memory, and programming