Hex to Decimal Conversion
This converter allows you to convert hexadecimal (base-16) values into decimal (base-10) numbers, and vice versa.
How to Use This Converter
- Enter a hexadecimal number like
1A3
to convert it to decimal - Or input a decimal number to see its hex equivalent
Understanding the Conversion
Hexadecimal is a base-16 system, which means it uses 16 symbols: 0-9 and A-F. Each digit represents a power of 16.
To convert from hex to decimal, multiply each digit by 16 raised to the power of its position (right to left, starting at 0).
Example: Convert 1A316
to decimal:
- 1 × 16² = 256
- A × 16¹ = 10 × 16 = 160
- 3 × 16⁰ = 3
Result: 256 + 160 + 3 = 419
Hex to Decimal Table (0-15)
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 |
Applications of Hex to Decimal
Hexadecimal is frequently used in:
- Programming and debugging (memory addresses, error codes)
- Color codes in HTML/CSS (e.g.,
#FF5733
) - Data encoding and machine-level computation