How to use the Hex to Binary Converter
- Type or paste the hex number into the first box.
- Read the binary result in the second box, and click Copy to copy it.
- Scroll to How it works for the step-by-step method.
How to convert hex to binary
Replace each hex digit with its four-bit binary value: 0 = 0000, 9 = 1001, A = 1010, F = 1111. Then join the groups together.
Example: 3F → 0011 and 1111 → 0011 1111, or 111111 without the leading zeros.
Reference table
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 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 | 8 | 10 |
| 9 | 1001 | 9 | 11 |
| 10 | 1010 | A | 12 |
| 11 | 1011 | B | 13 |
| 12 | 1100 | C | 14 |
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
Frequently asked questions
Do I keep the leading zeros?
They don't change the value. Keep them if you need a fixed width, such as a full byte.
What is FF in binary?
11111111.