Binary to Hexadecimal Converter
To convert an 8-bit binary number to its hexadecimal representation:
- Split the 8-bit binary number into two 4-bit groups (nibbles).
- Convert each 4-bit group to its hexadecimal equivalent.
- Concatenate the hexadecimal equivalents to form the hexadecimal number.
Correspondence between Binary Nibbles and Hexadecimal Digits
| Denary |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
| Binary |
0000 |
0001 |
0010 |
0011 |
0100 |
0101 |
0110 |
0111 |
1000 |
1001 |
1010 |
1011 |
1100 |
1101 |
1110 |
1111 |
| Hexadecimal |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
A |
B |
C |
D |
E |
F |
Example: Convert Binary 10111010 to Hexadecimal
Binary number: 10111010
- Split the binary number into two 4-bit groups (nibbles):
- The first nibble is 1011.
- The second nibble is 1010.
- Convert each 4-bit group to its hexadecimal equivalent:
- The hexadecimal equivalent of 1011 is B.
- The hexadecimal equivalent of 1010 is A.
- Concatenate the hexadecimal equivalents to form the hexadecimal number:
- The hexadecimal number formed is BA.
So, the hexadecimal representation of the binary number 10111010 is BA.