CalcuClubCalcuClub Logo

Decimal to Hexadecimal Converter

Enter the decimal number you want to convert to hexadecimal.

The result will be displayed here.
Calculation Steps:
Calculation steps will be displayed here.

Table of Contents

How does decimal to hexadecimal conversion work?

The decimal system is base 10 and the hexadecimal system is base 16. To convert a decimal number to hexadecimal, repeatedly divide the number by 16 and record the remainders. Then, read the remainders in reverse order (from bottom to top) to obtain the hexadecimal number. Digits greater than 9 are represented with the letters A through F.

Decimal to hexadecimal conversion formula

To convert a decimal number N to hexadecimal:

N=hk16k+hk-116k-1+...+h1161+h0160

Where the coefficients hi (remainders) take values from 0 to 15, which are represented with digits 0 to 9 and the letters A through F.

Conversion process

  1. Divide the decimal number by 16 and note the remainder (0–15).
  2. Take the quotient obtained and repeat the division by 16 until you reach 0.
  3. Write the remainders in reverse order (from bottom to top) to obtain the hexadecimal number.

Examples

Example 1: convert 26₁₀ to hexadecimal
DivisionQuotientRemainder
26 ÷ 16110 → A
1 ÷ 1601

Reading the remainders from bottom to top: 1A₁₆.

Result: 26₁₀ = 1A₁₆.

Example 2: convert 255₁₀ to hexadecimal
DivisionQuotientRemainder
255 ÷ 161515 → F
15 ÷ 16015 → F

Reading the remainders from bottom to top: FF₁₆.

Result: 255₁₀ = FF₁₆.

Decimal to hexadecimal conversion table

Quick reference values for small decimal numbers.

Decimal (base 10) to Hexadecimal (base 16) references
DecimalHexadecimal
00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
3220
6440
12880
256100
512200
1024400

Frequently Asked Questions

How do you convert a decimal number to hexadecimal?

To convert a decimal number to hexadecimal, repeatedly divide the number by 16 and record the remainders. Then, read the remainders from bottom to top to get the base-16 number.

Which digits are used in the hexadecimal system?

The hexadecimal system uses 16 symbols: the digits 0 to 9 and the letters A to F, representing the values 10 to 15.

How was this page? Share feedback.