Decimal to Hexadecimal Converter
Enter a decimal number to get its hexadecimal (base-16) representation.
Enter a decimal number above
Formula
Repeatedly divide by 16 and record remainders (0–9, A–F) reading bottom to top.
How to Convert Decimal to Hexadecimal
Divide the decimal number by 16 repeatedly. Record each remainder (using A=10, B=11, C=12, D=13, E=14, F=15). Read the remainders from bottom to top.
Example: Convert 255 to hexadecimal
255 ÷ 16 = 15 R15 (F)
15 ÷ 16 = 0 R15 (F)
Result: FF
255 ÷ 16 = 15 R15 (F)
15 ÷ 16 = 0 R15 (F)
Result: FF
Conversion Table
| Decimal | Hexadecimal |
|---|---|
| 10 | A |
| 15 | F |
| 16 | 10 |
| 100 | 64 |
| 255 | FF |
| 256 | 100 |
| 1000 | 3E8 |
| 65535 | FFFF |
Related Converters
Last updated: 2025