Decimal to Binary Converter

Convert decimal numbers to binary instantly with step-by-step explanations.

Decimal (Base 10)
Binary (Base 2)

Result:

...

How it's done:

Common Decimal to Binary Examples

10₁₀ = 1010₂
10 ÷ 2 = 5 remainder 0
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
25₁₀ = 11001₂
25 ÷ 2 = 12 remainder 1
12 ÷ 2 = 6 remainder 0
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
255₁₀ = 11111111₂
Largest 8-bit binary number
All positions filled with 1s
1000₁₀ = 1111101000₂
1000 ÷ 2 = 500 remainder 0
500 ÷ 2 = 250 remainder 0
250 ÷ 2 = 125 remainder 0
125 ÷ 2 = 62 remainder 1
62 ÷ 2 = 31 remainder 0
31 ÷ 2 = 15 remainder 1
15 ÷ 2 = 7 remainder 1
7 ÷ 2 = 3 remainder 1
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1

Frequently Asked Questions

What is a decimal number?

A decimal number is a number expressed in the base-10 numeral system, which uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each position represents a power of 10, starting from the rightmost position (10⁰).

How do I convert decimal to binary?

To convert decimal to binary, repeatedly divide the decimal number by 2 and record the remainders. Read the remainders from bottom to top to get the binary representation.

Why convert decimal to binary?

Converting decimal to binary is essential in computer science, digital electronics, and programming. Computers process data in binary format, so understanding this conversion is fundamental to computer operations.