Convert Hexadecimal to Decimal
1 Hexadecimal (hex) = 1 Decimal (dec). Use the free converter below to instantly convert any hexadecimal value to decimal, or view the full conversion table and formula.
1 hex = 1 dec
Hexadecimal to Decimal Conversion Table
How to Convert Hexadecimal to Decimal
To convert hexadecimal to decimal, multiply each digit by 16 raised to the power of its position (starting from 0 on the right), then sum all values. For example, 2A in hex: (2 × 16¹) + (10 × 16⁰) = 32 + 10 = 42 in decimal.
Worked Example: Convert F hex to dec
Start with the value in hexadecimal
F hex
Apply the formula
Expand each F digit × 16^position, sum all values
Calculate the result
F hex = 15 dec
Hexadecimal to Decimal Examples
0 hex is equal to 0 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, 0 hex converts to 0 dec.
1 hex is equal to 1 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, 1 hex converts to 1 dec.
A hex is equal to 10 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, A hex converts to 10 dec.
F hex is equal to 15 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, F hex converts to 15 dec.
10 hex is equal to 16 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, 10 hex converts to 16 dec.
1F hex is equal to 31 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, 1F hex converts to 31 dec.
20 hex is equal to 32 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, 20 hex converts to 32 dec.
40 hex is equal to 64 dec. Using the formula Expand each hexadecimal digit × 16^position, sum all values, 40 hex converts to 64 dec.
Converting Decimal to Hexadecimal
Need the reverse conversion? Use the table below for a quick reference converting decimal back to hexadecimal.
| Decimal (dec) | Hexadecimal (hex) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 7 | 7 |
| 8 | 8 |
| 10 | A |
Hexadecimal to Decimal FAQ
What is hexadecimal?
Hexadecimal is a base-16 number system using digits 0-9 and letters A-F (where A=10, B=11, C=12, D=13, E=14, F=15).
What is 0xFF in decimal?
0xFF in hexadecimal equals 255 in decimal. Each F represents 15, so FF = (15 × 16) + 15 = 255.
Understanding Hexadecimal and Decimal
What is a Hexadecimal (hex)?
The hexadecimal (hex) is a specialized unit of number systems. It is commonly abbreviated as hex and relates to decimal by a factor of 1.
What is a Decimal (dec)?
The decimal (dec) is a specialized unit of number systems. It is commonly abbreviated as dec and relates to hexadecimal by a factor of 1.