Hex to Decimal Converter
Type a hexadecimal number to get its decimal value, with every digit’s place value written out.
111 1110 001137432,0197E3Working
7× 162 = 7 × 256 = 1,792E× 161 = 14 × 16 = 2243× 160 = 3 × 1 = 3- Total = 2,019
The method
Multiply each hex digit by 16 raised to its position (counting from 0 on the right), then add the results. A–F stand for 10–15.
Place value: the idea behind every base
In any base, a digit’s worth depends on its column. Each column is worth the base times the column to its right. Tap a digit to change it and watch the total.
1×1,048,576 + 1×4,096 + 1×256 + 1×1 = 1,052,929 in decimal
Decimal is the same system with ten digits: 347 is 3×100 + 4×10 + 7×1. Nothing about base 10 is special apart from our ten fingers.
Hex to decimal table
| Hex | Decimal |
|---|---|
| 1 | 1 |
| 9 | 9 |
| A | 10 |
| F | 15 |
| 10 | 16 |
| 1F | 31 |
| 20 | 32 |
| 40 | 64 |
| 64 | 100 |
| 7F | 127 |
| 80 | 128 |
| FF | 255 |
| 100 | 256 |
| 3E8 | 1000 |
| FFF | 4095 |
| FFFF | 65535 |
Questions people ask
How do I convert hex to decimal by hand?
Write the powers of 16 under the digits from the right: 1, 16, 256, 4096 and so on. Replace A–F with 10–15, multiply each digit by its power, and add. 2F = 2×16 + 15×1 = 47.
What is FF in decimal?
FF is 255: 15×16 + 15 = 255. It is the largest value that fits in one byte, which is why colour channels in #RRGGBB run from 00 to FF.
What does the 0x prefix mean?
0x marks a number as hexadecimal in C, JavaScript, Python and most other languages, so 0x10 is 16, not ten. The converter ignores it.