Hexadecimal to Decimal Converter
Enter a hexadecimal number (0-9, A-F) to convert it to decimal (base-10).
How Hexadecimal to Decimal Conversion Works
Hexadecimal is a base-16 number system using digits 0–9 and letters A–F. Each hex digit represents 4 binary bits. To convert to decimal, multiply each digit by its place value (power of 16) and sum the results.
Decimal = dn×16n + … + d1×161 + d0×160
Hex 1A3F:
1×16³ + A×16² + 3×16¹ + F×16⁰
= 1×4096 + 10×256 + 3×16 + 15×1
= 4096 + 2560 + 48 + 15 = 6719
1×16³ + A×16² + 3×16¹ + F×16⁰
= 1×4096 + 10×256 + 3×16 + 15×1
= 4096 + 2560 + 48 + 15 = 6719
Hex Digit Values
| Hex | Decimal | Binary |
|---|---|---|
| 0 | 0 | 0000 |
| 1 | 1 | 0001 |
| A | 10 | 1010 |
| B | 11 | 1011 |
| C | 12 | 1100 |
| D | 13 | 1101 |
| E | 14 | 1110 |
| F | 15 | 1111 |
Common Hex Values
| Hex | Decimal | Use |
|---|---|---|
| FF | 255 | Max byte value |
| 100 | 256 | 256 values (1 byte + 1) |
| FFFF | 65535 | Max 16-bit unsigned |
| FFFFFF | 16777215 | White color in RGB |
| 7FFFFFFF | 2147483647 | Max 32-bit signed int |