Hexadecimal to Decimal Converter
Convert hexadecimal (base-16) numbers to decimal (base-10). Enter any hex value — from single digits to full 32-bit words — and get the decimal result instantly.
Common Values
| Input | Decimal |
|---|---|
| 0 | 0 |
| f | 15 |
| 10 | 16 |
| ff | 255 |
| 100 | 256 |
| 1000 | 4096 |
| ffff | 65535 |
| 10000 | 65536 |
| ffffff | 16777215 |
| ffffffff | 4294967295 |
How It Works
To convert hex to decimal, multiply each digit by its power of 16 and sum the results. Digits A-F have values 10-15. For example, FF: F×16¹ + F×16⁰ = 15×16 + 15 = 240+15 = 255. For longer hex values, work from right to left: position 0 is 16⁰=1, position 1 is 16¹=16, position 2 is 16²=256, and so on.
Worked Examples
| Hexadecimal | Decimal |
|---|---|
| f | 15 |
| 10 | 16 |
| 1f | 31 |
| 20 | 32 |
| ff | 255 |
| 100 | 256 |
| 1000 | 4096 |
| ffff | 65535 |
| ffffff | 16777215 |
| ffffffff | 4294967295 |
Related Conversions
Frequently Asked Questions
- How do I convert hex to decimal?
Assign each hex digit a place value (powers of 16: 1, 16, 256, 4096...) from right to left. Convert A-F to 10-15. Multiply and sum all values.
- What is FF in decimal?
FF in hexadecimal is 255 in decimal. It is 15×16 + 15 = 255, the maximum value of a single unsigned byte.
- What does 0xFFFFFFFF equal in decimal?
0xFFFFFFFF equals 4,294,967,295 in decimal. This is the maximum value of a 32-bit unsigned integer.
- Is hex case-sensitive?
No. FF, ff, and Ff all represent the same value. This converter accepts any mix of uppercase and lowercase hex digits.