Convert Hexadecimal to Decimal
When you meet a hex value in a color, a status register, or a memory dump, you often need its plain decimal meaning. This converter turns base-16 numbers into base-10 integers, accepting an optional 0x prefix.
Example · Hex → Decimal
Hex input
a ff 1000 ffff
Decimal output
10 255 4096 65535
How to convert Hex to Decimal
- Take your hex value, e.g. ff.
- Multiply each digit by 16 raised to its position, right to left.
- Sum the results — ff becomes 15×16 + 15 = 255.
Frequently asked questions
Does it accept a 0x prefix?
Yes. A leading 0x is stripped automatically, so both ff and 0xff convert to 255.
Is hex case-sensitive?
No. Upper- and lowercase letters a–f are treated the same, so FF and ff both equal 255.
Related converters