Input

Output

What Is Hex to Decimal Conversion?

Whether you're debugging a CSS hex color code, reading memory dumps, or parsing Unicode code points, converting hex to decimal is one of those everyday tasks that gets tedious fast. This tool handles it instantly — paste your hexadecimal values and get clean decimal output. It automatically strips 0x prefixes and works with both uppercase and lowercase digits, so you can use it with output from JavaScript parseInt, Python, C, or any other language without reformatting.

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 parseInt with a radix of 16 for programmatic conversion. The tool strips optional 0x prefixes automatically.

How to Use This Tool

1

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.

2

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.

3

Copy or Download

Once the base-10 numbers look right, Copy grabs them for pasting elsewhere and Download stores them in a plain .txt file.

Conversion Examples

Here are some common hex to decimal conversions:

Hexadecimal Input

Input

Decimal Output

Output

Frequently Asked Questions

How do you convert hex to decimal step by step?

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. In code, parseInt('FF', 16) does this in one call.

Does this tool support the 0x prefix?

Yes. The tool automatically strips 0x or 0X prefixes before conversion. This is handy when pasting output from debuggers, Unicode notation (U+0041), or programming language literals.

Are my hex values uploaded anywhere?

No. Each conversion is done by JavaScript already loaded in this page, with no API call behind it, so the values you paste stay on your machine.

How do I convert a CSS hex color to decimal RGB values?

Split the 6-digit hex color into pairs (e.g., #FF8800 becomes FF, 88, 00), then convert each pair. FF = 255, 88 = 136, 00 = 0, giving you RGB(255, 136, 0). This tool converts each pair if you enter them on separate lines.

Can it handle very large hex numbers?

Yes. The converter uses JavaScript BigInt internally, so it can convert hex values of any length — including 64-bit addresses and beyond — without precision loss.

Related Tools

Learn more: GeeksforGeeks hex to decimal guide, Computer Hope hex reference, and the Wikipedia article on hexadecimal.