Hex to Binary Converter With Steps
Enter a hex value to see the bits behind it.
How it works
Going from hex to binary is a lookup. Replace every hex digit with its four bit pattern and write the patterns side by side. Nothing needs adding or dividing.
Keep the leading zeros inside each group, or the digits will shift. The digit 6 must become 0110, not 110. Only zeros at the very front of the whole number can be dropped.
This is the reason hex is everywhere in computing. A colour such as #FF8800, a MAC address or a memory dump is really a string of bits, and hex lets you read them four at a time without losing track.
Worked example
D6: D is 1101 and 6 is 0110. Put together: 11010110.
Decimal, binary, octal and hex from 0 to 15
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
Common questions
How many bits is one hex digit?
Four. Two hex digits make one byte.
Does it matter if hex letters are upper or lower case?
No. ff and FF are the same number.