Binary converters

Hex to binary converter.

Hex FF is binary 1111 1111, and hex A3 is 1010 0011. Each hex digit expands to exactly 4 bits.

Advertisement

Input

Result

Enter a hex number.

How to hex to binary by hand

Replace every hex digit with its 4-bit pattern: 0 is 0000, 1 is 0001, up to 9 which is 1001, then A is 1010, B is 1011, C is 1100, D is 1101, E is 1110 and F is 1111. Join the groups in order.

For A3: A is 1010 and 3 is 0011, giving 1010 0011.

Worked examples

Hex to binary examples
HexBinary
A1010
FF1111 1111
A31010 0011
410100 0001
0xDEADBEEF1101 1110 1010 1101 1011 1110 1110 1111

Need text, decimal and hex side by side? Use the full binary converter, or look a character up in the ASCII table.

Hex to binary FAQ

How do you convert hex to binary?

Replace each hex digit with its 4-bit binary value and join them. A3 becomes 1010 0011.

What is FF in binary?

1111 1111, which is 255 in decimal.

Do I need to type the 0x prefix?

No. FF and 0xFF are both accepted, upper or lower case, with or without spaces between bytes.

Why does 1F show as 0001 1111?

The output is padded to whole 4-bit groups so the digits line up with the hex input: 1 is 0001 and F is 1111.

Advertisement
Advertisement