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, B, C, D, E, F (or alternatively a, b, c, d, e, f) to represent values ten to fifteen.
hexadecimal (base 16) | base 10 | hexadecimal (base 16) | base 10 |
---|---|---|---|
1 | = 1 | b | = 11 |
2 | = 2 | c | = 12 |
3 | = 3 | d | = 13 |
4 | = 4 | e | = 14 |
5 | = 5 | f | = 15 |
6 | = 6 | 10 | = 16 |
7 | = 7 | 11 | = 17 |
8 | = 8 | 12 | = 18 |
9 | = 9 | 13 | = 19 |
a | = 10 | 14 | = 20 |
base 10 | hexadecimal (base 16) | base 10 | hexadecimal (base 16) |
---|---|---|---|
1 | = 1 | 11 | = b |
2 | = 2 | 12 | = c |
3 | = 3 | 13 | = d |
4 | = 4 | 14 | = e |
5 | = 5 | 15 | = f |
6 | = 6 | 16 | = 10 |
7 | = 7 | 17 | = 11 |
8 | = 8 | 18 | = 12 |
9 | = 9 | 19 | = 13 |
10 | = a | 20 | = 14 |
hexadecimal (base 16) | base 10 |
---|---|
1 | = 1 |
2 | = 2 |
3 | = 3 |
4 | = 4 |
5 | = 5 |
6 | = 6 |
7 | = 7 |
8 | = 8 |
9 | = 9 |
a | = 10 |