Convert Hexadecimal to Binary

Convert hex to binary instantly. Each hex digit expands to 4 binary bits. Free online converter.

Input
Number
From Base
2-36
Results
2
Binary
Base 2
0b11111111
8
Octal
Base 8
0o377
10
Decimal
Base 10
255
16
Hexadecimal
Base 16
0xFF
Step-by-Step Conversion
Step 1: Convert Decimal 255 to Binary
255 / 2 = 127 remainder 1
127 / 2 = 63 remainder 1
63 / 2 = 31 remainder 1
31 / 2 = 15 remainder 1
15 / 2 = 7 remainder 1
7 / 2 = 3 remainder 1
3 / 2 = 1 remainder 1
1 / 2 = 0 remainder 1
Result: 11111111

About This Conversion

Converting hexadecimal to binary is the reverse of binary-to-hex: expand each hex digit into its 4-bit binary equivalent. For example, hex 3F → 0011 1111. This is used extensively in network engineering (subnet masks), embedded programming (register values), and reverse engineering (analyzing binary file formats). Since each hex digit maps to exactly 4 bits, this conversion requires no arithmetic — just a lookup table.

Frequently Asked Questions

How do I convert hex to binary?
Replace each hex digit with its 4-bit binary equivalent: 0=0000, 1=0001, ..., 9=1001, A=1010, B=1011, ..., F=1111.
What is hex A5 in binary?
A = 1010, 5 = 0101, so hex A5 = binary 10100101.

Related Conversions