Binary to hexadecimal

Binary to hexadecimal conversion will no longer be a problem with our online converter. Remember that the binary system works in base 2 whose symbols are 0 and 1 while in the case of the hexadecimal system, the base is 16 and we have a wide range of symbols ranging from 0 to 9 and then from A to F.

In case you need to perform the reverse conversion, we have also developed a calculator for from hexadecimal to binary. And if what you want is a binary translatorIf you are interested, please visit the link that we have just left you.

How to convert from binary to hexadecimal

Binary to hexadecimal conversion is a very simple operation that we are going to explain step by step.

To begin with, you need to make 4-digit groupings in binary. If for whatever reason you do not have to make a group of four, add as many zeros to the left as needed. For example, imagine that we want to convert the following binary code to hexadecimal:

1101001100101

Making 4-digit groupings (from right to left) we are left with the chain organized as follows:

0001 1010 0110 0101

If you notice, we had to add 3 zeros to the last group (the one on the far left).

Binary to hexadecimal

With the groupings already done, we will apply a little "trick" to learn how to convert from binary to hexadecimal. This trick consists of add a kind of exponent on top of each digit of the group of four. They always have the same placement and it is as follows:

08040211  / 18041201  / 08141201 / 08140211

From left to right, we will always place:

  • An 8 in the first digit
  • A 4 in the second
  • A 2 in the third
  • A 1 in the room

These numbers we have placed represent the amount of 8's, 4's, 2's and 1's we have in each set. For example, if we take the set:

08140211

We see that:

  • We have zero 8's
  • We have a 4
  • We have zero 2's
  • We have a 1

Now we add it all up and we are left with:

4 + 1 = 5

Therefore, group 0101 in binary is equal to 5 in hexadecimal. Now we have to repeat the same with each group:

08040211 = 0 + 0 + 0 + 1 = 1

18041201 = 8 + 0 + 2 + 0 = 10

08141201 = 0 + 4 + 2 + 0 = 6

08140211 = 0 + 4 + 0 + 1 = 5

We have already passed the binary number to hexadecimal but we have a new problem and that is that the hexadecimal number system goes from 0 to 9 and for higher numbers it uses letters following this order:

  • 10 = A
  • 11 = B
  • 12 = C
  • 13 = D
  • 14 = E
  • 15 = F

Therefore, that 10 that we have obtained in the previous step is actually a letter A.

Finally, we put everything we have seen together and we are left with the binary number 1101001100101 equal to 1A65 in hexadecimal.

How to convert from binary to hexadecimal in Excel

Excel can convert from binary to hexadecimal automatically as long as we do not enter a binary number longer than 10 bits, after which it does not work and returns an error.

If for you this limitation is not a problem, you simply have to type the following Excel function to convert from binary to hexadecimal:

=BIN.A.HEX(A2)

With that equality, we are telling Excel to convert what is in parentheses from binary to decimal. In this case we are referencing cell A2 so when we write a binary number in it, will be automatically converted to hexadecimal.

If we wish, we can also write between the parentheses the binary number that we want to convert to hexadecimal:

=BIN.A.HEX(110101)

As you can see, the operation is very simple and will get us out of trouble as long as we do not have to work with binary numbers of too great a length. If you exceed the limits of Excel, you can always use our binary to hexadecimal converter which supports a much wider range.

Binary to hexadecimal table

Binary to hexadecimal converter

Below you will find a table that compiles all of the symbols in the hexadecimal system and you will see their correspondence in binary, so you can print the table if you think it is necessary or have a more global vision of the 16 symbols in hexadecimal.

BinaryHexadecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F

Binary to hexadecimal with the calculator

Hexadecimal Binary Calculator

We have already seen how convert from binary to hexadecimal with our converter, in Excel or even manually with operations but if you have a Casio scientific calculator at hand, you can probably do the conversion with it as well.

To do this, what you have to do is to locate the "MENU CONFIG" or "MODE SETUP" key and press it. You will get different options on the screen but you have to select the one that says "BASE-N".

Now all you have to do is locate and press the "BIN" button at the top. On the calculator in the picture you can see it on the last row of buttons. When you have pressed it, type the number in binary you want and press the equals key (=) when you are done.

Next, press the button that says "HEX" at the top (it is on the same row as "BIN") and the calculator will make the binary to hexadecimal conversion automatically.

Leave a Comment

Information on data protection

  • Responsible: Ignacio Cuesta
  • Purpose of processing: Spam control, comment management, etc.
  • Legitimation: Your consent
  • Communication of data: Data will not be communicated to third parties except by legal obligation.
  • Rights: Access, rectification, portability, forgetfulness.
  • Contact us: contacto@calculadoraconversor.com.
  • Additional information: More information at our privacy policy.