Hex to Binary Converter

Enter a hexadecimal number to get its binary, decimal, and octal equivalents, along with the 4-bit mapping behind the result.

Digits 0-9 and letters A-F only (case-insensitive), no # or 0x prefix. Any length is supported.

What is Hex to Binary Conversion?

Hexadecimal to binary conversion turns a base-16 number (using the digits 0-9 and letters A-F) into its base-2 equivalent. It's one of the simplest number-base conversions because hexadecimal was designed around binary: every hex digit maps to exactly four binary bits, so no long division is needed.

For example, hex AC equals binary 10101100. Enter any hexadecimal number above to convert it and see the digit-by-digit breakdown. Want to learn how to convert hexadecimal to binary manually? See how to convert hex to binary for the full 4-bit mapping method, table, and worked examples. For arithmetic on the resulting binary value, see the Binary Calculator. For the relationship between the two number systems, see binary vs hexadecimal.

The 4-Bit Mapping

Hexadecimal is base 16, and 16 is 2⁴ — so each of the 16 possible hex digit values (0-15) maps to a unique 4-bit binary pattern (0000-1111). To convert, replace every hex digit with its 4-bit binary equivalent and concatenate the results in order. Leading zeros in the very first group of the final result can be dropped without changing the value.

Worked example: convert AC to binary

A → 1010
C → 1100

AC₁₆ = 1010 1100 = 10101100₂

Hex ↔ binary reference table

HexBinary (4 bits)Decimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

For the reverse operation, use the Binary to Hex Converter, or regroup that binary result into 3-bit chunks with the Binary to Octal Converter.

Common Hex to Binary Conversions

A quick reference for frequently seen hexadecimal numbers and their binary and decimal equivalents:

HexBinaryDecimal
000
111
A101010
F111115
101000016
2A10101042
FF11111111255
100100000000256
AC10101100172
FFF1111111111114095

Where Hex to Binary Conversion Is Used

Converting hex to binary comes up whenever a compact hex value needs to be inspected at the bit level:

  • Programming and debugging: expanding hex memory dumps, register values, and stack traces into their underlying bit patterns.
  • Bitmasks: checking which individual bits a hex flag or permission mask (e.g. 0xAC) actually sets or clears.
  • Memory addresses and data representation: reading pointers and raw byte data, which hardware and debuggers report in hex but ultimately store in binary.
  • Digital systems: interpreting hardware register and signal states documented in hex back into their binary form.
  • Computer science education: demonstrating how hexadecimal serves as a compact shorthand for binary.

Need decimal instead of binary? Try the Hex to Decimal Converter.

Frequently Asked Questions

How do I convert FF to binary?

Hex FF equals binary 11111111. Each F maps to 1111, so F followed by F gives 1111 1111 (255 in decimal).

Why does each hex digit become 4 binary bits?

Hexadecimal is base 16, and 2⁴ = 16, so a single hex digit (0-15) maps to exactly one 4-bit binary pattern (0000-1111) with no remainder — that exact fit is what makes the conversion direct substitution rather than division.

Can I enter hex values with a # or 0x prefix?

Enter just the hex digits, without prefixes. For example, enter "FF" rather than "#FF" or "0xFF".

Is hexadecimal case-sensitive?

No. FF, ff, and Ff all represent the same value. The input is normalized to uppercase automatically.

Can this converter handle very large hexadecimal numbers accurately?

Yes. Conversion uses JavaScript's BigInt arithmetic rather than parseInt() or Number, so the result stays exact even for hex values longer than the 53-bit range where regular JavaScript numbers start to lose precision.

What happens if I enter an invalid character?

The converter shows an error message and does not produce a result, since only the digits 0-9 and letters A-F are valid in a hexadecimal number.