Hexadecimal to Decimal Converter
Type a hexadecimal number to see it as decimal, plus the other bases.
Free · Runs in your browser · Your text is never uploaded
How to convert hexadecimal to decimal
Each hex digit is worth 16 to a power. Starting from the right, multiply each digit by 1, 16, 256, 4096 and so on, then add the results. A is 10, B is 11 up to F, which is 15.
Worked example
The hexadecimal number FF is 255 in decimal.
Convert many at once
Put one number per line to convert a whole list, and copy the results.
A worked example
Take the hexadecimal number 3E8. Each digit is multiplied by the base raised to its position: 3×162 + 14×161 + 8×160 = 1000. Letters stand for A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. In decimal that is 1000.
Where it is used
Reading memory addresses, converting CSS color channels, or checking a value printed in hex by a debugger.
Tips
Spaces and underscores inside a number are ignored, so you can paste values like 1010 1111. Add a prefix (0x, 0b or 0o) if you are unsure which base a number is in. For the theory behind all four bases, read binary, decimal and hexadecimal explained.
Need more options? Open the full Number Base Converter.
Related guides
Frequently asked questions
How do I convert hexadecimal to decimal?
Enter the hexadecimal number above and the decimal result appears instantly.
Does it work for large numbers?
Yes, the arithmetic is exact for numbers up to 4,000 digits.
Can I convert negative numbers?
Yes, the minus sign is kept. Two’s complement is not applied.