How to convert Binary to Hexadecimal

Binary system uses only 2 symbols, which are typically expressed as 0 (zero) and 1 (one). It has a positional notation and each digit is referred to as a single bit. All this makes it perfect for digital electronic circuitry and logic gates which means that binary system is used by almost all modern computers and similar devices.

Hexadecimal system is probably more familiar as a numeral system that is also commonly used by computers and other digital systems. It is base 16 and it has 16 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F.

Table #1: Binary to hexadecimal conversion table

Binary0000000100100011010001010110011110001001101010111100110111101111
Hexadecimal0123456789ABCDEF

Instructions:

  1. Start with any binary number
  2. Divide it into groups of 4 digits (nibbles) by using the least significant bit at the right of the number as a starting point
  3. Pad the first group of digits on the left with 0 (zeros) if there are less than 4 digits
  4. Convert each group of 4 binary digits to its equivalent hexadecimal value (see conversion table above)
  5. Concatenate the resulting hexadecimal digits into a single resulting number

Example #1: Convert binary 101011000 into hexadecimal

Step descriptionResult
Form groups of 4 binary digits1 0101 1000
Pad the first group with zeros0001 0101 1000
Translate binary groups into hexadecimal digits1 5 8
Resulting hexadecimal number158

Example #2: Convert binary 10000000011001 into hexadecimal

Step descriptionResult
Form groups of 4 binary digits10 0000 0001 1001
Pad the first group with zeros0010 0000 0001 1001
Translate binary groups into hexadecimal digits2 0 1 9
Resulting hexadecimal number2019

Convert binary numbers to hexadecimal numbers.

Convert hexadecimal numbers to binary numbers.

Explore the manual conversion process between hexadecimal and binary numbering systems.


Have feedback or questions?

Please, do let us know and we'll see what we can do for you.

0/2000