InovoTools
Developer Tools

Hex to Binary Converter

Convert hexadecimal to binary, with the output split into readable four-bit groups. Each hex digit maps to exactly four bits, so the conversion is exact for numbers of any length.

01

Your inputs

Start with the example, or enter your own values.

Processed in your browser. Your inputs stay on this device.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use the Hex to Binary Converter

Type a hex number using the digits 0 to 9 and the letters A to F. The binary result is split into four-bit groups.

How to convert hex to binary

Replace each hex digit with its four-bit pattern: 0 is 0000, 9 is 1001, A is 1010 and F is 1111. Write the groups in the same order. A5F becomes 1010 0101 1111. Leading zeros in the first group can be dropped when you do not need a fixed width.

Common uses

Reading individual bits in a register value, checking flags in a status byte, decoding colour channels from a hex colour and working with subnet masks written in hex all start with this conversion.

How it works

Each hex digit maps to four bits.

Examples

  • A5F
    1010 0101 1111
  • FF
    1111 1111
  • 1C
    0001 1100

Hex to binary table

HexBinary
10001
20010
30011
40100
50101
60110
70111
81000
91001
A1010
B1011
C1100
D1101
E1110
F1111
100001 0000
1F0001 1111
7F0111 1111
801000 0000
FF1111 1111

Limitations and assumptions

Runs entirely in your browser. Nothing you enter is uploaded.

Frequently asked questions

How do I convert hex to binary?

Swap each hex digit for its four-bit group and keep the order. 2F becomes 0010 1111, usually written 10 1111 without the leading zeros.

What is FF in binary?

1111 1111, the eight bits of one full byte.

Why does each hex digit become four bits?

Sixteen is 2⁴, so the sixteen hex digits 0 to F match the sixteen possible four-bit patterns one for one.

How do I convert binary back to hex?

Use the binary to hex converter, which groups the bits in fours from the right.