Instant conversion
Hex to Decimal Converter
Decimal value = sum of each hex digit value × 16^position, counting positions from right to left starting at 0.
Common hex to decimal conversions
| hex | decimal |
|---|---|
| 1 | 1 |
| A | 10 |
| F | 15 |
| 10 | 16 |
| 1F | 31 |
| 2A | 42 |
| 64 | 100 |
| 7F | 127 |
| 80 | 128 |
| FF | 255 |
| 100 | 256 |
| 3E8 | 1000 |
How this conversion works
Decimal value = sum of each hex digit value × 16^position, counting positions from right to left starting at 0.
Privacy: Conversions run in this browser. Nothing you type is uploaded.
What you are converting
Hexadecimal
A base-16 number system using digits 0-9 and letters A-F, where A equals 10 and F equals 15. Programmers use it daily for memory addresses, color codes like #FF5733, and MAC addresses on network cards.
Decimal
The base-10 number system using digits 0-9, the standard counting system for everyday quantities such as prices, measurements, and calculator displays.
Why convert and when you would use this
Web developers convert hex color codes like #1A2B3C into decimal RGB values when matching colors across design tools. IT technicians convert hex error codes or memory addresses from system logs into decimal so they match printed documentation and vendor support articles.
Worked example
Convert hex 2F to decimal using the formula: the digit 2 sits in position 1 and F, worth 15, sits in position 0. Calculate (2 × 16^1) + (15 × 16^0) = 32 + 15 = 47. Hex 2F therefore equals decimal 47.
Rounding and accuracy
Hex to decimal conversion always produces an exact whole number, so no rounding is needed. Report results with zero decimal places. Rounding only becomes relevant if a tool appends trailing zeros or you convert fractional hex values, which standard integer conversions do not involve.
Frequently asked questions
How do you convert hex to decimal?
Evaluate each hexadecimal digit by its power of 16 and add the values.
What digits are valid in hexadecimal?
Hex uses 0-9 and A-F, where A=10 through F=15.
Is hex case-sensitive?
No. A-F and a-f have the same decimal values.