Hex to decimal
This converter can convert hexadecimal encodings to decimal very quickly, just type your hexadecimal encoding. e.g. you enter 'f' you will get '15'. At the same time, you can also choose any conversion between binary to base 36. Decimal to hex
Base(default hexadecimal) | |
Hexadecimal encoding | |
Target base(default decimal) | |
Conversion result |
Knowledge of converter
In mathematics and computing, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A–F (or alternatively a–f) to represent values ten to fifteen.
How to convert hex to decimal
- We all know the conversion between decimal numbers:
25710 = 2×102+5×101+7×100 = 200+50+7 - Hexadecimal encoding conversion is also the same formula, except that the power 10 is replaced with 16:
decimal = dn-1×16n-1 + ... + d3×163 + d2×162 + d1×161+d0×160
Example
Example 1
Convert hex encoding 3E8 to decimal
3E816 = 3x162 + 14x161 + 8x160 = 76810 + 22410+810=1000
Example 2
Convert hex encoding 0.6 to decimal
0.616 = 0x160 + 6x16-1=0 + 0.375 = 0.375
Hexadecimal to decimal conversion table
Hexadecimal(base 16) | Decimal |
---|---|
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 |
11 | 17 |
12 | 18 |
13 | 19 |
14 | 20 |
15 | 21 |
16 | 22 |
17 | 23 |
18 | 24 |
19 | 25 |
1A | 26 |
1B | 27 |
1C | 28 |
1D | 29 |
1E | 30 |
1F | 31 |
20 | 32 |
30 | 48 |
40 | 64 |
50 | 80 |
60 | 96 |
70 | 112 |
80 | 128 |
90 | 144 |
A0 | 160 |
B0 | 176 |
C0 | 192 |
D0 | 208 |
E0 | 224 |
F0 | 240 |
100 | 256 |
1000 | 4096 |