Binary to hex table
| Binary | Hex | Binary | Hex |
|---|---|---|---|
0000 | 0 | 1000 | 8 |
0001 | 1 | 1001 | 9 |
0010 | 2 | 1010 | A |
0011 | 3 | 1011 | B |
0100 | 4 | 1100 | C |
0101 | 5 | 1101 | D |
0110 | 6 | 1110 | E |
0111 | 7 | 1111 | F |
Worked examples
1000→ 81011→ B1101→ D0111→ 71001→ 91010 1010→ AA1 1111 0100→ pad to0001 1111 0100→ 1F4 (500 in decimal)
Why programmers use hex
Hex is a shorthand for binary: two hex digits are exactly one byte. Colours (#FF8800), memory addresses, MAC addresses and file signatures are all written in hex because it is four times shorter than binary and converts without any arithmetic.
Frequently asked questions
How do you convert binary to hexadecimal?
Split the binary into groups of 4 bits from the right, pad the leftmost group with zeros, then replace each group with its hex digit (0000 = 0 … 1111 = F).
What is 10101010 in hex?
AA. 1010 is A, so 1010 1010 is AA (170 in decimal).
Why are there letters in hex?
Base 16 needs sixteen single digits. After 0–9, the letters A–F stand for 10–15.
Keep going
Last reviewed 28 November 2026. Conversions run entirely in your browser.