← Back to tool

Hexadecimal · Base 16 → Base 2

Hex to Binary Converter

Updated: June 2026

Going from hex to binary is the mirror of grouping nibbles: instead of merging four bits into a digit, you expand each hex digit back into its four-bit pattern. It is the fastest way to inspect the exact bits behind a register value, a flag set or a color channel.

Convert Hex to Binary →

Free · No upload · Instant in the browser

The digit-by-digit method

Replace each hexadecimal digit with its fixed four-bit pattern and write them side by side in the same order. No arithmetic, no carries — just substitution. Take 3A7:

3 → 0011
A → 1010
7 → 0111
result → 0011 1010 0111

Joined together that is 001110100111. You can drop the leading zeros of the very first digit if you want the shortest form (11 1010 0111), but keeping every nibble four bits wide makes the byte boundaries obvious.

The hex-to-nibble table

HexBitsHexBits
0000081000
1000191001
20010A1010
30011B1011
40100C1100
50101D1101
60110E1110
70111F1111

This is the same lookup used for binary-to-hex, just read in the opposite direction. Knowing it both ways lets you flip between the two bases instantly.

Reading the bits

Once a hex value is expanded, you can see exactly which flags are set. For example a permission byte 0xB4 becomes 1011 0100, telling you bits 7, 5, 4 and 2 are on. This is invaluable when debugging hardware registers, network packet headers or bitfield-packed configuration where each individual bit has its own meaning.

Where it helps

  • Decoding control and status registers in embedded and driver development.
  • Inspecting individual flag bits inside a packed hex value.
  • Teaching how hex shorthand maps onto real binary storage.
  • Preparing bit patterns for masks, shifts and logical operations.

Frequently asked questions

How do you convert hex to binary?

Expand each hex digit into its four-bit pattern and place them in order. 3A7 → 0011 1010 0111.

What is FF in binary?

FF is 1111 1111 — eight set bits, one full byte.

How many bits is one hex digit?

Exactly four, because 16 = 2⁴. That clean ratio is why hex and binary interconvert without arithmetic.

Can I drop leading zeros?

Yes for the final number, but keep four bits per digit while converting so the columns stay aligned.