CalcuClubCalcuClub Logo

Decimal to Hexadecimal Converter

Convert from:
Convert to:
The result will be displayed here.
Calculation Steps:
Calculation steps will be displayed here.

Table of Contents

How does decimal to hexadecimal conversion work?

Converting a decimal number to hexadecimal involves transforming a base-10 number to its base-16 equivalent. In the hexadecimal system, numbers are represented with digits from 0 to 9 and letters from A to F, where A equals 10, B equals 11, C equals 12, D equals 13, E equals 14, and F equals 15.

Decimal to hexadecimal conversion formula

To convert a decimal number to hexadecimal, the following methodology is used:

  1. Divide the decimal number by 16.
  2. Record the remainder.
  3. Continue dividing the quotient by 16 until the quotient is 0.
  4. The remainders obtained represent the digits of the hexadecimal number, read from bottom to top.

Example #1

Convert the decimal number 156 to hexadecimal:

  1. 156 ÷ 16 = 9, remainder 12 (C in hexadecimal).
  2. 9 ÷ 16 = 0, remainder 9.

The hexadecimal number is 9C.

Example #2

Convert the decimal number 255 to hexadecimal:

  1. 255 ÷ 16 = 15, remainder 15 (F in hexadecimal).
  2. 15 ÷ 16 = 0, remainder 15 (F in hexadecimal).

The hexadecimal number is FF.

Decimal to hexadecimal conversion table

DecimalHexadecimal
00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
311F
633F
8555
1277F
12880
170AA
240F0
255FF

How was this page? Share feedback.