How to use Hex to Decimal
- Type or paste your hex value, for example FF or 0xDEADBEEF.
- Read the decimal value in the result box.
- Check the table for the same number in binary and octal.
- Click Copy to copy the decimal value.
Features
- Accepts upper or lower case and an optional 0x prefix
- Exact for long hex values, such as 64-bit and larger
- Also shows the value in binary and octal
- Clear message when a character is not a hex digit
- Runs in your browser, so nothing is uploaded
Supported formats and limits
- Maximum input: 10,000,000 characters
Examples
| Input | Result |
|---|---|
| FF | 255 |
| 1A3 | 419 |
| 0xDEADBEEF | 3735928559 |
| 12G | Error: "g" is not a valid digit in base 16. |
Limitations
- Only whole numbers are supported; hex fractions are not.
- Hex is read as an unsigned number unless you type a minus sign; two’s complement is not applied.
- Input is limited to 5,000 digits.
Learn more
Hexadecimal is a base-16 number system. It needs sixteen symbols, so after 0–9 it uses the letters A to F. Each position is worth a power of 16: 1, 16, 256, 4,096 and so on.
Programmers like hex because it lines up neatly with binary. One hex digit represents exactly four bits, so a byte is always two hex digits, from 00 to FF. Memory addresses, color codes such as #FF8800, MAC addresses and many file formats are written in hex for that reason.
To read a hex number as decimal, multiply each digit by its power of 16 and add the results: 1A3 is 1 × 256 + 10 × 16 + 3 × 1 = 419. This tool does that with exact integers, so even very long values such as 64-bit identifiers convert without rounding.
Frequently asked questions
What are the digits of hexadecimal?
The digits 0–9 and the letters A–F, where A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15.
How do I convert hex to decimal by hand?
Multiply each digit by 16 raised to its position, counting from 0 on the right, and add. For 1A3: 1×256 + 10×16 + 3 = 419.
Does the 0x prefix matter?
No. It is optional and is ignored when present.
Is my input uploaded?
No. The conversion runs in your browser.
Sources
Last reviewed: September 30, 2026