Hexadecimal to Decimal (hex to decimal)
Each hex digit is worth its value (A = 10 up to F = 15) times a power of 16. Type a hex number to see the decimal value and the working.
Binary
10 1111Octal
57Decimal
47Hexadecimal
2FShow the working
| Digit | Value | Place value | Digit × place value |
|---|---|---|---|
| 2 | 2 | 161 | 32 |
| F | 15 | 160 | 15 |
| Add them up | 47 | ||
Hexadecimal to decimal table
| Hexadecimal | Decimal |
|---|---|
0 | 0 |
9 | 9 |
A | 10 |
F | 15 |
10 | 16 |
1F | 31 |
20 | 32 |
40 | 64 |
64 | 100 |
7F | 127 |
80 | 128 |
C8 | 200 |
FF | 255 |
100 | 256 |
3E8 | 1,000 |
400 | 1,024 |
7FF | 2,047 |
FFF | 4,095 |
1000 | 4,096 |
FFFF | 65,535 |
How it works
- Write each digit's value: 0 to 9 stay the same, A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
- Multiply each value by 16 to the power of its position, counting from 0 on the right, then add.
- Example: 2F = 2 × 16 + 15 × 1 = 47.
Frequently asked questions
What is FF in decimal?
FF = 15 × 16 + 15 = 255, the largest value one byte can hold.
How do I read a web color like #3769D7?
Split it into three hex pairs for red, green and blue: 37, 69 and D7 are 55, 105 and 215 in decimal.
Calculations run in your browser. Nothing you enter is sent anywhere or added to a searchable page address. How we calculate