What is Binary?
Binary is a number system that uses only two digits 0 and 1. Binary is the basic language of computers.
What is Hexadecimal?
Hexadecimal or in short hex is a base-16 number system. It uses 16 symbols 0-9 and A-F. Hex is often used in computing as a shorter way to show binary values.
How to Convert Binary to Hexadecimal
- Split the binary number into groups of 4 bits
- Convert each 4-bit group to its hex digit
- Join the hex digits
Example of Converting 11010110 to Hex
- Split into groups of 4: 1101 0110
- Convert each group:
- 1101 = 13 = D
- 0110 = 6
- Join the results: D6
So, 11010110 in binary = D6 in hexadecimal
Another Example: 101011111000 to Hex
- Split: 1010 1111 1000
- Convert:
- 1010 = 10 = A
- 1111 = 15 = F
- 1000 = 8
- Join: AF8
101011111000 in binary = AF8 in hexadecimal
Conversion Table
Binary | Hexadecimal | Decimal |
---|---|---|
0000 | 0 | 0 |
0001 | 1 | 1 |
0010 | 2 | 2 |
0011 | 3 | 3 |
0100 | 4 | 4 |
0101 | 5 | 5 |
0110 | 6 | 6 |
0111 | 7 | 7 |
1000 | 8 | 8 |
1001 | 9 | 9 |
1010 | A | 10 |
1011 | B | 11 |
1100 | C | 12 |
1101 | D | 13 |
1110 | E | 14 |
1111 | F | 15 |