Hex to Decimal Converter
Convert hexadecimal to decimal, or decimal back to hex.
How hexadecimal to decimal conversion works
Hexadecimal is base 16, using the digits 0–9 and letters A–F (where A is 10 and F is 15). To convert to decimal (base 10), multiply each digit by 16 raised to the power of its position, counting from zero on the right, then add the results together.
Frequently asked questions
How do you convert hex to decimal?
Each hexadecimal digit is worth 16 raised to its position. Multiply each digit by its place value and add them up. For example, FF = 15×16 + 15 = 255.
What is hexadecimal used for?
Hex is a base-16 system common in computing — for colour codes (like #FF0000), memory addresses, and byte values — because it maps neatly onto binary.
Can I convert decimal back to hex?
Yes. Enter a decimal number in the second box and it is converted to its hexadecimal equivalent instantly.