Hex to Binary Converter With Steps

Enter a hex value to see the bits behind it.

Binary

How it works

Going from hex to binary is a lookup. Replace every hex digit with its four bit pattern and write the patterns side by side. Nothing needs adding or dividing.

Keep the leading zeros inside each group, or the digits will shift. The digit 6 must become 0110, not 110. Only zeros at the very front of the whole number can be dropped.

This is the reason hex is everywhere in computing. A colour such as #FF8800, a MAC address or a memory dump is really a string of bits, and hex lets you read them four at a time without losing track.

Worked example

D6: D is 1101 and 6 is 0110. Put together: 11010110.

Decimal, binary, octal and hex from 0 to 15

DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Common questions

How many bits is one hex digit?

Four. Two hex digits make one byte.

Does it matter if hex letters are upper or lower case?

No. ff and FF are the same number.

Related tools