Skip to content
ConvertCalculate

Hexadecimal to Binary

Quickly convert hexadecimal numbers to binary format for programming, microcontroller coding, and digital logic design, ensuring accurate binary representation of data.

  • Free
  • Instant results
  • Runs in your browser
In short

To convert hexadecimal to binary, replace each hex digit with its 4-bit binary equivalent. For example, hexadecimal 2D is 101101 in binary.

How it works

Hexadecimal counts in base 16, binary counts in base 2. Converting means rewriting the same quantity with a different set of digits — the value never changes, only how it is written.

  1. Convert each hexadecimal digit to its decimal value and add them up.
  2. Divide that total by 2, keeping the remainders.
  3. Read the remainders bottom to top for the binary result.

The reverse conversion is Binary to Hexadecimal, which also handles every other base pair.

Examples

Worked examples, digit by digit:

  • 2 (hexadecimal) = 2 in decimal = 10 (binary)
  • 5 (hexadecimal) = 5 in decimal = 101 (binary)
  • FF (hexadecimal) = 255 in decimal = 11111111 (binary)
Common values in every base
DecimalBinaryOctalHexadecimal
0000
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
25511111111377FF

Hexadecimal to Binary: frequently asked questions

How do I convert hexadecimal to binary?
Replace each hex digit with its 4-bit binary equivalent. For example, hexadecimal 2D is 101101 in binary. The converter above does this instantly for any value.
What is FF in binary?
Hexadecimal FF equals 11111111 in binary (the value 255, the largest number that fits in one byte).
Why are hexadecimal and binary used?
Hexadecimal (base 16, digits 0–9 and A–F) writes each byte as exactly two characters, which is why it is used for colours (#FF8800), memory addresses and MAC addresses. Binary (base 2) is how computers store data, as bits that are either 0 or 1.