Decimal to Binary Converter

Instantly convert any decimal (base 10) number to binary (base 2) with full step-by-step division breakdown and bit-length counter.

Popular Numbers:

Quick Reference — Common Decimal to Binary Values

DecimalBinaryDecimalBinary
001610000
1132100000
210641000000
410012810000000
8100025511111111
101010256100000000
151111102410000000000

What is a Decimal Number?

The decimal number system (base 10) is the standard counting system we use every day. It uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each digit position represents a power of 10. For example, the number 255 means (2 × 100) + (5 × 10) + (5 × 1).

What is Binary?

The binary number system (base 2) uses only two digits: 0 and 1. It is the native language of computers and digital electronics. Every calculation your computer performs is ultimately done in binary. Each binary digit is called a bit, and 8 bits form a byte.

How to Convert Decimal to Binary — Step by Step

The standard method is to divide by 2 repeatedly and read the remainders bottom-up:

  1. Divide the decimal number by 2
  2. Write down the remainder (0 or 1)
  3. Divide the quotient by 2 again
  4. Repeat until the quotient is 0
  5. Read the remainders from bottom to top — that is your binary number

Example: Convert 13 to binary:

13 ÷ 2 = 6  remainder 1  ← bit 0 (LSB)
 6 ÷ 2 = 3  remainder 0  ← bit 1
 3 ÷ 2 = 1  remainder 1  ← bit 2
 1 ÷ 2 = 0  remainder 1  ← bit 3 (MSB)

Result (read bottom-up): 1101â‚‚

Why Do Computers Use Binary?

Computers are built from billions of tiny switches called transistors. A transistor has only two states: on (1) or off (0). Binary perfectly maps to these two states, making it the most reliable and efficient system for digital electronics. All images, text, sound, and video you see on a computer is ultimately stored as a sequence of 0s and 1s.

Frequently Asked Questions

How do I convert decimal to binary?
Divide the decimal number by 2 repeatedly and record the remainder. Read the remainders from bottom to top. Example: 10 → 10 ÷ 2=5 R0, 5÷2=2 R1, 2÷2=1 R0, 1÷2=0 R1 → binary = 1010.
What is 255 in binary?
255 in binary is 11111111 (eight 1 bits). It represents the maximum value of an unsigned 8-bit number (1 byte), equal to 2⁸ - 1 = 255.
Can I convert large decimal numbers to binary?
Yes! This tool can convert any positive integer. For everyday programming and networking purposes, it handles 8-bit (0–255), 16-bit (0–65535), 32-bit, and larger numbers without issues.
What is the difference between decimal and binary?
Decimal uses 10 digits (0–9, base 10) and is used by humans. Binary uses only 2 digits (0 and 1, base 2) and is used by computers and digital electronics because it maps to on/off electrical states.

Related Number Converters