Hex to Decimal Converter
Hexadecimal uses sixteen symbols (0–9 then A–F) so that each digit maps to exactly four bits. Converting to decimal means multiplying each digit by the right power of 16 and summing — the rightmost digit is units, the next is sixteens, then 256, and so on.
Enter a hex value below (with or without a 0x prefix) and the decimal equivalent appears instantly. Both uppercase and lowercase letters are accepted, and the conversion runs entirely in your browser.
| Hex | Expansion | Decimal |
|---|---|---|
A | 10 | 10 |
F | 15 | 15 |
10 | 16 | 16 |
FF | 15×16 + 15 | 255 |
1A | 1×16 + 10 | 26 |
FF→255F is 15, so FF = 15×16 + 15 = 255 — the maximum value of one byte.
Frequently asked questions
What do the letters A–F mean in hex?
They are digits with values 10 through 15: A=10, B=11, C=12, D=13, E=14, F=15. This lets a single hex digit represent any value from 0 to 15.
How do I convert hex to decimal manually?
Multiply each digit by 16 raised to its position (starting at 0 on the right) and add the results. For 1A: 1×16 + 10 = 26.
Why is hex common in programming?
One hex digit equals four bits and two hex digits equal one byte, so colors, memory addresses, and byte values are far more compact and readable in hex than in binary.
Is uppercase or lowercase required?
Neither — this tool accepts ff and FF equally and ignores a leading 0x prefix.