Base Converter
Binary · Decimal · Hex · Octal ⚡
Enter a number in any base and instantly convert it to all others. Supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
Enter a number in any base and instantly convert it to all others. Supports binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
Binary (Base 2) — Uses only 0 and 1. The fundamental language of computers — all data is stored as binary at the hardware level.
Octal (Base 8) — Uses digits 0–7. Historically used in computing as a compact representation of binary (each octal digit = 3 binary digits).
Decimal (Base 10) — The everyday number system using digits 0–9.
Hexadecimal (Base 16) — Uses digits 0–9 and letters A–F. Widely used in programming, colour codes (#FF5733), and memory addresses because each hex digit = 4 binary digits (one nibble).
What is hexadecimal used for?
Hex is used in programming for colour codes (HTML/CSS), memory addresses, machine code, and error codes. It is compact — two hex digits represent one byte (8 bits) of data.
How do I read binary?
Each binary digit (bit) represents a power of 2. Starting from the right: 2⁰=1, 2¹=2, 2²=4, 2³=8, and so on. Add up the values of all positions containing a 1. For example, 1011 = 8+2+1 = 11.
What is a nibble?
A nibble is 4 bits (half a byte). One hex digit represents exactly one nibble, which is why hex is so useful in computing.