Skip to content
UnitChart

Convert hex to binary

Hexadecimal (base 16) to binary (base 2). Type a value below, or use the reference table further down.

FF (hexadecimal) = 11111111 (binary)

Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 11111111 in binary.

How to convert hex to binary

Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 11111111 in binary.

Conversions here use arbitrary-precision integers, so values beyond 64 bits convert exactly rather than being rounded.

hex to binary conversion table

Use this hex to binary chart for quick reference.

hexadecimal to binary conversion table
Hexadecimal (base 16)Binary (base 2)
00
11
210
311
4100
5101
6110
7111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111
1010000
20100000
401000000
641100100
7F1111111
8010000000
FF11111111
100100000000
2001000000000
3E81111101000
3FF1111111111
40010000000000
FFF111111111111
10001000000000000
FFFF1111111111111111
1000010000000000000000

What is hexadecimal?

Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.

What is binary?

Binary is base 2, using only 0 and 1. It is how every digital computer physically stores and manipulates data, with each digit representing one bit.

Frequently asked questions

How do you convert hexadecimal to binary?

Multiply each digit by 16 raised to its position, counting from zero on the right, then add the results. FF comes to 255 in decimal, which is 11111111 in binary.

What is FF hexadecimal in binary?

FF in hexadecimal is 11111111 in binary. In plain decimal that value is 255.

What digits does hexadecimal use?

Hexadecimal is base 16 and uses 0-9 and A-F. Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.

Other base conversions