Convert Decimal to Hexadecimal.
- Front page
- Base Converter
- Binary/Octal/Decimal/hexadecimal converter
Binary/Octal/Decimal/hexadecimal converter
How to use Base Converter
Enter the Decimal value you want to convert and click the "Convert" button.
The input value will be calculated and the converted result will be displayed in Hexadecimal.
The calculation method for conversion is also displayed.
Numerical input range
Decimal:0–9
Conversion by base number
How to convert from Decimal to Hexadecimal
Method of calculation
When converting a decimal number to hexadecimal, divide the decimal number by 16 until it becomes 0, and then output Remainder.
In hexadecimal notation, 10 to 15 are represented by A to F, so numbers above 10 are converted.
Decimal | 10 | 11 | 12 | 13 | 14 | 15 |
---|---|---|---|---|---|---|
Hexadecimal | A | B | C | D | E | F |
- 1. Divide the decimal number by 16 to get Quotient and Remainder.
- 2. Divide the next Quotient by 16 to get Quotient and Remainder.
- 3. Repeat this until Quotient becomes 0.
- 4. The number obtained by reversing Remainder is the result of converting it to hexadecimal.
Calculation example
Example: Convert Decimal "467" to Hexadecimal
Formula | Quotient | Remainder |
---|---|---|
467÷16 | 29 | 3 |
29÷16 | 1 | 13 |
1÷16 | 0 | 1 |
The converted value is ``1D3', which is obtained by arranging the remaining numbers in reverse order and replacing numbers 10 or more with A to F.