Do you know how to go from **decimal to hexadecimal**? While we use the decimal system by default, in some cases related to the computer world, it is essential to work with the decimal system.** hexadecimal format **in which we have a base 16, forcing us to make a conversion between the two systems.

Our **decimal to hexadecimal converter** will do that conversion for you, saving you all the calculations behind it. Of course, we also have the inverse converter available that will allow you to from hexadecimal to decimal.

Article sections

## How to convert from decimal to hexadecimal

For **convert a number from decimal to hexadecimal** There are several ways to do this. The one that I personally find the easiest is to pass the number of decimal to binary.

Once we have it, we will go from binary to hexadecimal. For this purpose, we do **groupings of 4 numbers** starting from the right. If at the end we do not have a group of four numbers left, we fill in with zeros to the left until the missing digits are completed.

Finally, we look for the equivalence of the groups of 4 digits in **binary with its corresponding hexadecimal symbol**.

By **example.**As we have said before, the first thing we will do is to convert it to binary:

73

_{10}= 1001001_{2}

Now we do **groups of four symbols starting from the right** and we are left with this:

0100 1001

Notice that since we did not have enough digits, **we have filled in with a zero** to the left to have a second group of four symbols.

Finally, we look for the correspondence of the groups in binary with its equivalent in hexadecimal and we have that:

0100

_{2}= 4_{16}1001

_{2}= 9_{16}

Therefore, we conclude that the number 73 in decimal is equivalent to 49 in hexadecimal.

If you want to see for yourself, use our online calculator and you will see that this is the result we have just obtained.

There is another **method for transforming a decimal number to hexadecimal** but we believe it is much more labor-intensive and involves more risk of error.

## Change from decimal to hexadecimal in Excel

To pass a number **from decimal to hexadecimal in Excel** just type the following formula in an empty cell in your spreadsheet

=DEC.A.HEX()

Between the brackets you have to write the decimal number you want to use **convert to hexadecimal**. This is simply enough.

For example, if you want to **switch to base 16** the decimal number 1678, the Excel function would be written like this:

=DEC.A.HEX(1678)

It is one more utility of the Microsoft program that is always good to know in case at some point you cannot consult our calculator.

## Decimal to Hexadecimal Equivalency Table

The following are some examples of **equivalence between decimal and hexadecimal**. If you wish, you can print this table and have it as a quick reference for those moments when you cannot use our online converter.

Notice that since the hexadecimal **uses base 16** and our decimal system only goes from 0 to 9, the first letters of the alphabet are used to cover the rest of the missing symbols.

Decimal (base 10) | Hexadecimal (base 16) |
---|---|

0 | 0 |

1 | 1 |

2 | 2 |

3 | 3 |

4 | 4 |

5 | 5 |

6 | 6 |

7 | 7 |

8 | 8 |

9 | 9 |

10 | A |

11 | B |

12 | C |

13 | D |

14 | E |

15 | F |

16 | 10 |

17 | 11 |

18 | 12 |

19 | 13 |

20 | 14 |

30 | 1E |

40 | 28 |

50 | 32 |

60 | 3C |

70 | 46 |

80 | 50 |

90 | 5A |

100 | 64 |

200 | C8 |

1000 | 3E8 |

2000 | 7D0 |

## Decimal to hexadecimal examples

To put into practice all that you have learned about **how to convert from decimal to hexadecimal**Below are some solved examples for you to practice:

Decimal | Hexadecimal |
---|---|

14 | E |

278 | 116 |

321 | 141 |

3457 | D81 |

7809 | 1.0E+81 |

10567 | 2947 |

19706 | 4CFA |

If you want more examples you can create them yourself. Just select any decimal number at random and do the **decimal to hexadecimal conversion.** Afterwards you can use the hexadecimal calculator to check if you have done it correctly or need to revise it.

If you have any questions about this conversion, leave us a comment and we will help you as soon as possible.

Hello good afternoon from Tenerife, I would like to know how much is in pixels 12 cm x 17'2 I need it to make my wedding invitations, greetings and thank you very much.

Hello Angels,

Without knowing the pixel density it is impossible to calculate it. You have more information here: https://www.calculadoraconversor.com/pixeles-a-cm/