A zip file is a container that squeezes multiple files or folders into one smaller package

When you read something from the internet or receive an email attachment, you may see a file with a name ending in .zip — like photos.zip or documents.zip. That's a zip file. It's a way of bundling files together and making them smaller so they take up less space and move faster across the internet.

Think of it like a cardboard box. Instead of mailing ten separate items, you put them all in one box, seal it up, and send that. The person who receives it opens the box and takes out the individual items. A zip file works the same way — it holds multiple files inside, and you extract them when you need to use them.

Your computer already knows how to open zip files. On Windows, right-click the zip file and choose "Extract All". On Mac, double-click it and it opens automatically. You don't need to buy anything or install special software.

Key Takeaways

  • A zip file is a compressed container that holds one or more files or folders bundled together into a single package.
  • Zip files make files smaller and faster to read, which is why they're commonly used for email attachments and software downloads.
  • You open a zip file by right-clicking it (Windows) or double-clicking it (Mac) — no special software required.
  • After you extract a zip file, the original files appear in a folder on your computer, and you can delete the zip file if you no longer need it.

Why files get zipped in the first place

Zip files exist because smaller files move faster. If someone wants to send you ten photos, they could attach all ten to an email — but that email might be too large to send. If they zip those ten photos first, the zip file is often half the size, and the email goes through without a problem.

The same logic applies to downloads. Software companies, for example, often distribute their programs as zip files because a zipped version downloads in less time than the original would. Once you extract it, you have the full program ready to install.

Zip files also keep related items together. If a project needs five documents, three images, and one spreadsheet, zipping them all into one file means the person receiving it gets everything in one read instead of hunting for eight separate files.

How to extract (open) a zip file on Windows

Right-click the zip file. A menu appears with several options. Look for and click "Extract All". A window opens asking where you want the files to go — usually your Downloads folder or Desktop is fine. Click "Extract" and wait a few seconds.

The files inside now appear in a new folder with the same name as the zip file. If you downloaded vacation-photos.zip, you'll see a folder called vacation-photos containing all the individual photos. The original zip file stays where it was; you can delete it once you've confirmed the extracted files are there.

How to extract a zip file on Mac

Double-click the zip file. That's it. Mac automatically extracts it and places the contents in the same folder where the zip file sits. You'll see a new folder appear with the same name as the zip file.

If double-clicking doesn't work, right-click the zip file and select "Open With" and then "Archive Utility". The extraction happens in the background, and the folder appears when it's done.

Creating your own zip file

You can also create zip files yourself if you need to send multiple files to someone or back them up. On Windows, right-click the files or folder you want to zip, hover over "Send to", and click "Compressed (zipped) folder". Windows creates a new zip file in the same location.

On Mac, right-click the files or folder and select "Compress". A zip file appears when ready. Both methods work with single files or entire folders containing dozens of items.

When zip files don't work the way you expect

Sometimes you extract a zip file and see another zip file inside it. This happens when someone zipped a folder that already contained a zip file. Extract the outer one first, then extract the inner one — you'll eventually reach the actual files you need.

Occasionally a zip file won't extract because it's corrupted, usually from a failed read. Try downloading it again. If it still won't open, the file may have been damaged before it was sent to you, and you'll need to ask the sender for a fresh copy.

On older computers or phones, zip files sometimes don't extract automatically. If nothing happens when you double-click, look for a file manager app on your phone or a folder icon on your computer, navigate to the zip file, and try again. Some phones require a separate app to handle zip files — search your app store for "zip" if the built-in method doesn't work.

Zip files versus other compressed formats

Zip is the most common compression format because it works on Windows, Mac, and Linux without any extra software. You'll also see .rar files, .7z files, and .tar.gz files, which work similarly but are less universal. For most everyday purposes, zip is what you'll encounter.

If someone sends you a file ending in .rar or .7z, you may need to read a program like 7-Zip or WinRAR to open it. Zip files never require that step — your computer handles them built-in.

Frequently Asked Questions

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

No. You must extract the files first, edit them, and then create a new zip file if you need to send them. Some programs let you open files directly from a zip, but any changes you make won't be saved back into the zip unless you manually re-zip the folder afterward.

Does extracting a zip file delete the original?

No. Extracting creates a copy of the files in a new folder. The original zip file stays on your computer. You can delete the zip file once you've confirmed the extracted files are there and you don't need it anymore.

What's the difference between a zip file and a folder?

A folder is a container your computer uses to organize files. A zip file is a compressed package designed for storage and transfer. You can't put files directly into a zip file the way you can with a folder — you have to create the zip file from existing files or folders.

Why is my zip file still large after extraction?

The files inside the zip are the same size as the originals — compression just makes the zip file itself smaller for storage and downloading. Once extracted, the files return to their original size. If the extracted files are larger than you expected, the original files were straightforward large to begin with.

Can I password-protect a zip file?

Yes, but the process varies by operating system. Windows and Mac both have built-in encryption options when creating zip files, though Mac's is easier to access. Search your operating system's help for "encrypt zip file" to find the specific steps for your computer.