Hex to Binary Converter

Convert hexadecimal values to binary by expanding each hex digit into its four-bit equivalent with a step-by-step breakdown.

Share this calculator

Results

Enter a valid hex number Please enter a hexadecimal value to convert.

Also in Number Theory

Number Systems

Hexadecimal to binary: convert base-16 numbers to base-2

The hex to binary converter translates hexadecimal (base-16) values into their binary (base-2) equivalents. Enter a hex string and see the binary result with each hex digit expanded to its four-bit representation.

How hex-to-binary conversion works

Each hexadecimal digit maps to exactly four binary digits. Replace each hex digit with its four-bit binary equivalent and concatenate the groups to form the full binary number.

For example, hex 3F becomes 0011 1111 in binary. The digit 3 maps to 0011 and F maps to 1111.

Why this conversion is useful

Hex-to-binary conversion is essential for analysing bit patterns in hardware registers, network packet headers, and cryptographic hash outputs.

Frequently asked questions

Do I always get four bits per hex digit?

Yes. Every hex digit maps to exactly four binary bits, even if the leading bits are zeros (for example, hex 1 becomes 0001).

Can I convert hex with a 0x prefix?

Enter only the hex digits without the 0x prefix. The prefix is a programming convention, not part of the number itself.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.