Base-16 to base-2

Hex to Binary Converter

Convert hex values like FF, 0x2A, or deadbeef into binary with a clean digit-by-digit breakdown.

Binary-
Decimal-
Hex-

Step-by-step conversion

Enter a hex value to see each digit expanded into four binary bits.

Hexadecimal to binary mapping

Hexadecimal uses sixteen symbols: 0-9 and A-F. Each symbol represents exactly four binary bits, so conversion is mostly a lookup table rather than long arithmetic.

For example, 2A becomes 0010 1010. The first digit 2 maps to 0010, and A maps to 1010.

HexBinaryDecimal
000000
100011
200102
810008
A101010
F111115

This fixed-width relationship is why hex appears so often in programming tools. A byte can be shown as two hex digits or eight binary bits, which makes values shorter to read without losing the underlying bit pattern. Color values, checksums, memory addresses, packet examples, and encoded identifiers often use hex for this reason.

BinaryTrans keeps leading zeroes in each four-bit group so the result stays aligned with the original hex digits. That makes it easier to compare output visually, copy groups into notes, or explain how each symbol expands. If your source value includes a 0x prefix, the converter ignores it and treats the remaining characters as the hexadecimal value.

Common hex to binary examples

  • FF becomes 1111 1111.
  • 2A becomes 0010 1010.
  • 0xFF is treated as FF and becomes 1111 1111.
  • DEADBEEF expands into eight four-bit binary groups.
  • Hex color values can be inspected one byte at a time, such as FF0000 for red.

Related converters