What file compression does and when you need it

Compressing a file makes it smaller by removing redundant data — repeated patterns, empty space, or information your computer can reconstruct later. The compressed file takes up less storage and moves faster over the internet, but you cannot use it until you decompress it back to its original form.

You need compression when you are sending files by email (most providers limit attachments to 20–25 MB), uploading to cloud storage with a quota, or archiving old documents you do not access often. A folder full of photos, a year of spreadsheets, or a video file can shrink to half its original size or smaller, depending on what is inside.

Compression works differently on different file types. A folder of text documents compresses heavily because text repeats words and patterns. A folder of photos compresses less because image files are already compressed when you take them. Video files, music files, and PDFs compress very little because they use compression built in.

Key Takeaways

  • Windows includes a built-in compression tool in File Explorer; Mac users have Archive Utility built in, and both create a .zip file that works on any computer.
  • Right-click a file or folder, select the compress or archive option, and the compressed version appears in the same location with a .zip extension.
  • Compressed files must be decompressed before you can open them — double-clicking the .zip file extracts it automatically on Windows and Mac.
  • Compression works best on text, documents, and folders with many files; photos and videos compress very little because they are already compressed.

Compressing a single file on Windows

Open File Explorer and locate the file you want to compress. Right-click it, then look for an option called "Send to" or "Compress". Click "Compressed (zipped) folder". Windows creates a new file with the same name plus .zip at the end, in the same folder as the original.

The original file stays where it is — compression makes a copy. You can now delete the original if you want to save space, or keep both. The .zip file is what you send or upload; the original stays on your computer if you need it again.

If you do not see a compress option, your version of Windows may require you to use a third-party tool. 7-Zip is free and widely used: download it from 7-zip.org, install it, then right-click any file and choose "7-Zip" > "Add to archive".

Compressing a single file on Mac

Locate the file in Finder. Right-click it and select "Compress [filename]". Mac creates a .zip file with the same name in the same location. The original file remains untouched.

Mac's built-in Archive Utility handles this automatically — you do not need to install anything. If you compress multiple files at once, Mac combines them into a single .zip archive.

Compressing a folder on Windows or Mac

Compressing a folder is the same process as compressing a single file. Right-click the folder, select compress or archive, and the system creates a .zip file containing everything inside — all subfolders and files together.

This is useful when you have a project folder with many documents, or a folder of photos you want to send to someone. The recipient gets one .zip file instead of dozens of individual files, and they can extract everything at once by double-clicking.

If the folder is very large (over 1 GB), compression may take a minute or two. The progress bar shows you how far along it is. Do not close the window until it finishes.

Decompressing a .zip file

On Windows, double-click the .zip file. File Explorer opens it and shows you what is inside. Right-click and select "Extract All", then choose where you want the files to go. Windows creates a new folder with the decompressed contents.

On Mac, double-click the .zip file. Archive Utility runs automatically in the background and extracts the contents to the same folder. You see the decompressed file or folder appear next to the .zip.

Once you have extracted the files, you can delete the .zip if you want to save space. The extracted files are now full-size and ready to use.

When compression does not help much

Photos, videos, and music files are already compressed when you create or download them. Compressing them again with .zip saves only 5–15 percent of the space because there is little redundant data left to remove. If you are trying to make a video file smaller to send by email, compression will not help — you need to reduce the video quality or resolution instead, which is a different process.

PDFs and modern document formats (like .docx) also compress poorly because they use compression internally. A folder of PDFs might shrink 10–20 percent, but a folder of old .txt files or spreadsheets can shrink 50 percent or more.

Sending a compressed file by email

After you create the .zip file, attach it to your email the same way you would attach any file. Most email providers allow attachments up to 20–25 MB. If your .zip file is larger, you may need to split it into smaller pieces or use a file-sharing service like Google Drive or Dropbox instead.

When the recipient gets the .zip file, they double-click it to extract it on their computer. They do not need any special software — .zip is a standard format that every operating system understands.

Frequently Asked Questions

Can I compress a file that is already compressed?

Yes, but it will not get much smaller. If you compress a photo or video file, the .zip wrapper adds a tiny bit of overhead, so the result might actually be slightly larger. Compression works best on files that contain a lot of repeated data, like text or spreadsheets.

Do I need a password to open a compressed file?

Not unless you set one when you created the .zip. If you want to password-protect a compressed file, right-click it during compression and look for an option to add a password. On Mac, this option appears in the compression dialog. On Windows, you may need to use 7-Zip or another tool to add password protection.

What is the difference between .zip and other compression formats?

.zip is the most common format and works on Windows, Mac, and Linux without extra software. Other formats like .rar or .7z compress slightly better but require special software to open. For everyday use, .zip is the best choice because everyone can open it.

Can I edit a file inside a .zip without extracting it?

Some programs let you open files directly from a .zip, but changes you make usually do not save back into the .zip. It is safer to extract the .zip first, edit the file, then compress it again if you need to.

What happens if a .zip file gets corrupted during download?

A corrupted .zip may not extract, or it may extract partially with missing files. If this happens, ask the sender to upload it again or use a different file-sharing method. Large .zip files are more likely to corrupt during transfer, which is why cloud storage is often more reliable than email for big files.