How to convert binary to hexadecimal
- Start from the right and split the binary into groups of four. Add zeros to the left of the last group if it's short.
- Swap each group for its hex digit using the chart below.
- Write the digits in the same order.
Example: 1101011 becomes 0110 1011, which is 6B. No arithmetic on the whole number is needed, which is what makes hex so convenient.
Binary to hex chart
| Hex | Binary | Decimal | Hex | Binary | Decimal |
|---|---|---|---|---|---|
| 0 | 0000 | 0 | 8 | 1000 | 8 |
| 1 | 0001 | 1 | 9 | 1001 | 9 |
| 2 | 0010 | 2 | A | 1010 | 10 |
| 3 | 0011 | 3 | B | 1011 | 11 |
| 4 | 0100 | 4 | C | 1100 | 12 |
| 5 | 0101 | 5 | D | 1101 | 13 |
| 6 | 0110 | 6 | E | 1110 | 14 |
| 7 | 0111 | 7 | F | 1111 | 15 |
For the other direction, use the hex to binary converter. If you need the value as an ordinary number, the binary to decimal converter shows the place values.