How to use it
- Type a hex number (0x prefix optional).
- Read the binary result, grouped in fours.
- Check how each hex digit becomes four bits.
- Copy the result or reverse the conversion.
How to convert hex to binary
Replace each hex digit with its four-bit binary equivalent and join the groups:
Example: 3C
3 → 0011, C → 1100, so 3C = 0011 1100 = 111100 without the leading zeros.
Example: 0xA5F → 1010 0101 1111
| Hex | Bits | Hex | Bits |
|---|---|---|---|
| 0 | 0000 | 8 | 1000 |
| 1 | 0001 | 9 | 1001 |
| 2 | 0010 | A | 1010 |
| 3 | 0011 | B | 1011 |
| 4 | 0100 | C | 1100 |
| 5 | 0101 | D | 1101 |
| 6 | 0110 | E | 1110 |
| 7 | 0111 | F | 1111 |
This is handy for reading bit flags, network masks and color channels: 0xFF is 1111 1111 (all eight bits set) and 0x80 is 1000 0000 (only the top bit). The tool also reports how many bits the number uses. For the decimal value, use hex to decimal.
Frequently asked questions
What is F in binary?
What is 0xFF in binary?
How many bits is one hex digit?
Exactly four.
Last updated: November 12, 2026