What a zip file is and why you'd make one

A zip file is a single container that holds one or more files or folders in compressed form. When you zip something, you're shrinking it down so it takes up less space on your hard drive and moves faster when you email it or upload it. The original files stay readable — you're not changing what's inside, just how tightly it's packed.

You create a zip file when you want to send multiple files to someone in one attachment, back up a folder without wasting space, or organize files you don't use often. The process is different depending on whether you use Windows, Mac, or Linux, but the result is the same: a single .zip file that contains everything you selected.

Key Takeaways

  • On Windows, right-click the file or folder, choose "Send to", then "Compressed (zipped) folder" to create a zip file when ready.
  • On Mac, right-click or Control-click the file or folder and select "Compress" from the menu that appears.
  • On Linux, use the file manager's right-click menu or open a terminal and type a tar or zip command depending on your distribution.
  • The zip file appears in the same location as the original file or folder, with a .zip extension added to the name.
  • You can zip a single file, multiple files, or an entire folder — the method is the same for all three.

Creating a zip file on Windows

On Windows, the simplest method uses the built-in right-click menu. Locate the file or folder you want to zip. If you're zipping multiple separate files that aren't in the same folder, move them into one folder first, then zip that folder. Right-click the file or folder, and a menu will appear.

Look for "Send to" in that menu — it's usually near the bottom. Hover over "Send to" and a submenu will open. Click "Compressed (zipped) folder". Windows will create a new zip file in the same location, with the same name as the original plus ".zip" at the end. If you zipped a folder called "Photos", the zip file will be called "Photos.zip".

The original file or folder stays where it is — zipping doesn't delete anything. You now have both the original and the zip file taking up space. If you want to keep only the zip file, you can delete the original folder once you've confirmed the zip file contains what you need.

Creating a zip file on Mac

On Mac, the process is nearly identical to Windows. Find the file or folder you want to zip. Right-click it (or Control-click if you don't have a right-click mouse), and a menu will appear. Look for "Compress" — it's usually near the top of the menu. Click it.

Mac will create a zip file with the same name as the original, plus ".zip" at the end, in the same location. If you're compressing a folder called "Documents", the zip file will be called "Documents.zip". Like Windows, the original file or folder remains untouched. You can delete it later if you want to save space.

If you're zipping multiple files that aren't in the same folder, select them all first by holding Command and clicking each one. Then right-click any of the selected files and choose "Compress". Mac will create a single zip file containing all of them.

Creating a zip file on Linux

Linux distributions vary, but most file managers (like Nautilus on Ubuntu or Dolphin on Fedora) include a right-click option for compression. Open your file manager, find the file or folder you want to zip, right-click it, and look for "Compress" or "Create Archive". A dialog box will appear asking what format you want — choose "zip" from the dropdown if other options are shown.

If your file manager doesn't have a compress option, or if you prefer the command line, open a terminal. Navigate to the folder containing the file or folder you want to zip. Type zip -r filename.zip foldername, replacing "filename" with what you want to call the zip file and "foldername" with the name of the folder or file you're zipping. The -r flag tells zip to include everything inside the folder recursively. Press Enter, and the zip file will be created in the same directory.

For example, if you want to zip a folder called "MyPhotos", you would type zip -r MyPhotos.zip MyPhotos and press Enter. The terminal will show you the files being added to the zip as it works.

What to do if the zip file is too large to send

If your zip file is still too big to email or upload, you have a few options. The first is to split the files into multiple smaller zip files — zip only some of the files at a time, creating "Part1.zip", "Part2.zip", and so on. The person receiving them will need to read all parts before unzipping.

The second option is to use a file-sharing service like Google Drive, Dropbox, or OneDrive. Upload the zip file there and send the recipient a link instead of attaching the file. This works for files of almost any size and is often faster than email for large files.

The third option is to compress more aggressively. Standard zip compression is good but not maximum. Some tools like 7-Zip (free, available on Windows and Linux) can compress further, though the recipient will need 7-Zip or a compatible tool to open it. For most situations, a regular zip file is the safest choice because almost every computer can open it without installing anything extra.

Opening a zip file you've created

To verify that your zip file contains what you think it does, you can open it without fully extracting it. On Windows, double-click the .zip file and a folder window will open showing the contents. On Mac, double-click the .zip file and it will automatically extract to the same location. On Linux, right-click the .zip file and choose "Extract" or "Open With Archive Manager".

If you want to use the files inside the zip, you'll need to extract them first. On Windows and Mac, you can usually just double-click the zip file and it will extract automatically. On Linux, right-click and choose "Extract Here" or use the terminal command unzip filename.zip. The original files will appear in the same folder as the zip file.

Frequently Asked Questions

Can I password-protect a zip file?

Standard zip tools on Windows and Mac don't offer password protection in their basic right-click menus. You'll need a third-party tool like 7-Zip (Windows and Linux) or The Unarchiver (Mac) to add a password. On Mac, you can also use the terminal command with encryption flags if you're comfortable with command-line tools.

Does zipping a file change what's inside it?

No. Zipping compresses the file for storage and transfer, but the contents remain exactly the same. When you extract the zip file, you get back the original file unchanged. This is different from converting a file to a different format, which would alter what's inside.

What if I zip a folder with subfolders inside?

The zip file will preserve the folder structure. If you zip a folder called "Photos" that contains subfolders like "2023" and "2024", the zip file will contain those same subfolders in the same arrangement. When someone extracts it, they'll get the exact same folder layout.

Can I add more files to a zip file after I create it?

On Windows, you can drag files into an open zip file window and they'll be added. On Mac and Linux, it's usually easier to create a new zip file with all the files you want rather than editing an existing one. Most tools don't make it straightforward to add files to an existing zip without extracting and re-zipping.

Why is my zip file almost as large as the original?

Some file types — like photos, videos, and music — are already compressed. Zipping them again won't shrink them much because there's little redundant data left to remove. Text files, documents, and folders with many small files compress much better. If you're zipping photos, expect the zip file to be nearly the same size as the originals.