Hex to Decimal
Paste any hexadecimal number and see its decimal value immediately, with a digit-by-digit breakdown. Free and private — the conversion runs entirely in your browser.
Digits 0–9 and letters A–F (either case). An optional 0x or # prefix, a leading minus sign, and spaces or underscores between digits are accepted.
Digit breakdown
| Digit | Value | Place 16n | Value × 16n |
|---|
How to use the Hex to Decimal converter
- Enter a hex number. Type or paste hexadecimal digits 0–9 and A–F; prefixes like 0x or # are stripped automatically.
- Read the decimal result. The base-10 value updates live as you type, together with the binary and octal equivalents.
- Study the breakdown or copy. The table shows what each hex digit contributes as a power of 16; the copy button grabs the plain decimal number.
About this tool
Hexadecimal (base 16) uses sixteen symbols — 0–9 plus A (10) through F (15) — and is everywhere in computing: memory addresses, error codes, color values like #FF6600, MAC addresses, Unicode code points and file dumps. To convert hex to decimal, multiply each digit's value by 16 raised to its position and add the results: 2AF = 2×256 + 10×16 + 15×1 = 687. This converter does the sum instantly and shows the full working, and thanks to big-integer math it handles values far beyond 64 bits without losing precision.
Your input never leaves your device — all math is done by JavaScript in the page itself, with nothing uploaded or logged. Going the other way? Use the Decimal to Hex converter, or the Number Base Converter for any base between 2 and 36.
Frequently asked questions
What do the letters A–F mean in hex?
Base 16 needs sixteen distinct digits, but we only have ten numerals. The letters extend them: A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. Case does not matter — 2af and 2AF are the same number.
How do I convert hex to decimal manually?
Number the digits from right to left starting at position 0. Multiply each digit's value by 16 raised to its position, then add everything up. For 1F4: 1×256 + 15×16 + 4×1 = 500. The breakdown table shows these steps for your own number.
Can I paste a CSS color code like #FF6600?
Yes — the leading # is ignored, so #FF6600 converts to 16,738,816. Note this treats the six digits as one number; to split a color into its red, green and blue channels, use a dedicated color converter instead.
Is there a size limit, and is my data private?
The tool accepts up to 5,000 hex digits and converts them exactly using arbitrary-precision arithmetic. Everything runs locally in your browser, so the numbers you enter are never transmitted anywhere.