Mathematical Tutorial
How to Convert Decimal to Hexadecimal.
Learn the standard division-by-16 method for converting decimal numbers into hexadecimal values, complete with mappings and charts.
Successive division by 16.
Converting a decimal (base-10) number to a hexadecimal (base-16) number is typically achieved using the successive division by 16 method.
- Divide your decimal number by 16. Note the integer quotient and the remainder.
- Take the quotient and divide it by 16 again, noting the new quotient and remainder.
- Repeat this process until your quotient becomes 0.
- The remainders represent the hexadecimal digits. Map remainders from 10 to 15 to the letters A through F:
- 10 ➔ A | 11 ➔ B | 12 ➔ C | 13 ➔ D | 14 ➔ E | 15 ➔ F
- Write down the hex characters in reverse order (bottom to top, read from the last division to the first).
Try it: Decimal to Hex mini-calculator
Hex Result: FF
Step-by-step example.
Let's convert the decimal number 250 to hexadecimal:
• 250 ÷ 16 = 15, Remainder = 10 (➔ A)
• 15 ÷ 16 = 0, Remainder = 15 (➔ F)
Reading remainders from bottom to top gives: FA. Therefore, 25010 = FA16.
Decimal to Hex Table
| Decimal | Hexadecimal |
|---|---|
| 16 | 10 |
| 25 | 19 |
| 100 | 64 |
| 255 | FF |
| 256 | 100 |