Binary number
Binary numbering system uses only two symbols 0 and 1. Each digits of a binary number is referred to as bits. Binary system is also known as base -2 system. Each digit is represented by the increasing power of 2 from the LSB (Least Significant Bit). Binary system is the heart of digital electronics and is used for information flow. In digital electronics, 0 and 1 are used to denote logic states, high and low. Arithmetic operations are also possible in binary system.
Hexadecimal Number
Hexadecimal number system uses 16 different symbols to represent a numeric value. It uses numbers 0 to 9 and alphabets A to F for representation. . The place value of each digits of an hexadecimal number varies as the whole number powers of 16 starting from the right (Least Significant Digit). The first single digit number in hexadecimal system is 0 and the last is F. Similarly, the first two digit hexadecimal number is 10 and the last is FF and so on. It is used as an alternative for binary numbers by developers and programmers.
How to convert a binary number to hexadecimal:
Step 1:
To convert any binary number to hexadecimal, check whether the number of digits of the binary number is a multiple of 4.
Step 2:
If the number of digits of the binary number is a multiple of 4 proceed to step 3. Otherwise add zeros to the left of the digits.
Step 3:
Divide the digits of binary number into groups of 4 digits.
Step 4:
Refer the below table and hex value correspond to each group of digits.
Binary Number | Hexadecimal Number |
---|---|
0000 | 0 |
0001 | 1 |
0010 | 2 |
0011 | 3 |
0100 | 4 |
0101 | 5 |
0110 | 6 |
0111 | 7 |
1000 | 8 |
1001 | 9 |
1010 | A |
1011 | B |
1100 | C |
1101 | D |
1110 | E |
1111 | F |
Step 5:
Join the results together to get the converted hexadecimal number.
Use Binary to Hexadecimal convertor
Example 1:
Convert 1110102 to hexadecimal.
Step 1:
To convert any binary number to hexadecimal, check whether the number of digits of the binary number is a multiple of 4.
1110102, there are 6 digits, that is not a multiple of 4.
Step 2:
If the number of digits of the binary number is a multiple of 4 proceed to step 3. Otherwise add zeros to the left of the digits.
1110102 can be rewritten as 001110102
Step 3:
Divide the digits of binary number into groups of 4 digits.
0011 1010
Step 4:
Refer the table and note down the hexadecimal value correspond to each group of digits.
0011 | 1010 |
3 | A |
Step 5:
Join the results together to get the converted hexadecimal number.
1110102 = 3A16
Example 2:
Convert 101101012 to hexadecimal.
Step 1:
To convert any binary number to hexadecimal, check whether the number of digits of the binary number is a multiple of 4.
101101012, there are 8 digits, that is a multiple of 4. So, we can move to step 3.
Step 3:
Divide the digits of binary number into groups of 4 digits.
1011 0101
Step 4:
Refer the table and note down the hexadecimal value correspond to each group of digits.
1011 | 0101 |
B | 5 |
Step 5:
Join the results together to get the converted hexadecimal number.
101101012 = B516