How to convert hexadecimal to binary
Because 16 = 2^4, every hexadecimal digit corresponds to exactly 4 binary digits. Group the bits in sets of 4 from the right — or expand each digit into 4 bits.
B6₍16₎ = 1011 0110₂About the number systems
Hexadecimal
Base 16 uses 0–9 and A–F (A = 10 … F = 15). One hex digit is exactly four bits, so two hex digits describe a byte — used for colours (#FF8800), memory addresses and checksums.
Binary
Base 2 uses only the digits 0 and 1. Every value in a computer is ultimately stored as binary; each binary digit is a bit.
Hexadecimal to binary table
| Hexadecimal | Binary |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 10 |
| 3 | 11 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
| 8 | 1000 |
| 9 | 1001 |
| A | 1010 |
| B | 1011 |
| C | 1100 |
| D | 1101 |
| E | 1110 |
| F | 1111 |
| 10 | 10000 |
| 1F | 11111 |
| 20 | 100000 |
| 3F | 111111 |
| 40 | 1000000 |
| 64 | 1100100 |
| 7F | 1111111 |
| 80 | 10000000 |
| FF | 11111111 |
| 100 | 100000000 |
| 3E8 | 1111101000 |
| 400 | 10000000000 |
| 1000 | 1000000000000 |
| FFFF | 1111111111111111 |
Frequently asked questions
How do I convert hexadecimal to binary?
Because 16 = 2^4, every hexadecimal digit corresponds to exactly 4 binary digits. Group the bits in sets of 4 from the right — or expand each digit into 4 bits. Example B6₍16₎ = 1011 0110₂
What is FF in binary?
FF (hexadecimal) = 11111111 in binary.
Can I convert very large numbers?
Yes. The converter uses exact big-integer arithmetic, so there is no rounding even for long inputs.