Skip to content
Devtoolry

Hex to Binary Converter

Convert hex to binary online: every hex digit becomes four bits, shown step by step. Group the bits by nibble, add a 0b prefix or convert a whole list.

Runs in your browser · Nothing uploaded · No sign-up

Something not working, or missing a feature? Send feedback

About the Hex to Binary Converter

The Hex to Binary Converter expands every hexadecimal digit into its four bits, so you can see which flags of a register or bit mask are set. The step view shows the 4-bit pattern of each digit, and the bits can be grouped by nibble for reading.

Conversion happens in your browser, so your files and records stay private.

How to use the Hex to Binary Converter

  1. Type a hex value such as 7F or 0xDEADBEEF, or paste one per line.
  2. Turn on "Group by 4 bits" to separate the nibbles, and the 0b prefix if your code needs it.
  3. Read the bits under each hex digit in the step view, then copy the result.

Hex to binary lookup

One hex digit always stands for exactly four bits, which is why the conversion works digit by digit.

HexBinaryDecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Examples

One byte

Input

7F

Result

1111111
Grouped by nibble

Input

7F (Group by 4 bits)

Result

111 1111
A 32-bit value

Input

DEADBEEF (Group by 4 bits)

Result

1101 1110 1010 1101 1011 1110 1110 1111
A hex fraction

Input

3.C

Result

11.11

Common mistakes

  • Writing a digit with fewer than 4 bits. Inside a number every digit needs all four bits: 0x21 is 0010 0001, not 10 1. Only the very first digit may lose its leading zeros.

Works well with the Hex to Binary Converter

Frequently asked questions

How do you convert hex to binary?

Replace each hex digit with its 4-bit pattern: 7 is 0111 and F is 1111, so 7F is 0111 1111. Leading zeros of the first group can be dropped, giving 1111111.

How do I check which bits of a mask are set?

Convert the mask and count from the right, starting at bit 0. 0x14 is 10100, so bits 2 and 4 are set.

Does it keep leading zeros?

Leading zeros of the whole number are dropped, as with decimal numbers. To see all 8, 16 or 32 bits, convert from decimal with a bit width, or count the digits: each hex digit is four bits.