CalcuClubCalcuClub Logo

Decimal to Binary Converter

Convert from:
Convert to:
The result will be displayed here.
Calculation Steps:
Calculation steps will be displayed here.

Table of Contents

How does decimal to binary conversion work?

Decimal to binary conversion is a mathematical process that allows a decimal number (base 10) to be represented in the binary system (base 2). The decimal system, which we use daily, consists of ten digits (0 to 9), while the binary system uses only two digits: 0 and 1. This conversion is essential in computing since computers process information in binary format.

Decimal to binary conversion formula

To convert a decimal number to binary, we use a method of successive divisions by 2. The formula, in this case, is based on recording the remainders of each division until reaching 0. The remainders, written in reverse order, form the equivalent binary number.

  1. Divide the decimal number by 2.
  2. Record the remainder of the division (it will be 0 or 1).
  3. Divide the quotient obtained by 2 again and repeat the process.
  4. Continue until the quotient is 0.
  5. Read the remainders from bottom to top to get the binary number.

Example #1

Conversion of 45 to binary:

  1. 45 ÷ 2 = 22, remainder = 1
  2. 22 ÷ 2 = 11, remainder = 0
  3. 11 ÷ 2 = 5, remainder = 1
  4. 5 ÷ 2 = 2, remainder = 1
  5. 2 ÷ 2 = 1, remainder = 0
  6. 1 ÷ 2 = 0, remainder = 1

Reading the remainders in reverse order, the binary number of 45 is 101101.

Example #2

Conversion of the number 29 to binary:

  1. 29 ÷ 2 = 14, remainder = 1
  2. 14 ÷ 2 = 7, remainder = 0
  3. 7 ÷ 2 = 3, remainder = 1
  4. 3 ÷ 2 = 1, remainder = 1
  5. 1 ÷ 2 = 0, remainder = 1

Reading the remainders in reverse order, we get the binary number: 11101. Therefore, 29 in binary is 11101.

Decimal to binary conversion table

DecimalBinary
00
11
210
311
4100
5101
6110
7111
81000
91001
101010
151111
1610000
2010100
2511001
3011110
32100000
50110010
641000000
1001100100
12810000000
25511111111
256100000000

How was this page? Share feedback.