Hexadecimal to Decimal Converter
Convert hexadecimal numbers to decimal. Hexadecimal values such as color components, ports and addresses are converted to decimal to read them as ordinary numbers.
Hexadecimal to Decimal converter
Result
- Binary
- —
- Octal
- —
- Decimal
- —
- Hexadecimal
- —
How to convert hexadecimal to decimal
Multiply each hexadecimal digit by 16 raised to the power of its position, counting from 0 at the right, then add the results.
Example: 9C (hexadecimal) to decimal
9C = 9 × 16¹ + C × 16⁰
= 144 + 12 = 156
Examples
- A (hexadecimal) = 10 (decimal)
- 9C (hexadecimal) = 156 (decimal)
- FF (hexadecimal) = 255 (decimal)
- 3E8 (hexadecimal) = 1000 (decimal)
Hexadecimal to Decimal conversion table
| Hexadecimal (base 16) | Decimal (base 10) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| A | 10 |
| B | 11 |
| C | 12 |
| D | 13 |
| E | 14 |
| F | 15 |
| 10 | 16 |
| 14 | 20 |
| 20 | 32 |
| 32 | 50 |
| 40 | 64 |
| 64 | 100 |
| 7F | 127 |
| 80 | 128 |
| FF | 255 |
| 100 | 256 |
| 200 | 512 |
| 3E8 | 1000 |
| 400 | 1024 |
The table lists the same whole numbers for every pair of bases.
Frequently asked questions
- What is FF in decimal?
- FF in hexadecimal is 255 in decimal.
- How do I convert hexadecimal to decimal by hand?
- Multiply each hexadecimal digit by 16 raised to the power of its position, counting from 0 at the right, then add the results.
- What digits does hexadecimal use?
- Hexadecimal uses the digits 0 to 9 and A to F. Hexadecimal writes bytes compactly: web colors (#FF8800), memory addresses, MAC addresses and character codes all use it.
- What is decimal used for?
- Decimal is the everyday number system for counting, money and measurement.