Hex to Decimal Calculator
Convert a hexadecimal (base 16) number to decimal (base 10).
- Free to use
- Accurate results
- No registration required
- Works on all devices
Enter a hexadecimal number to convert it to decimal.
Use digits 0-9 and letters a-f (case-insensitive).
Your result
255
Decimal
AI explanation
Formula
Sum each hex digit's value multiplied by its place value (a power of 16)Worked example
ff to decimal
| Field | Value |
|---|---|
| Hex number | ff |
| Decimal | 255 |
Assumptions
- Input must contain only the digits 0-9 and letters a-f (case-insensitive).
Frequently asked questions
How do I convert hex to decimal by hand?
Multiply each hex digit's value (0-15, using a=10 through f=15) by its place value (1, 16, 256, ... from right to left) and add up the results. For example, hex 1a = 1×16 + 10×1 = 26.
Is hex case-sensitive?
No — this calculator accepts both uppercase and lowercase letters (FF and ff give the same result).
What about the reverse conversion?
Use the Decimal to Hex Calculator to convert a decimal number to hex.