Hexadecimal to Binary Converter
Convert hexadecimal (base-16) to binary (base-2). Expand any hex number into its binary equivalent — each hex digit becomes exactly 4 bits.
Common Values
| Input | Binary |
|---|---|
| 0 | 0 |
| 1 | 1 |
| a | 1010 |
| f | 1111 |
| 10 | 10000 |
| ff | 11111111 |
| 100 | 100000000 |
| ffff | 1111111111111111 |
| ffffffff | 11111111111111111111111111111111 |
How It Works
Converting hex to binary is the reverse of binary-to-hex. Replace each hex digit with its 4-bit binary equivalent: 0=0000, 1=0001, ..., 9=1001, A=1010, B=1011, C=1100, D=1101, E=1110, F=1111. For example, FF → 1111 1111 = 11111111.
Worked Examples
| Hexadecimal | Binary |
|---|---|
| 0 | 0 |
| 1 | 1 |
| a | 1010 |
| f | 1111 |
| 10 | 10000 |
| ff | 11111111 |
| 100 | 100000000 |
| ffff | 1111111111111111 |
Related Conversions
Frequently Asked Questions
- How do I convert hex to binary?
Replace each hex digit with its 4-bit binary group. F becomes 1111, E becomes 1110, ..., 0 becomes 0000. Concatenate all groups.
- What is 0xFF in binary?
0xFF in binary is 11111111. Each F expands to 1111, giving eight 1-bits.
- How many binary bits does a hex digit represent?
Each hex digit represents exactly 4 binary bits (a nibble). Two hex digits represent a full byte (8 bits).
- Why are hex and binary so closely related?
16 = 2⁴, so hex and binary have a perfect power-of-two relationship. This makes hex an efficient shorthand for binary data.