Topic 04

Bits and Bytes

Concept

Open a photo, play a song, read a message — to you they're completely different things. To the computer underneath, they're identical: long strings of nothing but 0s and 1s. Everything a computer stores or handles is, at bottom, just numbers.

That sounds almost too simple to be true. This topic shows how two symbols — 0 and 1 — are genuinely enough to hold every photo, every song, and every word you've ever seen on a screen.

Everything you see is built up from the same two symbols
Photos, music, text, video
what you actually see and hear
Bytes
groups of eight bits — about one byte per basic character
Bits
single 0s and 1s — the foundation underneath all of it

A Bit: the Smallest Piece

The smallest piece of information a computer has is a bit — a single 0 or 1, nothing more. Picture a light switch: it's either off (0) or on (1). One bit on its own can't say much; it's a single yes-or-no. But a computer has billions of these switches, and that sheer number is what changes everything.

A Byte: Enough for a Letter

Bits get grouped, and the famous grouping is eight of them: a byte. With eight switches, each off or on, you get 256 different combinations — enough to give every letter, digit, and punctuation mark its own unique pattern. So one byte can hold one of the basic English characters: the letter "A," a comma, the digit 7. (Characters from other alphabets, along with things like emoji, take more than one byte each — but the idea is the same.)

From there it just scales. A word is a handful of bytes, a sentence a few dozen, a page a few thousand. The text you're reading right now is, underneath, a precise sequence of bytes — each one standing for a single character on the screen.

How Numbers Become Everything

Text is the easy case, and the same trick covers the rest. An image is a grid of tiny dots called pixels, and each dot's color is written as numbers — so a photo is really one very long list of color numbers. Sound is loudness measured thousands of times a second, each measurement a number. Video is many images plus sound. Different media, one idea: agree on how to turn the thing into numbers, and the computer can store it.

That agreement is the key word: encoding. There's nothing about a string of bits that's naturally a letter or a color — it becomes one because everyone agreed on a code for reading it. Use the wrong code and you get the garbled text or scrambled image you've probably seen when a file is broken.

Why Files Are Measured in MB and GB

This is also where the sizes on your files come from. A kilobyte (KB) is about a thousand bytes, a megabyte (MB) about a million, a gigabyte (GB) about a billion. They aren't random labels — they're simply counts of how many bytes a thing takes up. A text message is a few hundred bytes; a photo a few million (megabytes); a movie a few billion (gigabytes). When storage runs low or a download crawls, this is the unit you're feeling.

Morse code is the everyday version of the same idea. With just dots and dashes — two symbols — it can spell out any message in any language. Nobody thinks dots and dashes "really are" letters; they stand for letters because there's an agreed code. A computer does exactly this, with 0 and 1 in place of dot and dash, and billions of them every second.

Common Confusions
  • "Computers understand letters and pictures directly." They only ever handle numbers; a letter or an image is numbers under an agreed code.
  • "A bit and a byte are the same thing." A bit is one 0 or 1. A byte is eight bits grouped together — enough for one character.
  • "KB, MB, and GB are random size labels." They're counts of bytes — roughly a thousand, a million, and a billion — measuring how much space something takes.
  • "A bigger file always means better quality." Bigger just means more bytes. Sometimes that's higher quality; sometimes it's only a wasteful way of storing the same thing.
Why It Matters
  • File sizes, download limits, phone data plans, and cloud storage bills are all measured in bytes — this is the unit running underneath all of them.
  • "Bandwidth" — how fast data moves, in the networking chapters later — is measured in bits per second (which is why an internet plan is sold as, say, 100 Mbps, not 100 MB/s), so bits and bytes both come straight back.
  • Encoding explains why a file opened with the wrong program shows gibberish: the bytes are fine, but the code being used to read them is wrong.
  • When you pick storage or memory for a cloud computer later, you're buying a number of bytes — knowing the units keeps the cost from feeling mysterious.

Knowledge Check

What is a bit?

  • A single 0 or 1 — the smallest piece of information, like one switch
  • A group of eight numbers that together can stand for one typed character
  • A small file that holds one letter of text on the computer's storage
  • The unit used to measure how fast a file downloads over the internet

How can a computer store a photo if it only handles 0s and 1s?

  • The photo's colors are turned into numbers, then written as 0s and 1s
  • Photos are a special exception the storage keeps in their original form
  • The screen, not the computer, remembers the actual image you see
  • The computer keeps a tiny physical copy of the picture on the disk

What does a file's size in megabytes (MB) actually tell you?

  • Roughly how many million bytes it takes up — how much space it needs
  • How good the quality of the photo, song, or video inside it is
  • How many minutes it will take the CPU to open and display
  • A label the maker simply chose, with no fixed relationship to the real size

You got correct