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

Conversion Table

DecimalHexadecimal
10A
15F
1610
10064
255FF
256100
10003E8
65535FFFF

Last updated: 2025