Hex to binary converter

Enter a hexadecimal number (with or without 0x) to get binary. Replace each hex digit with its four-bit pattern — F is 1111, 3 is 0011 — so 0x3F becomes 0011 1111.

To

Hexadecimal to binary conversion examples

HexBinaryDecimal
A101010
F111115
1F0001 111131
7E0111 1110126
FF1111 1111255
1F40001 1111 0100500
FFFF1111 1111 1111 111165,535

Frequently asked questions

How many bits is one hex digit?

Exactly 4 bits (a nibble). Two hex digits make one 8-bit byte.

Does it accept 0x and # prefixes?

It accepts 0x. For colour codes, remove the # first — e.g. FF8800.

Keep going

Last reviewed 28 November 2026. Conversions run entirely in your browser.