Hex to Decimal Converter
Convert hexadecimal numbers to decimal representation online. Free, fast, and runs entirely in your browser.
Input
Output
What Is Hex to Decimal Conversion?
Hex to decimal conversion transforms numbers from the base-16 (<a href="https://en.wikipedia.org/wiki/Hexadecimal#Written_representation" target="_blank" rel="noopener">hexadecimal</a>) numeral system into the base-10 (decimal) numeral system. Hexadecimal digits 0-9 represent values 0-9, while A-F represent values 10-15. Each hex digit position represents a power of 16.
This conversion is commonly needed when working with CSS color codes, memory addresses, Unicode code points, or any hexadecimal data from programming and networking contexts. In JavaScript, you can use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt" target="_blank" rel="noopener">parseInt with a radix of 16</a> for programmatic conversion. The tool strips optional 0x prefixes automatically.
How to Use This Tool
Enter Hexadecimal Numbers
Type or paste one hex number per line in the left editor. Numbers may optionally start with 0x. Click Sample to load examples, or Upload a text file.
View Decimal Output
The right panel updates automatically with the decimal value of each hex number. Invalid hex characters trigger an error message on that line.
Copy or Download
Click Copy to copy the decimal output to your clipboard, or Download to save it as a text file.
Conversion Examples
Here are some common hex to decimal conversions:
Hexadecimal Input
Decimal Output
Frequently Asked Questions
How does hex to decimal conversion work?
Multiply each hex digit by 16 raised to the power of its position (starting from 0 on the right) and sum the results. For example, FF = 15×161 + 15×160 = 240 + 15 = 255.
Does this support the 0x prefix?
Yes. The tool automatically strips a leading 0x or 0X prefix before conversion. Hex prefixes are common in Unicode code point notation (e.g., U+0041 for "A").
Is my data sent to a server?
No. All processing happens locally in your browser. No data leaves your machine.
Are both uppercase and lowercase hex supported?
Yes. Both FF and ff produce the same decimal result (255). This is particularly useful when working with hexadecimal color values in web development.
Related Tools
Learn more: GeeksforGeeks hex to decimal guide, Computer Hope hex reference, and the Wikipedia article on hexadecimal.