How to convert binary to hexadecimal
Because 16 = 2^4, every hexadecimal digit corresponds to exactly 4 binary digits. Group the bits in sets of 4 from the right.
1011 0110₂ = B6₍16₎About the number systems
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
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 to hexadecimal table
| Binary | Hexadecimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 1000 | 8 |
| 1001 | 9 |
| 1010 | A |
| 1011 | B |
| 1100 | C |
| 1101 | D |
| 1110 | E |
| 1111 | F |
| 10000 | 10 |
| 11111 | 1F |
| 100000 | 20 |
| 111111 | 3F |
| 1000000 | 40 |
| 1100100 | 64 |
| 1111111 | 7F |
| 10000000 | 80 |
| 11111111 | FF |
| 100000000 | 100 |
| 1111101000 | 3E8 |
| 10000000000 | 400 |
| 1000000000000 | 1000 |
| 1111111111111111 | FFFF |
Frequently asked questions
How do I convert binary to hexadecimal?
Because 16 = 2^4, every hexadecimal digit corresponds to exactly 4 binary digits. Group the bits in sets of 4 from the right. Example 1011 0110₂ = B6₍16₎
What is 101101 in hexadecimal?
101101 (binary) = 2D in hexadecimal.
Can I convert very large numbers?
Yes. The converter uses exact big-integer arithmetic, so there is no rounding even for long inputs.