Hexadecimal
Commonly known as hex - is a base 16 numbering system.
For example: (AF92)16
Binary
A base 2 numbering system that uses only two digits of 0 and 1.
For example: (110011011)2
Hex to Binary conversion
- Write down each hex number separately.
- Represent each hex digit by its binary equivalent number from the table1.
- Concatenate all the binary digits together to get the converted answer.
- Discard any leading zeros at the left of the binary number.
Below is a visualization to help you understand the above steps to convert hex to binary.
Binary to Hex conversion
- Start from the extreme right and group the binary digits in groups of four.
- Add zeros at the left of the binary number if the leftmost group has less than 4 binary digits.
- Represent each binary group by its hex equivalent number from the table.
- Concatenate all the hex digits together to get the converted answer.
Below is a visualization to help you understand the above steps to convert binary to hex.
1 of 5
1 of 5
1 of 5
1 of 5
1 of 5
Copyright ©2024 Educative, Inc. All rights reserved