- 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.
THEORY
Read it, understand it, remember it1What is compression?
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
| Type | What happens to the data | Where it is used |
|---|---|---|
| Lossless | Nothing is lost. After extraction, the files are exactly identical to the originals. | ZIP, 7z, RAR, PNG images, FLAC audio. Important for documents and programs. |
| Lossy | Some 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 file | How much it shrinks | Reason |
|---|---|---|
| Text files (.txt), source code, CSV | A lot (often 60 to 90 percent smaller) | Plenty of repeated words and patterns |
| Word, Excel and PowerPoint (.docx, .xlsx, .pptx) | Very little | These formats are already compressed inside |
| Photos (.jpg), music (.mp3), videos (.mp4) | Almost nothing | Already compressed with lossy methods |
| Uncompressed pictures (.bmp), WAV audio | A lot | They have no built-in compression |
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:
| Extension | Notes |
|---|---|
| .zip | Universal. Opens on Windows, Mac, Android and Linux. |
| .rar | Needs WinRAR or 7-Zip to open. Often compresses a little better. |
| .7z | Made by the free program 7-Zip. Compresses very well; needs 7-Zip or similar to open. |
5Compression ratio: measuring the saving
Space saved = 50 - 20 = 30 MB Percent saved = 30 / 50 x 100 = 60 % Ratio = 50 : 20 = 2.5 : 1The ZIP file is 40 percent of the original size (20 / 50 x 100).
6Creating a ZIP file in Windows
- Open File Explorer and go to the files or the folder you want to compress.
- Select them. To select many, use Ctrl + click or Ctrl + A.
- 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.
- 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.
7Extracting (unzipping) a ZIP file
- Right-click the ZIP file and choose Extract All…
- 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.
- Keep Show extracted files when complete ticked and click Extract.
- A normal folder opens with the files inside. Use these files.
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
| Problem | Likely reason | What to do |
|---|---|---|
| "The compressed (zipped) folder is invalid" | The download or copy did not finish and the file is damaged | Download or copy it again |
| "Not enough space" | The destination drive is full | Free some space or extract to another drive |
| Asks for a password | The archive is protected | Ask the sender for the password |
| .rar or .7z will not open | Windows cannot open this format by itself | Install 7-Zip from its official site |
| Email refuses the attachment | Over the size limit | Upload to cloud storage and share a link |
PRACTICAL
Hands-on work on a real computerTask 1: Prepare the files
- In Documents, create a folder
Practice11. Inside it, create a folderProject. - 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. - Save as
notes1.txtin Project. Makenotes2.txtthe same way. - Copy a photo or two from Pictures into Project. (Copy, do not move.)
Task 2: Create a ZIP
- Right-click the
Projectfolder and choose Compress to ZIP file (Windows 10: Send to, Compressed (zipped) folder). - Name it
Project_ZIP. - Compare sizes: right-click the Project folder, Properties, note Size. Do the same for the ZIP file.
- 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
- Move
Project_ZIP.zipto a different folder, for example Desktop. - Right-click it and choose Extract All. Choose a location and extract.
- Open one extracted text file and confirm that the text is identical.
Task 4: Test only text
- Zip just
notes1.txtalone and compare sizes. - Zip just one photo and compare sizes.
- 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).
QUESTIONS
Check what you have learnedMultiple choice (click an answer)
True or false
Short and long questions (write in your notebook)
- What is compression? Give an everyday analogy.
- Differentiate between lossless and lossy compression with examples.
- Write the steps to create a ZIP file and to extract it.
- Why do text files compress better than JPG photos?
- A 36 MB folder becomes 9 MB when zipped. Calculate the space saved and the percent saved.
- Write three safety rules for ZIP files you receive from the internet.
Show model answers for the written questions
- Compression rewrites data to use less space, like a vacuum bag that removes air from clothes.
- Lossless keeps every bit (ZIP, PNG). Lossy permanently discards detail to be smaller (JPG, MP3, MP4).
- 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.
- Text has many repeated patterns that can be shortened. JPG is already compressed so there is little left to remove.
- Saved 36 - 9 = 27 MB. Percent saved = 27/36 x 100 = 75 percent.
- Do not run .exe or similar files from unknown ZIPs; scan with antivirus; check size and sender; extract only to a folder you control.
REVISION AND SUMMARY
Bring the key ideas backKey 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
Finished today's lesson?
Tick it off to track your progress across the 90 days.
Tip: press Shift + ← or → to switch lessons.