Binary-Hexadecimal
The values in the left two columns are bitwise complements of the
values in the right two columns.
This is useful for converting signed numbers.
Bin |
Hex |
Hex |
Bin |
0000 |
0 |
F |
1111 |
0001 |
1 |
E |
1110 |
0010 |
2 |
D |
1101 |
0011 |
3 |
C |
1100 |
0100 |
4 |
B |
1011 |
0101 |
5 |
A |
1010 |
0110 |
6 |
9 |
1001 |
0111 |
7 |
8 |
1000 |
|
Decimal-Hexadecimal
The values in the left two columns are hexadecimal complements of the
values in the right two columns.
This is useful for converting signed numbers.
Dec |
Hex |
Hex |
Dec |
0 |
0 |
F |
15 |
1 |
1 |
E |
14 |
2 |
2 |
D |
13 |
3 |
3 |
C |
12 |
4 |
4 |
B |
11 |
5 |
5 |
A |
10 |
6 |
6 |
9 |
9 |
7 |
7 |
8 |
8 |
|
Multiples of 16
The conversion algorithms between hexadecimal and decimal require
multiplying 16 times a decimal digit.
This table shows these products.
d |
d×16 |
0 |
0 |
1 |
16 |
2 |
32 |
3 |
48 |
4 |
64 |
5 |
80 |
6 |
96 |
7 |
112 |
8 |
128 |
9 |
144 |
|
Octal-Binary
Here are conversions between octal digits and binary.
Oct |
Bin |
0 |
000 |
1 |
001 |
2 |
010 |
3 |
011 |
4 |
100 |
5 |
101 |
6 |
110 |
7 |
111 |
|