Decimal to Binary

Convert decimal to binary number

0/500 characters. One number or space-separated decimals (e.g. 10 15 → 1010 1111).

Decimal to Binary: Convert Base 10 into Base 2

Decimal and binary are positional number systems that describe the same values with different digits. Decimal, or base 10, uses the digits 0 through 9. Binary, or base 2, uses only 0 and 1. The SnapZain decimal to binary converter turns a non-negative decimal whole number into its binary representation. Enter one number or a list of space-separated values in the calculator above.

For example, decimal 13 is binary 1101. The positions in that binary value represent 8, 4, 2, and 1; adding the positions with a 1 gives 8 + 4 + 1 = 13. The converter also supports multiple values, copy and clear controls, and a 500-character input limit. Each individual number must remain within JavaScript’s exact integer range.

A step-by-step decimal-to-binary diagram showing 45 divided repeatedly by 2 and the remainders reversed to form 101101.
Divide 45 by 2 until the quotient reaches zero, then read the remainders upward: 101101₂.

What Decimal-to-Binary Conversion Means

In a positional system, a digit’s meaning depends on its position. Decimal place values are powers of 10: ones, tens, hundreds, and so on. Binary place values are powers of 2: 1, 2, 4, 8, 16, 32, and onward. Converting decimal to binary finds a sequence of binary digits whose weighted place values add up to the original decimal number.

This is a notation change, not encryption and not a change in the quantity itself. Decimal 13 and binary 1101 name the same integer. The small base labels in 13₁₀ and 1101₂ make the representation explicit; without labels, context must tell you which base is intended.

The Repeated-Division-by-2 Method

For a positive whole number, repeatedly divide by 2 and keep each remainder. Every remainder is either 0 or 1, exactly the digits used in binary. The first remainder is the rightmost (least significant) bit, so the list must be read in reverse when the divisions finish.

  1. Start with the decimal value. Divide it by 2.
  2. Record the remainder. An even quotient leaves remainder 0; an odd quotient leaves remainder 1.
  3. Continue with the quotient. Divide the whole-number quotient by 2 and record its remainder.
  4. Stop at zero. The final division is the one whose quotient becomes 0.
  5. Read the remainders upward. This reversed sequence is the binary answer.

For 45, the divisions are 45 ÷ 2 = 22 remainder 1; 22 ÷ 2 = 11 remainder 0; 11 ÷ 2 = 5 remainder 1; 5 ÷ 2 = 2 remainder 1; 2 ÷ 2 = 1 remainder 0; and 1 ÷ 2 = 0 remainder 1. The remainders in the order found are 101101, and reversing that order gives 101101₂. The illustration lays out each step.

“The remainder order is the key: record from rightmost bit to leftmost bit, then reverse the list to write the binary number.”

A Second Method: Build the Number from Powers of Two

You can also find the binary digits by expressing the decimal value as a sum of powers of 2. For 45, the largest power of 2 that fits is 32. Subtracting 32 leaves 13; subtracting 8 leaves 5; subtracting 4 leaves 1; and subtracting 1 leaves 0. The used powers are 32, 8, 4, and 1.

Write one bit for every power position from 32 down through 1. The positions 32, 8, 4, and 1 are included, while 16 and 2 are skipped. This produces 101101. The method is useful for checking a result and for understanding why each binary digit has its particular value. Repeated division is generally easier when converting a number without first identifying its powers.

Binary place values used when converting decimal numbers
Binary position from rightPower of 2Decimal value
02⁰1
12¹2
22²4
32³8
42⁴16
52⁵32
62⁶64

Worked Decimal-to-Binary Examples

Convert 13 from decimal to binary

Divide 13 by 2 to get 6 remainder 1; then 6 gives 3 remainder 0; 3 gives 1 remainder 1; and 1 gives 0 remainder 1. Read the remainders from bottom to top: 13₁₀ = 1101₂. Check by place value: 8 + 4 + 0 + 1 = 13.

Convert 10 from decimal to binary

The repeated divisions produce remainders 0, 1, 0, and 1 when recorded from first to last. Reverse them to get 10₁₀ = 1010₂. The binary one-bits correspond to 8 and 2, whose sum is 10.

Convert 25 from decimal to binary

Repeated division produces remainders 1, 0, 0, 1, and 1. Reading upward gives 25₁₀ = 11001₂, which checks as 16 + 8 + 1.

Convert 100 from decimal to binary

Decimal 100 is 1100100₂. Its one-bits represent 64, 32, and 4, and 64 + 32 + 4 = 100. Internal zeros are important because they preserve the positions of the other bits.

Quick reference examples for decimal-to-binary number conversion
Decimal (base 10)Binary (base 2)Check using powers of 2
000
111
2102
51014 + 1
1010108 + 2
1311018 + 4 + 1
251100116 + 8 + 1
4510110132 + 8 + 4 + 1
100110010064 + 32 + 4

Using the Online Decimal to Binary Converter

This online decimal to binary conversion tool automates the same base conversion. To convert decimal to binary, type a non-negative whole number and select Convert. For a batch, enter values with spaces between them, such as 10 13 45. The result contains one binary value for each input number, in order. Whether converting decimal to binary by hand or using a converter from decimal to binary, reverse the recorded remainders to write the result.

  • Use decimal digits 0 through 9 for each value.
  • Use spaces—not commas—to separate multiple values.
  • Enter whole numbers only. Fractions, negative values, and mixed text are rejected.
  • Keep the full input within 500 characters.
  • Keep every individual value at or below 9007199254740991.
  • Select Copy to clipboard to copy the output, or Clear to reset both fields.
  • Press Ctrl + Enter while in the input field to convert without selecting the button.

The numeric limit protects accuracy. JavaScript can represent all integers exactly up to 2⁵³ − 1, but not every larger integer. Rejecting values outside that range helps prevent a rounded decimal value from being presented as an exact conversion. For calculations beyond the limit, use a converter based on arbitrary-precision integer arithmetic.

Common Conversion Mistakes

  • Reading remainders in the wrong direction: The first remainder is the rightmost bit. Reverse the sequence to write the final result.
  • Stopping before the quotient is zero: Continue dividing the quotient until the last step yields zero.
  • Dropping an internal zero: Zeros hold place positions. Removing one changes the represented value.
  • Confusing the input and output bases: This page accepts decimal and returns binary. For binary input and a decimal result, use the reverse converter.
  • Entering punctuation or fractions: The tool expects unsigned whole numbers, not values such as 1,000, -8, or 2.5.
  • Exceeding exact integer precision: A long decimal string can look valid but still exceed the calculator’s documented maximum.

Leading zeros are different: they do not change a decimal number’s value. For example, 00013 converts to the same binary result as 13, which is 1101.

Decimal-to-Binary Conversion and Other Bases

Binary is convenient for describing values in digital systems because each bit has two possible states. Hexadecimal offers a shorter way to write groups of binary digits: each hexadecimal digit corresponds to four bits. Decimal remains familiar for everyday quantities and many user-facing measurements. Converting between bases lets you inspect the same integer in the notation best suited to a task.

Use a converter that matches both the source and destination bases. Decimal to HEX changes a base-10 value to base 16. HEX to Binary converts hexadecimal digits to binary, while Binary to HEX performs the reverse. HEX to Text interprets hexadecimal character values as text, which is a different task from converting a number between bases.

“Before converting, identify what the input represents and what format you need at the end; the direction determines the right tool.”

Conclusion: Convert Decimal Values by Dividing by Two

To convert a non-negative decimal whole number into binary, divide by 2, record the remainders, and read them in reverse when the quotient reaches zero. Check the answer by adding the powers of 2 represented by its 1 bits. SnapZain’s converter applies this process to single values or space-separated batches, with a 500-character input limit and a maximum exact integer value of 9007199254740991. Use the matching converter when your starting or target base is different.

How to convert decimal to binary?

To convert decimal to binary, repeatedly divide the non-negative whole number by 2 and record each remainder. When the quotient reaches zero, read the remainders from last to first. For example, 13 produces 1101₂.

What does a decimal to binary converter do?

A decimal to binary converter expresses a base-10 whole number with base-2 digits, 0 and 1. It changes the written representation, not the value.

How do I use this decimal to binary tool?

Enter one non-negative whole number, or several numbers separated by spaces, then select Convert. This decimal to binary tool returns each result in the same order. The input field allows up to 500 characters, and each value must not exceed 9007199254740991.

What is 10 in decimal to binary?

Decimal 10 is binary 1010. Its powers-of-two expansion is 8 + 2.

What is 45 in decimal to binary?

Decimal 45 is binary 101101. Repeated division by 2 gives remainders 1, 0, 1, 1, 0, 1; reading them from bottom to top gives 101101.

Can I convert multiple decimal numbers at once?

Yes. Separate non-negative whole numbers with spaces, for example 10 15 45. The converter returns the corresponding binary values in that same order.

Which characters can I enter?

Enter decimal digits 0 through 9 and use spaces between separate values. Signs, commas, decimal points, letters, and other characters are not valid input.

Can I convert fractions or negative numbers?

No. This calculator converts non-negative whole numbers only. Binary fractions and negative-number representations require separate rules and are not processed here.

What is the largest number this converter accepts?

Each value must be at most 9007199254740991 (2⁵³ − 1), JavaScript’s largest exactly represented integer. The entire input can contain up to 500 characters.

Why does the largest input have a limit?

The calculator uses JavaScript number arithmetic, which represents every integer exactly only through 2⁵³ − 1. A larger value could be rounded, so the tool rejects it rather than return a misleading binary result.

Does a leading zero affect the conversion?

No. Decimal 00013 and decimal 13 have the same value, so both convert to binary 1101.

How do I convert decimal to binary by hand?

Divide by 2, write down the remainder, and divide the quotient again. Repeat until the quotient is zero, then reverse the remainder order. A remainder is always 0 or 1.

Is there another way to convert a decimal number to binary?

Yes. For a positive integer, find the largest power of 2 that fits, subtract it, and continue with smaller powers. Mark each used power with 1 and each skipped power with 0. Repeated division is often simpler to perform systematically.

How to convert decimal in binary using place values?

To convert decimal in binary with place values, express the number as a sum of powers of 2. Write 1 for each power used and 0 for each omitted position. For 13, 8 + 4 + 1 gives 1101₂.

How can I check a decimal-to-binary result?

Convert the binary digits back to decimal by multiplying each bit by its power-of-two place value and adding the results. For 1101₂, calculate 8 + 4 + 0 + 1 = 13.

What is the difference between decimal and binary?

Decimal is base 10 and uses digits 0 through 9. Binary is base 2 and uses only 0 and 1. Both are positional systems, but their place values are powers of different bases.

How to convert binary to decimal and decimal to binary?

The directions use different steps. Decimal to Binary repeatedly divides a base-10 integer by 2 and reverses the remainders. Binary to Decimal adds the powers of 2 represented by the 1 bits. The linked Binary to Decimal converter handles the reverse direction.

How do I convert binary to decimal and decimal to binary?

For decimal to binary, divide by 2 and read the remainders in reverse. For binary to decimal, multiply each bit by its power-of-two place and add the values. Use the converter that matches the direction of your input.

Can I convert decimal to binary in Excel?

Excel includes DEC2BIN for decimal-to-binary conversion, with its own supported input range and output-width options. For larger values or a different interface, use a converter that documents its numeric limits.

Does converting decimal to binary encrypt the number?

No. Number-base conversion is not encryption. It represents the same integer using a different set of positional digits.

Can I copy or clear the result?

Yes. Select Copy to clipboard after a conversion. Clear removes the current input and output, and Ctrl+Enter in the input field runs the conversion.

Which related converters can I use next?

Use Decimal to HEX to express a decimal value in base 16, HEX to Binary to convert hexadecimal digits to binary, Binary to HEX for the reverse base change, or HEX to Text when you need to interpret hexadecimal character values.

Do different search phrases refer to the same decimal-to-binary conversion?

Usually. “Decimal converter to binary” and “converter from decimal to binary” describe the tool or direction. Queries such as “how to convert decimal to binary,” “how do you convert decimal to binary,” “how to decimal to binary,” “how convert decimal to binary,” “how to convert decimal in binary,” and “how to decimal to binary conversion” ask for instructions. Phrases including “convert decimal to binary converter,” “convert from decimal to binary,” “converting from decimal to binary,” “converting decimal to binary,” “conversion decimal to binary,” “convert a decimal to binary,” and “decimal to binary number conversion” refer to the same base-10-to-base-2 task.

Latest Posts

Browse practical guides and updates to help with PDF conversion, document editing, and everyday file workflows.

SEO Audit Explained: A Complete Website Health Check and Improvement Guide

SEO Audit Explained: A Complete Website Health Check and Improvement Guide

By M Seemab •

A website can have useful content, attractive design, and a growing collection of pages, yet still struggle to appear in search results. Sometimes the...

Read More →
How to Increase Website Traffic in 2026: SEO, GEO, AEO and Paid Growth Strategies

How to Increase Website Traffic in 2026: SEO, GEO, AEO and Paid Growth Strategies

By M Seemab •

Getting visitors to a website is important, but attracting the right visitors is what creates long-term value. A website may receive thousands of visi...

Read More →
Meta Tags: Complete Guide to SEO Meta Tags, Examples, Optimization, and Best Practices

Meta Tags: Complete Guide to SEO Meta Tags, Examples, Optimization, and Best Practices

By M Seemab •

Meta tags are an important part of technical SEO because they provide search engines and other platforms with information about individual web pages....

Read More →