How to Convert from Decimal to Binary

We use the decimal numeral system in our daily life, which is based on 10 numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. The binary numeral system, however, is based on 2 numbers: 0 and 1.

To convert a decimal number to binary numeral number, the common way is to keep dividing the number by 2 and write down the remainders from the bottom.

Please check here if you want to convert from a Binary number to a Decimal number.

The following is the example to convert 173 into a binary number:

Step 1: Keep diving 173 by 2, and write down the remainder for each step;

NumberDivided by 2RemainderCheck
17386186*2+1 =173
8643043*2+0 = 86
4321121*2+1 = 43
2110110*2+1 = 21
10505*2+0 = 10
5212*2+1 = 5
2101*2+0 = 2
1010*2+1 = 1

Step 2: Combine the remainders from the bottom to top. In this example, 73 will be 10101101 when converting into binary.

The following is the Decimal to Binary Conversion Table from 1 to 255

DBinaryDBinaryDBinaryDBinary
10000000165010000011291000000119311000001
20000001066010000101301000001019411000010
30000001167010000111311000001119511000011
40000010068010001001321000010019611000100
50000010169010001011331000010119711000101
60000011070010001101341000011019811000110
70000011171010001111351000011119911000111
80000100072010010001361000100020011001000
90000100173010010011371000100120111001001
100000101074010010101381000101020211001010
110000101175010010111391000101120311001011
120000110076010011001401000110020411001100
130000110177010011011411000110120511001101
140000111078010011101421000111020611001110
150000111179010011111431000111120711001111
160001000080010100001441001000020811010000
170001000181010100011451001000120911010001
180001001082010100101461001001021011010010
190001001183010100111471001001121111010011
200001010084010101001481001010021211010100
210001010185010101011491001010121311010101
220001011086010101101501001011021411010110
230001011187010101111511001011121511010111
240001100088010110001521001100021611011000
250001100189010110011531001100121711011001
260001101090010110101541001101021811011010
270001101191010110111551001101121911011011
280001110092010111001561001110022011011100
290001110193010111011571001110122111011101
300001111094010111101581001111022211011110
310001111195010111111591001111122311011111
320010000096011000001601010000022411100000
330010000197011000011611010000122511100001
340010001098011000101621010001022611100010
350010001199011000111631010001122711100011
3600100100100011001001641010010022811100100
3700100101101011001011651010010122911100101
3800100110102011001101661010011023011100110
3900100111103011001111671010011123111100111
4000101000104011010001681010100023211101000
4100101001105011010011691010100123311101001
4200101010106011010101701010101023411101010
4300101011107011010111711010101123511101011
4400101100108011011001721010110023611101100
4500101101109011011011731010110123711101101
4600101110110011011101741010111023811101110
4700101111111011011111751010111123911101111
4800110000112011100001761011000024011110000
4900110001113011100011771011000124111110001
5000110010114011100101781011001024211110010
5100110011115011100111791011001124311110011
5200110100116011101001801011010024411110100
5300110101117011101011811011010124511110101
5400110110118011101101821011011024611110110
5500110111119011101111831011011124711110111
5600111000120011110001841011100024811111000
5700111001121011110011851011100124911111001
5800111010122011110101861011101025011111010
5900111011123011110111871011101125111111011
6000111100124011111001881011110025211111100
6100111101125011111011891011110125311111101
6200111110126011111101901011111025411111110
6300111111127011111111911011111125511111111
64010000001281000000019211000000  

Leave a Reply