Decimal to Binary Converter Convert your data

Input Data String

 

Output Data String

 

 

How to convert decimal to binary

Conversion steps:

  1. Divide the number by 2.
  2. Get the integer quotient for the next iteration.
  3. Get the remainder for the binary digit.
  4. Repeat the steps until the quotient is equal to 0.

Decimal to binary conversion table

Decimal (Base 10) Binary (Base 2)
0 0
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
10 1010
11 1011
12 1100
13 1101
14 1110
15 1111

 

Example

Convert 12345678910 to binary:

Division by 2 Quotient (integer) Remainder (decimal) Digit number
123456789/2 7716049 1 0
61728394/2 30864197‬ 0 1
30864197‬/2 15432098 1 2
15432098/2 7716049 1 3
7716049/2 3858024 1 4
3858024/2 1929012 0 5
1929012/2 964506 0 6
964506/2 482253 0 7
482253/2 241126 1 8
241126/2 120563 0 9
120563/2 60281 1 10
60281/2 30140 1 11
30140/2 15070 0 12
15070/2 7535 0 13
7535/2 3767 1 14
3767/2 1883 1 15
1883/2 941 1 16
941/2 470 1 17
470/2 235 0 18
235/2 117 1 19
117/2 58 1 20
58/2 29 0 21
29/2 14 1 22
14/2 7 0 23
7/2 3 1 24
3/2 1 1 25
1/2 0 1 26
  111010110111100110100010101

 

12345678910 = 1110101101111001101000101012

 

Source