Decimal To Hexadecimal Converter

10
16

Converting Steps of Decimal to Hexadecimal:


How to convert a decimal number to the hexadecimal number?

To convert the whole-number part of a decimal value to hexadecimal, divide by 16 and read the remainders in reverse order. For the fractional part, multiply by 16 repeatedly and record each whole-number result until the fraction becomes 0 or reaches the precision you need. The example below shows the process:

Decimal to Hexadecimal Conversion

Example of decimal to hexadecimal conversion:

(398.375)10 = (?)16

For 398:

Divided by 16 Quotient Remainder Flow
398 / 16 24 14 or E
24 / 16 1 8
1 / 16 0 1

For .376:

Multiply by 16 Result Non-Fractional Part Flow
.376 * 16 6.00 6

Result is = (18E.6)16


When decimal to hexadecimal is useful

Hexadecimal is widely used because it represents binary data in a shorter form. Decimal to hexadecimal conversion is common in color codes, programming examples, memory addresses, byte values, and debugging output. A decimal value such as 255 becomes FF, which is easier to recognize in many technical contexts.

Checking the conversion

  • Hexadecimal uses digits 0 to 9 and letters A to F.
  • A means 10, B means 11, C means 12, D means 13, E means 14, and F means 15.
  • Read division remainders from bottom to top for whole numbers.
  • For fractional values, multiply the fractional part by 16 and record the whole-number part each time.

Decimal to hexadecimal conversion table:

Decimal Hexadecimal
0 0
1 1
2 2
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
1711
1812
1913
2014

Decimal to hexadecimal guide

Decimal to hexadecimal conversion uses repeated division by 16. Remainders from 10 to 15 are written with letters A through F.

Best uses

  • Convert values for programming, colors, memory addresses, or debugging.
  • Practice base-10 to base-16 conversion.
  • Check hexadecimal examples step by step.

Quality checks

  • Divide the whole-number part by 16 until the quotient is zero.
  • Read remainders upward.
  • Convert 10, 11, 12, 13, 14, and 15 into A, B, C, D, E, and F.

Common mistakes

  • Leaving a remainder such as 14 instead of writing E.
  • Reading remainders from top to bottom.
  • Forgetting that hex is base 16, not base 10.

Quick answers

What does E mean in hexadecimal?

E represents decimal 14 in hexadecimal.

Why is hexadecimal used in programming?

It is compact and maps neatly to binary because one hex digit represents four bits.