Skip to the content

Hex to Binary Converter

Expand a hexadecimal number into binary: every hex digit becomes four bits, shown digit by digit.

Type a hexadecimal number in the first field and read it in binary in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.

Working

Hex digitAs 4 bits
30011
F1111
91001

Side by side: 0011 1111 1001. Without the zeros in front: 1111111001

Other bases

from 2 to 36
Bit length
10 bits
Fits in
2 bytes
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

How to convert hexadecimal to binary by hand

Every hex digit turns into four bits, and the digits can be handled one at a time. Write down the four bits for each digit and put the groups side by side.

For 3F9: 3 is 0011, F is 1111 and 9 is 1001, which makes 0011 1111 1001. Zeros at the very front can be dropped, so the number is 1111111001.

The working under the two fields at the top of the page does this for whatever number you type.

Good to know

  • Every digit needs all four of its bits, zeros included. Only at the very front may zeros be left out. Dropping them in the middle is the usual mistake: 91 is 1001 0001, not 10011.
  • To build the bits of a digit, split it into 8, 4, 2 and 1. D is 13 = 8 + 4 + 1, so its bits are 1101.
  • This is why bytes, memory addresses and colour codes are written in hexadecimal: it is binary in a quarter of the space.

Hexadecimal to binary table

HexadecimalBinary
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111
100001 0000
HexadecimalBinary
140001 0100
200010 0000
320011 0010
400100 0000
640110 0100
7F0111 1111
801000 0000
C81100 1000
FF1111 1111
1000001 0000 0000
1F40001 1111 0100
2000010 0000 0000
3E80011 1110 1000
4000100 0000 0000
10000001 0000 0000 0000
FFFF1111 1111 1111 1111

The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.

See all 9