Binary to Hexadecimal

Опубликовано: 16 Июль 2026
на канале: AKD Classes
28
2

#hextobinary #numbersystem

Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2).Whereas, Hexadecimal number is one of the number systems which has base 16 and it has 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F.
Every hexadecimal number can be expressed in 4 bit binary format. So, if we can make each group of 4 bit of binary input number, then replace each group of binary number from its equivalent hexadecimal digits. That will be hexadecimal number of given binary number. In this procedure, if required we 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.

So, the steps to convert a binary number into hexadecimal number are as follows:

1. Write the binary number
2. Now, divide the binary digits into groups of four (starting from right) for integer part and (start from left) for fraction part.
3. Convert each group of three binary digits to one hexadecimal digit.