

This is simple algorithm where you have to grouped binary number and replace their equivalent hexadecimal digit.Įxample-1 − Convert binary number 1010101101001 into hexadecimal number. So, these are following steps to convert a binary number into hexadecimal number.ĭivide the binary digits into groups of four (starting from right) for integer part and start from left for fraction part.Ĭonvert each group of four binary digits to one hexadecimal digit. Note that you can add any number of 0’s in leftmost bit (or in most significant bit) for integer part and add any number of 0’s in rightmost bit (or in least significant bit) for fraction part for completing the group of 4 bit, this does not change value of input binary number. That will be hexadecimal number of given number. So, if you make each group of 4 bit of binary input number, then replace each group of binary number from its equivalent hexadecimal digits. Since, there are only 16 digits (from 0 to 7 and A to F) in hexadecimal number system, so we can represent any digit of hexadecimal number system using only 4 bit as following below. However, there is also a direct method to convert a binary number into hexadecimal number − grouping which is explained as following below. for the fractional part.Įxample − Convert binary number 1101010 into hexadecimal number. for the integer part and weight of the positions from left to right are as 16 -1, 16 -2, 16 -3and so on. That means weight of the positions from right to left are as 16 0, 16 1, 16 2, 16 3and so on. Since number numbers are type of positional number system. Then you need to convert it hexadecimal number.

First, you need to convert a binary into other base system (e.g., into decimal, or into octal). You can convert using direct methods or indirect methods. There are various ways to convert a binary number into hexadecimal number. Hexadecimal number system provides convenient way of converting large binary numbers into more compact and smaller groups.

Conversion from Binary to Hexadecimal number system Where A, B, C, D, E and F are single bit representations of decimal value 10, 11, 12, 13, 14 and 15 respectively. Whereas Hexadecimal number is one of the number systems which has value is 16 and it has only 16 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, and other professionals. Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e.
