Hex ↔ Binary Converter
Convert hexadecimal to binary (and back), one value or a whole list — grouped by nibble or by byte.
● Your data is processed locally in your browser and is never uploaded to our servers.
How to use the converter
- Choose Hexadecimal as the source base and Binary as the target — or the reverse for binary to hex.
- Paste your values, one per line.
- Choose Groups of 4 to see each hex digit's bits, or Groups of 8 for bytes. Add the
0b/0xprefix if you need it. - Click Convert and copy the output.
Hex to binary table
| 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 |
How to convert hex to binary by hand
Each hex digit is exactly 4 bits (a nibble), so you simply replace each digit with its 4-bit value from the table:
2F→ 2 = 0010, F = 1111 → 0010 1111A7→ A = 1010, 7 = 0111 → 1010 01113E8→ 0011 1110 1000 (= 1000 in decimal)
Binary to hex
Do the reverse: split the bits into groups of 4 starting from the right, pad the leftmost group with zeros, and replace each group with its hex digit. 110101 → 0011 0101 → 35.
Why hex and binary go together
Computers work in binary, but long strings of 0s and 1s are hard to read. Hex is a compact way to write them: one byte (8 bits) is always exactly two hex digits, from 00 to FF. That's why hex is used for memory addresses, colors (#FF8800), MAC addresses, hashes and file contents — see them in the Binary File Viewer.
FAQ
How many bits is a hex digit?
4 bits. Two hex digits make a byte (8 bits), four make 16 bits, eight make 32 bits.
How do I convert hex to decimal?
Choose Decimal as the target here, or use the Decimal ↔ Hex Converter. For decimal and binary, see the Decimal ↔ Binary Converter.
How do I convert text to binary?
Text needs an encoding (like UTF-8) first: use Text to Binary or the Hex Encoder.