Hexadecimal to decimal converter
Type a hexadecimal number and this tool shows its decimal value.
Results
Enter your values to see the result.
About this tool
It ignores spaces, underscores and a 0x prefix, so you can paste values straight from code. It is useful for colours, memory addresses and checksums.
- How it is calculated
- each hexadecimal digit counts for a power of 16 (A to F are 10 to 15). Spaces, underscores and a 0x prefix are ignored.
- Worked example
- With Hexadecimal number: FF, the result is: Decimal: 255.
- Good to know
- Each hexadecimal digit stands for a power of 16, with the letters A to F standing for 10 to 15. The tool works for whole numbers, and it treats upper and lower case letters in the same way.
Frequently asked questions
How do I convert hexadecimal to decimal by hand?
Multiply each digit by a power of 16, starting with 1 on the right, and add the results. For FF, that is 15 times 16 plus 15, which is 255.
What does the 0x prefix mean?
It marks a number as hexadecimal in many programming languages. The tool ignores it, so you can paste the value with or without it.