Conversion

Decimal to binary converter

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is the decimal number system?

The decimal number system, also known as the base-10 system, is the numerical system most commonly used in everyday life. It is composed of ten digits ranging from 0 to 9, where each digit’s position signifies a power of 10. The decimal system is positional, meaning the place of each digit determines its value. For example:

957 = (9 × 10²) + (5 × 10¹) + (7 × 10⁰) = 900 + 50 + 7 = 957

This positional principle allows any number—no matter how large—to be represented using these ten digits.

Humans naturally gravitated toward the decimal system because we have ten fingers, which made it intuitive for counting and arithmetic thousands of years ago. Ancient civilizations, including the Egyptians and the Hindus, structured their counting systems around this base.

What is the binary number system?

The binary number system, in contrast, is a base-2 numeral system that uses only two digits: 0 and 1. These digits are known as bits—short for “binary digits.” Each position in a binary number represents a power of 2, just as each position in a decimal number represents a power of 10. For example:

1011₂ = (1 × 2³) + (0 × 2²) + (1 × 2¹) + (1 × 2⁰)
= 8 + 0 + 2 + 1 = 11₁₀

The binary system is fundamental in computing and electronics because digital systems use two states—on (1) and off (0)—to store and process data.

Formula

Converting from decimal (base 10) to binary (base 2) can be done using successive division by 2. The steps are as follows:

  1. Divide the decimal number by 2.
  2. Record the remainder (0 or 1).
  3. Divide the quotient by 2 again.
  4. Continue until the quotient becomes 0.
  5. The binary representation is formed by reading the remainders from bottom to top.

Mathematically, the process can be expressed as:

If
N10=an×10n+an1×10n1++a0×100N_{10} = a_n \times 10^n + a_{n-1} \times 10^{n-1} + \dots + a_0 \times 10^0

Then, converting to binary gives:
N10=bk×2k+bk1×2k1++b0×20N_{10} = b_k \times 2^k + b_{k-1} \times 2^{k-1} + \dots + b_0 \times 2^0

where each bi{0,1}b_i \in \{0, 1\}.

Step-by-step examples

Example 1: Convert 89₁₀ to binary

OperationQuotientRemainder
89 ÷ 2441
44 ÷ 2220
22 ÷ 2110
11 ÷ 251
5 ÷ 221
2 ÷ 210
1 ÷ 201

Reading remainders from bottom to top:
89₁₀ = 1011001₂

Verification:
(1×26)+(0×25)+(1×24)+(1×23)+(0×22)+(0×21)+(1×20)=64+0+16+8+0+0+1=89(1×2^6) + (0×2^5) + (1×2^4) + (1×2^3) + (0×2^2) + (0×2^1) + (1×2^0) = 64 + 0 + 16 + 8 + 0 + 0 + 1 = 89

Example 2: Convert decimal number 16 to binary

OperationQuotientRemainder
16 ÷ 280
8 ÷ 240
4 ÷ 220
2 ÷ 210
1 ÷ 201

Reading bottom to top:
16₁₀ = 10000₂

Verification:
(1×24)+(0×23)+(0×22)+(0×21)+(0×20)=16+0+0+0+0=16(1×2^4) + (0×2^3) + (0×2^2) + (0×2^1) + (0×2^0) = 16 + 0 + 0 + 0 + 0 = 16

Historical Background

The binary system has ancient roots. The earliest documentation of a binary-like system is attributed to the Chinese text I Ching (“Book of Changes”), which used divination patterns resembling binary combinations around 1000 BCE.

However, the formal foundation of modern binary arithmetic was established by Gottfried Wilhelm Leibniz in 1703. He recognized that binary could represent all numbers using only the digits 0 and 1, creating a universal system that echoes the simple duality found in nature—light and darkness, yes and no, on and off.

Centuries later, in the mid-20th century, digital computers adopted binary logic as the cornerstone of machine computation. The two states of an electrical circuit—high voltage (1) and low voltage (0)—perfectly suited binary representation, enabling complex data processing, arithmetic operations, and memory storage.

Conversion tips and notes

  1. Always remember to read the remainders from bottom to top after division.
  2. The maximum binary digit value is 1.
  3. For smaller numbers, binary equivalents can often be memorized:
    • 1₁₀ = 1₂
    • 2₁₀ = 10₂
    • 4₁₀ = 100₂
    • 8₁₀ = 1000₂
    • 16₁₀ = 10000₂
  4. Binary numbers increase in powers of 2. Notice how each new bit doubles the possible numeric range.
  5. The reverse process (binary to decimal) involves multiplying each bit by its positional power of 2 and adding them together.

Frequently Asked Questions

How to convert 2020 to binary step by step?

OperationQuotientRemainder
2020 ÷ 210100
1010 ÷ 25050
505 ÷ 22521
252 ÷ 21260
126 ÷ 2630
63 ÷ 2311
31 ÷ 2151
15 ÷ 271
7 ÷ 231
3 ÷ 211
1 ÷ 201

Reading bottom to top: 11111100100₂

How to quickly check the correctness of a binary number?

To verify, expand each binary digit multiplied by its positional power of 2 and sum the results.
For example, check 10011₂:
(1×24)+(0×23)+(0×22)+(1×21)+(1×20)=16+0+0+2+1=19(1×2^4)+(0×2^3)+(0×2^2)+(1×2^1)+(1×2^0)=16+0+0+2+1=19.
Thus, 10011₂ = 19₁₀.

How to perform mental conversions for small numbers?

Practice memorizing binary representations up to 16.
Each added digit doubles the previous value:
1=1₂, 2=10₂, 3=11₂, 4=100₂, 5=101₂, 6=110₂, 7=111₂, 8=1000₂, etc.
This mental pattern helps estimations without full division.

199 from decimal to binary

OperationQuotientRemainder
199 ÷ 2991
99 ÷ 2491
49 ÷ 2241
24 ÷ 2120
12 ÷ 260
6 ÷ 230
3 ÷ 211
1 ÷ 201

Reading bottom to top: 11000111₂

Report a bug

This field is required.