Computer CourseDay 11 of 90
0 / 90

Day 11: Compression and ZIP Files

Month 1 • Computer Foundations and Windows

Windows SkillsDay 11 of 90About 2 hours 45 minutes
Today you will learn to:
  • Explain what compression is and why we use it
  • Tell apart lossless and lossy compression, and know which files shrink well
  • Create a ZIP file from one file or a whole folder
  • Extract a ZIP file correctly, and avoid the common "open inside the ZIP" mistake
  • Calculate a compression ratio and check the saving
  • Share ZIP files by email or pen drive, and know the safety rules for downloaded archives

Time needed: about 2 hours 45 minutes (1 hr theory, 1 hr practical, 45 min questions and revision)

Imagine you have to send 40 photos and 5 documents to your teacher by email. Attaching 45 separate files is tiring, and the total may be too big to send. A ZIP file solves both problems: it gathers many files into one package and usually makes the package smaller. Today you learn how.

Part A

THEORY

Read it, understand it, remember it

1What is compression?

Compression: a method of rewriting data so that it takes less storage space. Decompression (also called extracting or unzipping) restores it so you can use it again.

Everyday analogy: You have a pile of clothes that does not fit into your suitcase. You put them into a vacuum bag and suck the air out. The clothes take less room but they are still the same clothes. When you open the bag, they return to normal size. Compression squeezes the "air" (repeated and unnecessary patterns) out of data.

A tiny example of how it can work

Suppose a file contains the text AAAAAAAAAA (ten A's). Instead of storing ten letters, a compressor could store "10 times A", which is much shorter. Real programs use cleverer methods, but the idea is the same: find repetition and describe it in fewer characters.

2Why do we compress files?

  • Save space on the disk, pen drive or cloud storage.
  • Send faster: a smaller file downloads and uploads quicker.
  • Stay below limits: email services usually allow only about 20 to 25 MB of attachments in one email.
  • Bundle many files into one: one package is easier to share and cannot lose a part on the way.

3Lossless and lossy compression

TypeWhat happens to the dataWhere it is used
LosslessNothing is lost. After extraction, the files are exactly identical to the originals.ZIP, 7z, RAR, PNG images, FLAC audio. Important for documents and programs.
LossySome detail that the human eye or ear is unlikely to notice is permanently thrown away to make the file much smaller.JPG photos, MP3 music, MP4 videos.

A ZIP file is always lossless. It would be a disaster if a spreadsheet lost a few numbers when unzipped.

Which files compress well?

Type of fileHow much it shrinksReason
Text files (.txt), source code, CSVA lot (often 60 to 90 percent smaller)Plenty of repeated words and patterns
Word, Excel and PowerPoint (.docx, .xlsx, .pptx)Very littleThese formats are already compressed inside
Photos (.jpg), music (.mp3), videos (.mp4)Almost nothingAlready compressed with lossy methods
Uncompressed pictures (.bmp), WAV audioA lotThey have no built-in compression
Do not be disappointed if a folder of photos is only 2 percent smaller after zipping. The main benefit there is bundling, not shrinking.

4The ZIP format and other formats

ZIP is the most common archive format. An archive is a single file that contains other files and folders. Windows can create and open ZIP files without installing anything. Other formats are:

ExtensionNotes
.zipUniversal. Opens on Windows, Mac, Android and Linux.
.rarNeeds WinRAR or 7-Zip to open. Often compresses a little better.
.7zMade by the free program 7-Zip. Compresses very well; needs 7-Zip or similar to open.

5Compression ratio: measuring the saving

Worked example. A folder is 50 MB. After zipping, the ZIP file is 20 MB.
Space saved   = 50 - 20 = 30 MB
Percent saved = 30 / 50 x 100 = 60 %
Ratio         = 50 : 20 = 2.5 : 1
The ZIP file is 40 percent of the original size (20 / 50 x 100).

6Creating a ZIP file in Windows

  1. Open File Explorer and go to the files or the folder you want to compress.
  2. Select them. To select many, use Ctrl + click or Ctrl + A.
  3. Right-click one of the selected items.
    • Windows 11: click Compress to ZIP file.
    • Windows 10: point to Send to and click Compressed (zipped) folder.
  4. A new item with a zipper icon appears with a name highlighted for editing. Type a sensible name, for example TripPhotos_Oct2026, and press Enter.
Your original files are not touched. The ZIP is a new, extra file. Delete the originals only if you are sure that the ZIP file works (open it and check).

7Extracting (unzipping) a ZIP file

  1. Right-click the ZIP file and choose Extract All…
  2. A window asks where to put the files. The default is a new folder with the same name next to the ZIP. Click Browse if you prefer another place.
  3. Keep Show extracted files when complete ticked and click Extract.
  4. A normal folder opens with the files inside. Use these files.
The most common mistake: double-clicking a ZIP shows its contents like a folder, and beginners open a document from inside the ZIP, edit it and save. The changes may be saved in a temporary place and "lost". Always Extract All first and then work on the extracted copy.

Adding a password

The ZIP feature built into Windows cannot create a password-protected archive. For that you need a free tool such as 7-Zip (download only from its official website). Right-click, choose 7-Zip, Add to archive, set Archive format to zip, and type a password in the Encryption box. Share the password through a different channel from the file, such as a phone call.

8Safety with ZIP files

  • A ZIP from an unknown sender can hide harmful programs. Do not open files inside it that end with .exe, .bat, .js or .scr.
  • Look at the size and the names before extracting. A very small ZIP that claims to contain a large program is suspicious.
  • Scan unknown downloads with your antivirus (right-click, Scan with Microsoft Defender).
  • Make sure that you have enough free space. Extracted files need their full original size.

9Troubleshooting

ProblemLikely reasonWhat to do
"The compressed (zipped) folder is invalid"The download or copy did not finish and the file is damagedDownload or copy it again
"Not enough space"The destination drive is fullFree some space or extract to another drive
Asks for a passwordThe archive is protectedAsk the sender for the password
.rar or .7z will not openWindows cannot open this format by itselfInstall 7-Zip from its official site
Email refuses the attachmentOver the size limitUpload to cloud storage and share a link
Part B

PRACTICAL

Hands-on work on a real computer

Task 1: Prepare the files

  1. In Documents, create a folder Practice11. Inside it, create a folder Project.
  2. Open Notepad. Type this sentence: Computers help us learn, work and play every day. Press Enter. Now repeat this four-key routine about ten times: select all (Ctrl + A), copy (Ctrl + C), go to the end (Ctrl + End), paste (Ctrl + V). Every round doubles the text, so after ten rounds you have about 1,000 lines.
  3. Save as notes1.txt in Project. Make notes2.txt the same way.
  4. Copy a photo or two from Pictures into Project. (Copy, do not move.)

Task 2: Create a ZIP

  1. Right-click the Project folder and choose Compress to ZIP file (Windows 10: Send to, Compressed (zipped) folder).
  2. Name it Project_ZIP.
  3. Compare sizes: right-click the Project folder, Properties, note Size. Do the same for the ZIP file.
  4. Calculate space saved and percent saved with the formula in this lesson.

Expected result: the text files shrink dramatically, the photos barely at all, so the total saving depends on how many of each you included.

Task 3: Extract it safely

  1. Move Project_ZIP.zip to a different folder, for example Desktop.
  2. Right-click it and choose Extract All. Choose a location and extract.
  3. Open one extracted text file and confirm that the text is identical.

Task 4: Test only text

  1. Zip just notes1.txt alone and compare sizes.
  2. Zip just one photo and compare sizes.
  3. Write a one-line conclusion: which compresses better, and why?

Task 5: Sharing plan

Write a short plan (4 to 5 lines) of how you would send a 120 MB folder to a friend if your email allows only 25 MB. Mention at least two options (for example cloud link, splitting into parts, pen drive).

Part C

QUESTIONS

Check what you have learned

Multiple choice (click an answer)

Q1. What is compression?
Answer: Compression reduces the size of data.
Q2. A ZIP file uses which kind of compression?
Answer: Nothing is lost; unzipped files are identical.
Q3. Which file type usually shrinks the most when zipped?
Answer: Text has plenty of repeated patterns.
Q4. What should you do first when you receive a ZIP file with documents?
Answer: Extract first, then work on the extracted copy.
Q5. A folder is 80 MB and its ZIP is 20 MB. What percent was saved?
Answer: Saved 60 MB out of 80 MB = 75 percent.
Q6. Which tool is needed to create a password-protected ZIP?
Answer: The built-in feature cannot set a password.

True or false

Q7. True or false: Zipping a folder deletes the original files.
Answer: Zipping creates a new file; the originals stay.
Q8. True or false: Zipping a folder full of JPG photos will greatly reduce its size.
Answer: JPG is already compressed, so the saving is small.

Short and long questions (write in your notebook)

  1. What is compression? Give an everyday analogy.
  2. Differentiate between lossless and lossy compression with examples.
  3. Write the steps to create a ZIP file and to extract it.
  4. Why do text files compress better than JPG photos?
  5. A 36 MB folder becomes 9 MB when zipped. Calculate the space saved and the percent saved.
  6. Write three safety rules for ZIP files you receive from the internet.
Show model answers for the written questions
  1. Compression rewrites data to use less space, like a vacuum bag that removes air from clothes.
  2. Lossless keeps every bit (ZIP, PNG). Lossy permanently discards detail to be smaller (JPG, MP3, MP4).
  3. Create: select, right-click, Compress to ZIP file (or Send to, Compressed folder), name it. Extract: right-click, Extract All, choose the location, click Extract.
  4. Text has many repeated patterns that can be shortened. JPG is already compressed so there is little left to remove.
  5. Saved 36 - 9 = 27 MB. Percent saved = 27/36 x 100 = 75 percent.
  6. Do not run .exe or similar files from unknown ZIPs; scan with antivirus; check size and sender; extract only to a folder you control.
Part D

REVISION AND SUMMARY

Bring the key ideas back

Key points to remember

  • Compression shrinks data; ZIP is lossless and also bundles many files.
  • Text compresses well; JPG, MP3, MP4, DOCX do not.
  • Create: right-click, Compress to ZIP (Windows 11) or Send to, Compressed folder (Windows 10).
  • Extract: right-click, Extract All. Never work from inside the ZIP.
  • Passwords and .rar or .7z need extra software such as 7-Zip.
  • Be careful with ZIPs from unknown sources.

Self-check: can you now do these?

  • ☐ Zip a folder and give it a good name.
  • ☐ Extract it to a chosen place.
  • ☐ Calculate the percentage saved.
  • ☐ Say which files compress well and why.
  • ☐ Choose a way to share a file that is too large for email.

Summary

Creating ZIP files, extracting archives and sharing compressed files. Revise today's headings, redo any task you found hard, and then mark the day complete.

Finished today's lesson?

Tick it off to track your progress across the 90 days.

Tip: press Shift + ← or → to switch lessons.