Binary to Hexadecimal Converter
Convert binary numbers to hexadecimal. Long binary strings are shortened to hexadecimal in debuggers and datasheets, because every four bits become one hex digit.
Binary to Hexadecimal converter
Result
- Binary
- —
- Octal
- —
- Decimal
- —
- Hexadecimal
- —
How to convert binary to hexadecimal
Split the binary number into groups of 4 bits, starting from the right and adding zeros on the left if needed. Replace each group with its hexadecimal digit.
Example: 10011100 (binary) to hexadecimal
| Binary digit | 1-bit group |
|---|---|
| 1 | 1 |
| 0 | 0 |
| 0 | 0 |
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
| 0 | 0 |
| 0 | 0 |
| 4-bit group | Hexadecimal digit |
|---|---|
| 1001 | 9 |
| 1100 | C |
10011100 in binary = 9C in hexadecimal.
Examples
- 1010 (binary) = A (hexadecimal)
- 10011100 (binary) = 9C (hexadecimal)
- 11111111 (binary) = FF (hexadecimal)
- 1111101000 (binary) = 3E8 (hexadecimal)
Binary to Hexadecimal conversion table
| Binary (base 2) | Hexadecimal (base 16) |
|---|---|
| 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 |
| 10100 | 14 |
| 100000 | 20 |
| 110010 | 32 |
| 1000000 | 40 |
| 1100100 | 64 |
| 1111111 | 7F |
| 10000000 | 80 |
| 11111111 | FF |
| 100000000 | 100 |
| 1000000000 | 200 |
| 1111101000 | 3E8 |
| 10000000000 | 400 |
The table lists the same whole numbers for every pair of bases.
Frequently asked questions
- What is 11111111 in hexadecimal?
- 11111111 in binary is FF in hexadecimal.
- How do I convert binary to hexadecimal by hand?
- Split the binary number into groups of 4 bits, starting from the right and adding zeros on the left if needed. Replace each group with its hexadecimal digit.
- What digits does binary use?
- Binary uses the digits 0 and 1. Computers store and process everything as binary digits (bits). Eight bits make one byte.
- What is hexadecimal used for?
- Hexadecimal writes bytes compactly: web colors (#FF8800), memory addresses, MAC addresses and character codes all use it.