To convert a decimal number to binary, divide by 22, record each remainder, and read the remainders from bottom to top. For non-negative whole numbers, that is the standard hand method, and it works because binary uses powers of 22 instead of powers of 1010.

If you searched for a decimal to binary converter, that is the core idea you need. Each binary digit tells you whether a specific power of 22 is included: 11 means yes, and 00 means no.

For example, the binary number 1011012101101_2 means

125+024+123+122+021+1201 \cdot 2^5 + 0 \cdot 2^4 + 1 \cdot 2^3 + 1 \cdot 2^2 + 0 \cdot 2^1 + 1 \cdot 2^0

which equals

32+0+8+4+0+1=4532 + 0 + 8 + 4 + 0 + 1 = 45

So decimal-to-binary conversion is really about rewriting a number as a sum of powers of 22.

Why Decimal To Binary Works

In decimal, the places are 11, 1010, 100100, 10001000, and so on. In binary, the places are

1, 2, 4, 8, 16, 32, 64,1,\ 2,\ 4,\ 8,\ 16,\ 32,\ 64,\dots

Because binary has only two digits, each place can hold only 00 or 11. A 11 means that power of 22 is included. A 00 means it is not.

That is also why binary is a natural fit for digital systems: each position has only two states.

How To Convert 4545 From Decimal To Binary

For a non-negative integer, a standard method is repeated division by 22.

Start with 4545:

45÷2=22 remainder 145 \div 2 = 22 \text{ remainder } 1 22÷2=11 remainder 022 \div 2 = 11 \text{ remainder } 0 11÷2=5 remainder 111 \div 2 = 5 \text{ remainder } 1 5÷2=2 remainder 15 \div 2 = 2 \text{ remainder } 1 2÷2=1 remainder 02 \div 2 = 1 \text{ remainder } 0 1÷2=0 remainder 11 \div 2 = 0 \text{ remainder } 1

Now read the remainders from bottom to top:

101101101101

So

4510=101101245_{10} = 101101_2

You can check it with place values:

1011012=132+016+18+14+02+11=45101101_2 = 1 \cdot 32 + 0 \cdot 16 + 1 \cdot 8 + 1 \cdot 4 + 0 \cdot 2 + 1 \cdot 1 = 45

The quick check is to list the powers of 22 marked by 11: 3232, 88, 44, and 11. Their sum is 4545, so the conversion is consistent.

Why The Remainders Are Read Backward

Each division step gives the next least significant bit, which is the rightmost binary digit. That is why the first remainder belongs at the end, not at the start.

You can see the same answer by building 4545 from powers of 22. The largest power of 22 that fits is 3232, leaving 1313. Then 88 fits, leaving 55. Then 44 fits, leaving 11. Finally, 11 fits.

That gives

45=32+8+4+145 = 32 + 8 + 4 + 1

So the digits for 252^5, 232^3, 222^2, and 202^0 are 11, while the others are 00. That gives 101101101101 again.

Common Mistakes

Reading The Remainders From Top To Bottom

With repeated division, you read the remainders from bottom to top. Reading them top to bottom gives the wrong binary number.

Using The Whole-Number Method On A Fraction

The division-by-22 method above is for non-negative whole numbers. If the original decimal has a fractional part, you need a separate conversion process for that fractional part.

Assuming Decimal Fractions Always End In Binary

They do not. For example, some finite decimal fractions have repeating binary expansions. So a decimal-to-binary converter may show a rounded result if the input is not a whole number.

When You Use Decimal To Binary Conversion

This conversion shows up in computing, digital electronics, storage sizes, and bit-based logic. Even if you never convert numbers by hand at work, knowing what the digits mean makes binary values less opaque.

It is also useful when reading masks, flags, or low-level examples where each bit represents an on/off choice.

Quick Practice

Try converting 2626 to binary with the same division-by-22 process. Then check your answer by expanding it into powers of 22. If you want one more step, compare that whole-number case with a decimal fraction and notice why the fraction needs extra care.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →