To convert a decimal number to binary, divide by , 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 instead of powers of .
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 is included: means yes, and means no.
For example, the binary number means
which equals
So decimal-to-binary conversion is really about rewriting a number as a sum of powers of .
Why Decimal To Binary Works
In decimal, the places are , , , , and so on. In binary, the places are
Because binary has only two digits, each place can hold only or . A means that power of is included. A 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 From Decimal To Binary
For a non-negative integer, a standard method is repeated division by .
Start with :
Now read the remainders from bottom to top:
So
You can check it with place values:
The quick check is to list the powers of marked by : , , , and . Their sum is , 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 from powers of . The largest power of that fits is , leaving . Then fits, leaving . Then fits, leaving . Finally, fits.
That gives
So the digits for , , , and are , while the others are . That gives 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- 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 to binary with the same division-by- process. Then check your answer by expanding it into powers of . 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 →