Bits, Bytes, and Why Files Have Sizes
Byte the robot guide sits at a glowing workbench covered in tiny light switches, flipping them on and off to spell out letters while a large monitor behind displays the growing file size counter ticking upward.
- Explain what a bit is and how it represents one of two states.
- Identify that a byte is made up of exactly eight bits.
- Calculate file sizes in bytes given a number of characters or simple data.
- Compare the sizes of different file types using kilobytes and megabytes.
- Predict why some files are larger than others based on the data they store.
Key terms
- Bit
- A single binary digit storing one of two states, 0 or 1
- Byte
- A group of exactly eight bits holding 256 possible values
- Kilobyte
- A unit equal to 1,024 bytes of data
- File size
- The total number of bytes a saved file occupies
From One Bit to 256 Values
A single bit only offers two choices, which is far too few to name every letter of the alphabet. Group two bits and you get four combinations; group three and you get eight. Each extra bit doubles the choices, so eight bits give two multiplied by itself eight times, which is 256 combinations. That is enough to assign a unique pattern to every common letter, digit, and symbol, which is exactly why the byte became the standard building block for storing characters.
Why Photos Dwarf Text
A page of text stores one byte per character, so a thousand characters is about a thousand bytes. A photo is built from a grid of tiny dots called pixels, and each pixel needs several bytes to record its color. A modern photo can hold several million pixels, so multiplying millions of pixels by a few bytes each lands you in the millions of bytes, or megabytes. The amount of data, not the file type's name, is what makes one file bigger than another.
Worked examples
Find the byte size of the word ROBOT
- Count the characters in ROBOT: R, O, B, O, T is five characters.
- Recall that each everyday character takes about one byte.
- Multiply five characters by one byte each.
- The total is five bytes.
Answer: About 5 bytes
Convert 2,048 bytes into kilobytes
- Recall that one kilobyte equals 1,024 bytes.
- Divide the total bytes by 1,024: 2,048 / 1,024.
- The division gives exactly 2.
Answer: 2 kilobytes
Activity
Drag each file description into the correct size order from smallest to largest.
Practice
Estimate the byte size of a 250-character text message.
Explain why a song file is far larger than a grocery list.
Common mistakes to avoid
- A bit and a byte are the sameA bit is one binary digit, while a byte groups eight bits, so a byte is eight times larger.
- File size depends on the topic written aboutFile size depends on how much data is stored, not on what subject the file is about.
Check your understanding
How many bits make up one byte?
A student saves a poem with exactly 400 characters. About how many bytes does that file use?
Why is a photo file usually much larger than a text file of the same topic?
A classmate says 'a bit and a byte are the same thing — they both just mean a tiny piece of data.' What is wrong with that statement?
Recap
A bit holds one of two states and eight bits form a byte, which stores 256 values, enough for any character. Files are sequences of bytes, and images are far larger than text because they record color for every pixel.
Reflect
Why might saving an app fewer bytes matter on a phone with limited storage?