Hex to Decimal Converter
Convert hexadecimal numbers to decimal online. Handle 0x prefix, single or multiple values per line.
Paste hex values like FF or 0xDEADBEEF and get decimal numbers back instantly. Handles the 0x prefix, bare hex, mixed case, and batches of values — one per line or separated by spaces. And everything runs in your browser. Nothing gets uploaded.
How to Use
Enter hex values in the left panel, one per line. Supports 0x prefix and bare hex strings.
Optionally enable "Show hex alongside" to display both hex and decimal, or "Thousands separator" for commas in large numbers.
Click Convert or leave Live mode enabled for instant results as you type.
Copy the decimal output to your clipboard when done.
Frequently Asked Questions
How does hex to decimal conversion work?
Hexadecimal is base-16, using digits 0-9 and letters A-F (where A=10, B=11, C=12, D=13, E=14, F=15). To convert to decimal, each digit is multiplied by 16 raised to the power of its position (starting from 0 on the right). For example, hex "1F" = 1*16 + 15*1 = 31 in decimal.
What is the 0x prefix?
The "0x" prefix is a common programming convention used to indicate that the number following it is in hexadecimal format. For example, 0xFF means hex FF, which equals decimal 255. This tool automatically strips the 0x prefix during conversion, so you can use it or leave it out.
Can I convert multiple hex values at once?
Yes. Enter one hex value per line and each will be converted to its decimal equivalent on a corresponding output line. You can also paste a list of hex values separated by newlines for batch conversion.
What is the maximum hex value this tool can handle?
JavaScript can accurately represent integers up to 2^53 - 1 (9,007,199,254,740,991), which is hex 1FFFFFFFFFFFFF. For values within this range, the conversion is exact. For larger values, the tool uses BigInt for precise conversion of arbitrarily large hex numbers.
Is the conversion case-sensitive?
No. Hexadecimal letters A-F can be entered in uppercase (FF) or lowercase (ff) or mixed case (fF). All produce the same decimal result. The tool normalizes the input before conversion.