How to convert hex to binary
Hexadecimal uses 16 digits, 0 to 9 and then A to F for ten to fifteen. Because 16 is 2⁴, every hex digit maps to exactly four bits. So the conversion is a straight swap: A7 is 1010 (A) followed by 0111 (7), giving 10100111.
Hex to binary chart
| Hex | Binary | Decimal | Hex | Binary | Decimal |
|---|---|---|---|---|---|
| 0 | 0000 | 0 | 8 | 1000 | 8 |
| 1 | 0001 | 1 | 9 | 1001 | 9 |
| 2 | 0010 | 2 | A | 1010 | 10 |
| 3 | 0011 | 3 | B | 1011 | 11 |
| 4 | 0100 | 4 | C | 1100 | 12 |
| 5 | 0101 | 5 | D | 1101 | 13 |
| 6 | 0110 | 6 | E | 1110 | 14 |
| 7 | 0111 | 7 | F | 1111 | 15 |
Where you'll see hex
- Web colors: #FF8800 is three bytes, FF (red), 88 (green) and 00 (blue).
- Memory addresses and error codes in programming, usually with a 0x prefix.
- Unicode code points, such as U+00E9 for é.
To go back, use the binary to hex converter. For decimal values, see binary to decimal.