Hex to Binary Converter

Convert hex to binary – each hex digit becomes 4 bits, with the working shown.

How it works – step by step

Hex to decimal table (0–1024)
DecimalHexBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
10A1010
11B1011
12C1100
13D1101
14E1110
15F1111
16100001 0000
17110001 0001
18120001 0010
19130001 0011
20140001 0100
21150001 0101
22160001 0110
23170001 0111
24180001 1000
25190001 1001
261A0001 1010
271B0001 1011
281C0001 1100
291D0001 1101
301E0001 1110
311F0001 1111
32200010 0000
50320011 0010
64400100 0000
100640110 0100
1277F0111 1111
128801000 0000
200C81100 1000
255FF1111 1111
2561000001 0000 0000
5122000010 0000 0000
10003E80011 1110 1000
10244000100 0000 0000

How to use the Hex to Binary Converter

  1. Type a hex number using 0–9 and A–F.
  2. Read the binary result, grouped in fours, and copy it.
  3. See each hex digit and its 4-bit value in the steps.
  4. Use the swap button to convert binary back to hex.

About this tool

Convert hex to binary in an instant. Type a hexadecimal value such as 3F, FF or 0xC0FFEE and the binary result appears, grouped in fours so it is easy to read, with the working shown underneath: each hex digit next to its 4 bits per digit binary value.

Hexadecimal to binary conversion needs no arithmetic at all. Because 16 = 2⁴, every hex digit is exactly four binary digits (a nibble). Replace each digit with its four-bit pattern – 0 = 0000, 1 = 0001 … 9 = 1001, A = 1010, B = 1011, C = 1100, D = 1101, E = 1110, F = 1111 – and join them. So 3F becomes 0011 1111, and 2D becomes 0010 1101 (which is 45 in decimal).

This base 16 to base 2 conversion is everyday work in programming, electronics and networking – reading register values, bit masks, colour codes and IPv6 addresses. The converter accepts upper or lower case and the 0x prefix, shows the decimal value too, and works with numbers of any length. Use the swap button for Binary to Hex.

Frequently asked questions

Replace each hex digit with its 4-bit binary value and join them: A7 → 1010 0111.

F is 15, which is 1111 in binary. FF is 1111 1111.

Inside the number, yes – each digit must be exactly 4 bits (3 is 0011, not 11). Zeros at the very start can be dropped.

Yes, 0x is ignored, and letters can be upper or lower case.