Hex to Binary Converter

Type hex to get binary. Every hex digit becomes exactly four bits, so the working is a simple lookup.

Binary
1100 0000 1111 1111 1110 1110
Base 21100 0000 1111 1111 1110 1110
Base 860177756
Base 1012,648,430
Base 16C0 FFEE

Working

C1100
00000
F1111
F1111
E1110
E1110

The method

Replace each hex digit with its 4-bit pattern (0 = 0000 … F = 1111) and join them. No arithmetic needed.

Place value: the idea behind every base

In any base, a digit’s worth depends on its column. Each column is worth the base times the column to its right. Tap a digit to change it and watch the total.

1651,048,5761,048,576
16465,5360
1634,0964,096
162256256
161160
16011

1×1,048,576 + 1×4,096 + 1×256 + 1×1 = 1,052,929 in decimal

Decimal is the same system with ten digits: 347 is 3×100 + 4×10 + 7×1. Nothing about base 10 is special apart from our ten fingers.

Hex to binary table

HexBinary
00
11
210
311
4100
5101
6110
7111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111

Need another base, such as base 3 or base 36? Use the number system converter.

Questions people ask

Why does one hex digit equal four bits?

Because 16 = 2⁴. Four bits have exactly 16 combinations, the same as one hex digit, so the two systems line up perfectly. That is why programmers use hex as shorthand for binary.

What is F in binary?

1111. And 8 is 1000, A is 1010, 5 is 0101.

How do I convert binary back to hex?

Group the bits in fours from the right, padding the left with zeros, and replace each group with its hex digit. 101101 → 0010 1101 → 2D.

Related tools