Convert Hexadecimal to Decimal.
- Front page
- Base Converter
- Binary/Octal/Decimal/hexadecimal converter
Binary/Octal/Decimal/hexadecimal converter
How to use Base Converter
Enter the Hexadecimal value you want to convert and click the "Convert" button.
The input value will be calculated and the converted result will be displayed in Decimal.
The calculation method for conversion is also displayed.
Numerical input range
Hexadecimal:0–9,A–F
Conversion by base number
How to convert from Hexadecimal to Decimal
Method of calculation
Starting from the first digit, the hexadecimal numbers are 160, 161, 162, 163 .
Therefore, when converting a hexadecimal number to a decimal number, you can find it by calculating the number of digits x 16n for each digit.
If the digit number is A to F, convert it to 10 to 15 for calculation.
Hexadecimal | A | B | C | D | E | F |
---|---|---|---|---|---|---|
Decimal | 10 | 11 | 12 | 13 | 14 | 15 |
- 1. Calculate 16n for each digit.
- 2. Converts the number of digits to a decimal number from 10 to 15.
- 2. Calculate all non-zero digits x 16n.
- 3. The sum of all calculated numbers is the result of converting to decimal.
Calculation example
Example: Convert Hexadecimal "7B3" to Decimal
Digit | Hexadecimal | 16n |
---|---|---|
1 | 3 | 160 = 1 |
2 | B = 11 | 161 = 16 |
3 | 7 | 162 = 256 |
Calculating the number of non-zero digits x 16n yields "3×160 + 11×161 + 7×162 = 3 + 176 + 1792 = 1971".
Therefore, converting hexadecimal number "7B3" to decimal number becomes "1971".