EngineerPlay

Binary, hex and decimal table

To convert binary to decimal, add the place values of the 1 bits: 1101 is 8 + 4 + 1 = 13. Each hex digit stands for 4 bits, so 1101 is D and 0001 1010 is 1A. The table below lists 0 to 31 in all three bases.

Decimal, binary and hex from 0 to 31

DecimalBinaryHex
00000 000000
10000 000101
20000 001002
30000 001103
40000 010004
50000 010105
60000 011006
70000 011107
80000 100008
90000 100109
100000 10100A
110000 10110B
120000 11000C
130000 11010D
140000 11100E
150000 11110F
160001 000010
170001 000111
180001 001012
190001 001113
200001 010014
210001 010115
220001 011016
230001 011117
240001 100018
250001 100119
260001 10101A
270001 10111B
280001 11001C
290001 11011D
300001 11101E
310001 11111F

Powers of 2

Power of 2DecimalBinaryHex
2⁰111
2¹2102
2²41004
2³810008
2⁴161000010
2⁵3210000020
2⁶64100000040
2⁷1281000000080
2⁸256100000000100
2⁹5121000000000200
2¹⁰1,02410000000000400

8-bit two's complement

BinaryUnsignedSigned (two's complement)
0000 000000
0000 000111
0111 1111127127
1000 0000128−128
1000 0001129−127
1100 1000200−56
1111 1110254−2
1111 1111255−1