How to convert Decimal to Hexadecimal

Decimal system is probably the most familiar numeral system in the world. It is the standard system for denoting integer and non-integer numbers. It is base 10 and it has 10 symbols: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.

On the other hand, hexadecimal system is probably more familiar as a numeral system that is commonly used in 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: Decimal to hexadecimal conversion table

Decimal0123456789101112131415
Hexadecimal0123456789ABCDEF

Instructions:

  1. Start with any decimal number
  2. Divide it by 16 and treat the division as an integer division
  3. Find out the remainder in a hexadecimal system
  4. Divide the result by 16 again
  5. Continue with remainder division until result is 0
  6. Resulting hexadecimal number is the digit sequence from the last to the first

Example #1: Convert decimal 158 into hexadecimal

Step descriptionDivisionResultRemainder
Divide 158 with 16158 / 16914 = E
Divide 9 with 169 / 1609 = 9
Resulting hexadecimal number9E

Example #2: Convert decimal 2019 into hexadecimal

Step descriptionDivisionResultRemainder
Divide 2019 with 162019 / 161263 = 3
Divide 126 with 16126 / 16714 = E
Divide 7 with 167 / 1607 = 7
Resulting hexadecimal number7E3

Convert decimal numbers to hexadecimal numbers.

Convert hexadecimal numbers to decimal numbers.

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


Have feedback or questions?

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

0/2000