Hex To Decimal converts a base-16 numeral into a base-10 numeral. Hex To Decimal maps each digit 0 through 9 and A through F onto values 0 through 15, multiplies each value by 16 raised to its place, and sums the products. Hex To Decimal turns FF into 255 and 10 into 16. Hex To Decimal accepts an optional 0x prefix and ignores it in the place count. The same page can reverse the conversion, sending a decimal integer back to hex digits. Each extra hex digit multiplies the running total by sixteen before that new digit is added in.