Skip to content

Binary: How Computers Store Data

Beginning of the lesson

Binary: How Computers Store Data

Everything inside a computer is really just 1s and 0s

Big Idea: A computer cannot store letters, pictures, or songs the way we see them. Deep inside, it can only remember two things: on and off. We write these as 1 (on) and 0 (off). This is called binary, and it is the secret language every computer uses.
By the end you will be able to:
  • say what a bit and a byte are,
  • count in binary using 1s and 0s,
  • explain how letters and numbers are stored as binary.

1. Everything is on or off

Inside a computer there are millions of tiny switches. Each switch can only be in one of two positions: on or off. There is no "maybe" and no "half". A switch is either on or it is off.

To write this down, we use just two digits:

  • 1 means the switch is on.
  • 0 means the switch is off.

Because there are only two choices, we call this binary. "Bi" means two, like a bicycle has two wheels. Every photo, message, and game you have ever seen was stored as a long line of 1s and 0s.

2. Bits and bytes

A single 1 or 0 is called a bit. It is the smallest piece of information a computer can hold. But one bit on its own cannot say very much, so computers group bits together.

When we put 8 bits together, we call it a byte. A byte is like a small box that can hold one letter, like the letter "A".

NameWhat it isExample
Bitone 1 or one 01
Byte8 bits together01000001
Kilobyteabout 1000 bytesa short story
Megabyteabout a million bytesa song

The files on a computer are measured in bytes. A tiny text uses only a few bytes. A photo uses millions of them!

Continue this lesson on YourAIZone

The full lesson has the complete explanation, worked examples, common mistakes, tests with instant checking and an AI tutor. Start right away as a guest, or create an account to keep your progress.

In the full lesson

  • The complete explanation
  • Worked examples
  • Common mistakes and how to avoid them
  • Test questions: 15
  • AI tutor that answers questions about the topic
  • Progress tracking for students, parents and teachers