Hexadecimal to Decimal Converter
Convert from:
Convert to:
The result will be displayed here.
Calculation Steps:
Calculation steps will be displayed here.
Table of Contents
- How does hexadecimal to decimal conversion work?
- Hexadecimal to decimal conversion formula
- Conversion process
- Example #1
- Example #2
- Hexadecimal to decimal conversion table
How does hexadecimal to decimal conversion work?
Converting a hexadecimal number to decimal involves transforming a base-16 number to its base-10 equivalent. In the hexadecimal system, numbers are represented using digits 0 through 9 and letters A through F, where A equals 10, B equals 11, C equals 12, D equals 13, E equals 14, and F equals 15. This system is widely used in computing to simplify binary representation.
Hexadecimal to decimal conversion formula
To convert a hexadecimal number to decimal, use the following formula:
Where:
i
is the position of the digit, starting from the right (withi
= 0 for the least significant digit).n
is the total number of digits in the hexadecimal number.
Conversion process
The step-by-step process to convert a hexadecimal number to decimal is as follows:
- Write the hexadecimal number and assign powers of 16 to each digit, starting from 0 from the right.
- Substitute each hexadecimal digit with its decimal equivalent.
- Multiply each digit's value by 16 raised to the corresponding power.
- Add all products to get the final decimal value.
Example #1
Convert the hexadecimal number 1A3 to decimal:
- 3 × 160 = 3
- A × 161 = 10 × 16 = 160
- 1 × 162 = 1 × 256 = 256
Sum: 256 + 160 + 3 = 419
The decimal number is 419.
Example #2
Convert the hexadecimal number 7F to decimal:
- F × 160 = 15 × 1 = 15
- 7 × 161 = 7 × 16 = 112
Sum: 112 + 15 = 127
The decimal number is 127.
Hexadecimal to decimal conversion table
Hexadecimal | Decimal |
---|---|
0 | 0 |
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
A | 10 |
B | 11 |
C | 12 |
D | 13 |
E | 14 |
F | 15 |
1F | 31 |
3F | 63 |
55 | 85 |
7F | 127 |
80 | 128 |
AA | 170 |
F0 | 240 |
FF | 255 |