Decimal to Hexadecimal Converter

To convert a decimal number to hexadecimal, divide the number by 16 repeatedly and collect the remainders. The hexadecimal number is formed by reading the remainders from bottom to top.

Decimal to Hexadecimal Digit Mapping

Decimal Number Hexadecimal Digit
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F

Example: Convert Decimal 254 to Hexadecimal

Division Step Division Expression Quotient Remainder Hex Digit
1 254 ÷ 16 15 14 E
2 15 ÷ 16 0 15 F
Hexadecimal Result: FE

The hexadecimal equivalent of the decimal number 254 is FE .