Course contentsShow
Computer Science
Lesson 1 of 2,8721. Digital FoundationsFree lesson

What is Binary and Why It Matters

Understand why computers use binary (base-2) instead of decimal and how bits represent all digital information.

What is Binary and Why It Matters

What you'll learn: Why computers speak in 1s and 0s, and how this simple system powers everything digital.

Why Binary?

Computers are built from billions of tiny electronic switches called transistors. Each switch has only two states: on or off. That's it—no in-between. It's like a light switch in your home: it's either flipped up (on) or down (off).

Because computers can only detect these two states reliably, they use binary (base-2)—a number system with just two digits: 0 (off) and 1 (on).

Why Not Use Decimal?

Humans use decimal (base-10) because we have 10 fingers. But imagine trying to build an electronic component that could reliably distinguish between 10 different voltage levels (0 through 9). It would be expensive, error-prone, and slow. Two states? That's simple, cheap, and incredibly fast to detect.

Bits: The Building Blocks

Each binary digit (0 or 1) is called a bit—the smallest unit of data in computing. Think of a bit like a single light bulb: it can only be on or off.

But here's the magic: by combining many bits together, computers can represent anything:

  • Numbers (like 5, 1000, or 3.14)
  • Letters (like 'A' or 'z')
  • Colors (every pixel on your screen)
  • Sounds (music, voices)
  • Videos (yes, even cat videos!)

It's like Morse code—just dots and dashes can spell out entire messages. Binary is similar, but instead of dots and dashes, we have 0s and 1s.

The Bottom Line

Binary isn't some mysterious computer language—it's simply the most practical choice for machines built from on/off switches. Every photo, email, game, and app ultimately reduces to patterns of 1s and 0s.

Key Takeaway: Computers use binary because their hardware can only detect two states (on/off), and bits (0s and 1s) are the fundamental building blocks for representing all digital information.