Hex to Decimal Converter
Convert hexadecimal to decimal instantly. Free online tool with batch support, step-by-step explanation, and no signup required.
Accepted formats include FF, ff, 0xFF, 0xff, and FFh. Learn how hexadecimal conversion works by hand.
Hexadecimal to Decimal Conversion Examples
| Hexadecimal Input | Decimal Result |
|---|---|
| FF | 255 |
| 1A3 | 419 |
| 0x100 | 256 |
| 7FFF | 32767 |
| DEADBEEF | 3735928559 |
How to Convert Hexadecimal to Decimal
- 1Identify each hex digit and its decimal value (0-9 stay the same, A=10, B=11, ..., F=15).
- 2Starting from the rightmost digit, multiply each digit by 16 raised to its position power (starting from 0).
- 3Sum all the products to get the final decimal value.
- 4Example: hex '2F' = 2×16¹ + F(15)×16⁰ = 32 + 15 = 47.
Frequently Asked Questions
What is hexadecimal?⌄
Hexadecimal is a base-16 number system using digits 0-9 and letters A-F. It's commonly used in programming, memory addresses, color codes, and network addressing.
How do I convert hex to decimal manually?⌄
Multiply each hex digit by 16 raised to its position power (starting from 0 at the right), then sum all values. For example, hex 'FF' = 15×16¹ + 15×16⁰ = 240 + 15 = 255.
What is the hex prefix?⌄
Hexadecimal numbers are often written with a '0x' prefix (e.g., 0xFF) in programming languages like C, Python, and JavaScript. Our converter handles both with and without the 0x prefix.
Is FF equal to 255?⌄
Yes. Hex FF equals decimal 255 because each F represents 15: 15×16 + 15 = 255.
How do I convert 0xFF to decimal?⌄
Ignore the 0x notation prefix, then calculate F×16 + F. The result is decimal 255.
Can hex numbers contain letters?⌄
Yes. Hexadecimal uses A, B, C, D, E, and F for decimal values 10 through 15.
Can I convert multiple hex values at once?⌄
Yes! Enable batch mode in our converter and paste one hex value per line. All values will be converted instantly.
What is the largest hex number I can convert?⌄
Our converter handles values up to 7FFFFFFFFFFFFFFF (hex) which equals 9,223,372,036,854,775,807 in decimal (64-bit signed integer maximum).