Hex to Decimal Converter
Convert a hexadecimal number to decimal, with binary and octal readouts.
A leading 0x or # is optional. Converted live as you type. Everything runs in your browser.
Hex format
Result
How to convert hex to decimal
Enter a hex number
Type or paste a hexadecimal value. A leading 0x or # prefix is optional.
Read the decimal value
The decimal result appears instantly, along with binary and octal versions.
Copy a result
Copy the decimal value or any of the other bases with one click.
Why use this tool
Decimal, binary, and octal
Every hex number is shown in base 10, base 2, and base 8 at once so you have every common base in view.
Prefixes handled
A leading 0x or # is stripped automatically, so you can paste color codes and memory addresses as-is.
Handles very large numbers
Long hex strings convert exactly without losing precision, so wide values and hashes stay correct.
Live and forgiving
Conversion happens as you type and spaces are ignored. Invalid digits produce a clear message instead of a wrong answer.
Private by design
All conversion runs on your device. Nothing you type leaves the page. No upload, no signup.
About this tool
Hexadecimal is base 16, using the digits 0 to 9 and the letters A to F. It is everywhere in computing, from color codes and memory addresses to byte dumps, because each hex digit maps neatly to four bits. Reading a hex value back as a normal decimal number by hand means multiplying by powers of sixteen, which this tool does for you the instant you type.
The result also appears in binary and octal, so a single hex value gives you all four common bases at once. A leading 0x or # prefix is stripped automatically, which means you can paste a CSS color like #1A2B3C or a pointer like 0xFF00 straight in without editing it first.
Very long hex strings are handled exactly, so there is no rounding even for wide values. Spaces are ignored and invalid characters are flagged rather than guessed at. To go the other way, use the decimal to hex converter, and for base 2 see the binary to decimal converter or the full number base converter.
Frequently asked questions
- How do I convert hex to decimal?
- Each hex digit represents a power of sixteen. Multiplying each digit by its place value and adding the results gives the decimal number. This tool does that instantly, so FF becomes 255.
- Do I need to remove the 0x or # prefix?
- No. A leading 0x, 0X, or # is detected and stripped automatically, so you can paste color codes and addresses without editing them.
- Can I convert very long hex values?
- Yes. The converter handles arbitrarily long hex strings without losing precision, so wide values and hashes stay exact.
- What if I enter an invalid character?
- Anything outside 0 to 9 and A to F triggers a short error message rather than a wrong result. Spaces are allowed and ignored.
- Is my data sent anywhere?
- No. Every calculation happens on your device as you type. Nothing is uploaded and no account is needed.
Related tools
Decimal to Hex Converter
Convert a decimal number to hexadecimal and hex back to decimal, with binary and octal shown for reference.
Binary to Decimal Converter
Convert a binary number to its decimal value, with hexadecimal and octal readouts.
Number Base Converter
Convert a number between binary, octal, decimal, and hexadecimal, all four shown at once.
Angle Converter
Convert an angle between degrees, radians, gradians, turns, arcminutes and arcseconds, with a degrees-minutes-seconds breakdown.
Area Converter
Convert area between metric and imperial units instantly.
Celsius to Fahrenheit Converter
Convert Celsius to Fahrenheit instantly, and edit either side to convert back.