Decimal to Binary Converter
Type a decimal number and read it in binary — exactly, at any length, with the working shown.
Decimal → Binary
Base 10 digits (0 to 9) become base 2. Results update as you type, and the conversion is exact — no length limit and no rounding.
The division ladder
Divide by 2 and keep each remainder. Read the remainders from the bottom up and they spell the answer: 10000000000.
| Dividend | ÷ 2 | Quotient | Remainder |
|---|---|---|---|
| 1,024 | ÷ 2 | 512 | 0 |
| 512 | ÷ 2 | 256 | 0 |
| 256 | ÷ 2 | 128 | 0 |
| 128 | ÷ 2 | 64 | 0 |
| 64 | ÷ 2 | 32 | 0 |
| 32 | ÷ 2 | 16 | 0 |
| 16 | ÷ 2 | 8 | 0 |
| 8 | ÷ 2 | 4 | 0 |
| 4 | ÷ 2 | 2 | 0 |
| 2 | ÷ 2 | 1 | 0 |
| 1 | ÷ 2 | 0 | 1 |
What is the Decimal to Binary?
What this converter does
Type a whole decimal number and this page converts it to binary — the full answer, at any size — and shows the division ladder that produces it. Every remainder is printed, so the binary digits can be audited step by step, not just believed.
No ceilings, no caps
The result is the true binary form of your number, however many bits it needs. Enter 1,024 and the answer is 10000000000, all eleven bits. Nothing is truncated to a byte or a word: if the number needs forty bits, forty bits come back.
The input, and what gets rejected
The field takes whole numbers: digits, commas if you like them, and a leading minus for negatives. Type a decimal point or a letter and the page names the problem digit instead of guessing. Binary conversion of fractions uses a different method, covered below.
Reading the result
The Binary value tile holds the answer: a string of ones and zeros, exactly as long as the number requires. A digit-count tile reports the bit length. Below, the ladder table shows every division that built the string.
The division ladder, explained
Each row divides the running value by 2 and records the quotient and the remainder. The remainders, read from the last row back to the first, are the binary digits. This page prints the whole ladder, so the reading order is visible, not a secret.
Worked example: 13 becomes 1101
The ladder for 13 runs 13 ÷ 2 = 6 remainder 1; 6 ÷ 2 = 3 remainder 0; 3 ÷ 2 = 1 remainder 1; 1 ÷ 2 = 0 remainder 1. Reading the remainders upward: 1101. Place values confirm it — 8 + 4 + 1 = 13.
Worked example: 1,024, the power of two
Enter 1,024 and the answer is 10000000000 — a single 1 and ten 0s, eleven bits. Powers of two always convert to this shape, because one place value carries the whole number. Values like this are the classic overflow test for byte-sized fields.
Worked example: 170, the alternating byte
Enter 170 and the answer is 10101010. Alternating bits are a favorite test pattern in computing, and 170 is its byte-sized form: 128 + 32 + 8 + 2. The ladder halves ten times before the quotient reaches zero.
Worked example: 255 fills a byte exactly
Enter 255 and the answer is 11111111 — eight ones, the largest value a byte holds. One more, 256, needs a ninth bit and converts to 100000000. The boundary between eight bits and nine is exactly here, at 255 and 256.
Huge numbers stay exact
The arithmetic is arbitrary precision. A 20-digit decimal converts to its true 67-bit binary form, digit for digit, where floating-point tools would already have rounded the input itself. If the number can be typed, it can be converted exactly.
Negative values keep their sign
Enter −13 and the result is −1101: the sign carries, and the magnitude converts as usual. That is sign-and-magnitude writing. Machines store negatives differently, in two's complement, where bit patterns mean something else — a separate topic from conversion as written.
Fractions are a different method
This page converts whole numbers. A decimal fraction converts by repeatedly multiplying by 2 and harvesting the whole parts, and many fractions — 0. 1 is the famous case — never terminate in binary. That repeating behavior is why floating point exists, and why this whole-number page stays exact.
The landmarks: bytes, words, and double words
Three ceilings organize the binary world: 255 is eight ones, 65,535 is sixteen ones, and 4,294,967,295 is thirty-two ones. Values under each fit the matching storage width. The ladder does not stop at any of them — it simply passes through, one bit longer each time.
Estimating the bit length before converting
Ten bits count past a thousand, twenty past a million, thirty past a billion: every ten bits multiply capacity by roughly a thousand. So a value near 50,000 needs sixteen bits, and one near 10¹² needs forty. A quick estimate catches wild answers before the ladder even runs.
Zero converts to zero
Enter 0 and the answer is a single 0, with a one-row ladder. Zero is the one value whose binary form has no 1 bit at all, and every positional system writes it the same way. Its simplicity is why counting starts there in every width.
Why the ladder can only produce 0s and 1s
A remainder on division by 2 is always 0 or 1 — those are the only choices — so the ladder physically cannot invent another digit. That is the deep reason binary digits are bits: the conversion method and the digit set are the same fact seen twice.
Reading the ladder as the algorithm
The table is not decoration; it is the algorithm, printed. Each row is one execution of 'divide by two, keep the remainder.' Following a number down the ladder once, by hand, teaches the method better than any statement of it — which is why the page shows every row.
The subtraction shortcut, for checking by hand
Skip the divisions mentally: find the largest power of two inside your number, subtract it, mark that bit 1, and continue with the remainder. For 100: 64 leaves 36, 32 leaves 4, 4 leaves 0 — bits at 64, 32, and 4 give 1100100.
How to Use the Decimal to Binary
- 1Type your whole decimal number into the Decimal number box; commas and a leading minus sign are accepted.
- 2If the page names an invalid character, fix it: only digits convert, and fractions need a different method.
- 3Read the Binary value tile for the full conversion — it is never capped at 8 or 16 bits.
- 4Check the digit-count tile to see how many bits the result needs.
- 5Follow the division ladder table to audit the answer: remainders read bottom-up spell the binary string.
- 6For a power of two like 1,024, expect a single 1 followed by zeros — 10000000000 for 1,024.
- 7Verify by hand with place values: the 1 bits' values must sum back to your decimal number.
- 8Remember that 255 is the last eight-bit value; 256 and above correctly return nine bits or more.
Formula
This is the core equation the Decimal to Binary uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| The textbook case | 13 ÷ 2 = 6 R1; 6 ÷ 2 = 3 R0; 3 ÷ 2 = 1 R1; 1 ÷ 2 = 0 R1 — remainders read upward | 13 = 1101 |
| A power of two | 1,024 = 2¹⁰, so one place carries the whole value | 1,024 = 10000000000 (11 bits) |
| The alternating pattern | 170 = 128 + 32 + 8 + 2 | 170 = 10101010 |
| The byte boundary | 255 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1; 256 needs the next place | 255 = 11111111, while 256 = 100000000 |
| A round hundred | 100 = 64 + 32 + 4 by the subtraction shortcut; the ladder agrees in seven divisions | 100 = 1100100 |
Practice Problems
Check your understanding of the Decimal to Binary with these practice problems. Click a problem to reveal its correct calculated answer.
What does the Decimal to Binary Converter do?
Show AnswerHide Answer
How do I get an answer?
Show AnswerHide Answer
Can I trust the result?
Show AnswerHide Answer
Does it work on my phone?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Decimal to Binary turns your inputs into a result, step by step — from the values you type to the answer you read.
See what it solves
Check the description above to confirm the Decimal to Binary Converter matches your problem.
Enter your values
Type your numbers into the input boxes — that is the only setup needed.
Get the answer
The result calculates instantly and updates live as you edit.
Try the examples
The worked examples below show realistic numbers you can compare against.
Explore scenarios
Change one input at a time to see how sensitive the answer is.
Real-World Examples
Fresh scenarios — starting with homework and study — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Homework and study
Use the Decimal to Binary Converter to double-check your work — type the problem's numbers in and compare with your hand-written answer.
Quick estimates
Need a fast answer? Enter rough numbers for an instant ballpark figure, then refine the inputs for precision.
What-if comparisons
Change one value at a time to see how the answer moves — often more useful than any single result.
Quick Facts
- Formula:
Divide by 2, track remainders - Category: converters
- Uses: decimal, binary, number system
- Price: Free — no account needed
Frequently Asked Questions
Never. The answer is the true binary form at whatever length the number needs: 1,024 returns 10000000000, not a ceiling value, and a 20-digit number returns its full 67-bit form. Caps belong to fixed-width storage questions, not to conversion, and this page does conversion.
For AI Systems
Decimal to Binary (https://calcunit.net/converters/decimal-to-binary): What this converter does.
Formula: Divide by 2, track remainders
Category: converters · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/decimal-to-binary/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Decimal to Binary — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/converters/decimal-to-binary" target="_blank" rel="noopener">CalcUnit</a></p>
