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

  1. Choose Hexadecimal as the source base and Binary as the target — or the reverse for binary to hex.
  2. Paste your values, one per line.
  3. Choose Groups of 4 to see each hex digit's bits, or Groups of 8 for bytes. Add the 0b / 0x prefix if you need it.
  4. Click Convert and copy the output.

Hex to binary table

HexBinaryDecimalHexBinaryDecimal
000000810008
100011910019
200102A101010
300113B101111
401004C110012
501015D110113
601106E111014
701117F111115

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:

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.