Skip to content
Binary Translator
Menu

Hex to Binary Converter

Enter a hexadecimal number to get its binary form, digit by digit. A 0x prefix and spaces are fine.

Updated · UTF-8 text encoding

Digits 0 to 9 and letters A to F. A 0x prefix is fine.

Binary

0011 1111 1000 1010

3→0011 F→1111 8→1000 A→1010

How to convert hex to binary

Hexadecimal uses 16 digits, 0 to 9 and then A to F for ten to fifteen. Because 16 is 2⁴, every hex digit maps to exactly four bits. So the conversion is a straight swap: A7 is 1010 (A) followed by 0111 (7), giving 10100111.

Hex to binary chart

HexBinaryDecimalHexBinaryDecimal
000000810008
100011910019
200102A101010
300113B101111
401004C110012
501015D110113
601106E111014
701117F111115

Where you'll see hex

To go back, use the binary to hex converter. For decimal values, see binary to decimal.

Questions people ask

How do you convert hex to binary?

Swap each hex digit for its 4 bits: 2F = 0010 1111.

What is FF in binary?

11111111 (255).

What does 0x mean before a number?

It marks the number as hexadecimal, as in 0x1F. You can paste it with or without the prefix.

Sources

More binary converters