Creating a zip file is built into every operating system — you don't need to download anything

A zip file compresses one or more files or folders into a single smaller package. You create one by right-clicking the file or folder you want to compress, selecting the compress or zip option from the menu, and naming the result. The exact steps differ slightly between Windows, Mac, and Linux, but the principle is the same on all three.

Zip files are useful when you need to send multiple files to someone, back up a folder, or save disk space. The compressed file stays on your computer — creating a zip doesn't delete the original files unless you manually delete them afterward.

Key Takeaways

  • On Windows, right-click a file or folder, select "Send to", then "Compressed (zipped) folder" to create a zip file instantly.
  • On Mac, right-click or Control-click a file or folder and select "Compress" from the context menu.
  • On Linux, right-click a file or folder in your file manager and look for "Compress" or use the command line with the zip command.
  • The original files remain on your computer after you create a zip — the zip file is a separate copy.
  • You can add multiple files to one zip by selecting them all before compressing, or by dragging files into an existing zip file.

Creating a zip file on Windows

Open File Explorer and locate the file or folder you want to compress. Right-click it and look for "Send to" in the menu. Hover over "Send to" and a submenu will appear — select "Compressed (zipped) folder". Windows creates a new zip file in the same location with the original name plus ".zip" at the end.

If you want to zip multiple files at once, select them all first. Hold Ctrl and click each file, or click the first one, hold Shift, and click the last one to select a range. Then right-click any of the selected files and choose "Send to" > "Compressed (zipped) folder". Windows puts all of them into a single zip file.

To add more files to an existing zip, drag them directly into the zip file in File Explorer. The zip file will expand to show its contents, and you can drop files in just like a regular folder. Windows automatically recompresses the zip when you close it.

Creating a zip file on Mac

Open Finder and locate the file or folder. Right-click it (or Control-click if your mouse has only one button) and select "Compress [filename]" from the context menu. Mac creates a zip file with the same name plus ".zip" in the same location, and the original file stays where it was.

To zip multiple files, select them all in Finder first. Click the first file, then hold Cmd and click each additional file. Right-click any of the selected files and choose "Compress [number] items". Mac puts all of them into a single zip file named "Archive.zip".

You can also drag files into an existing zip file on Mac. Double-click the zip to open it, then drag new files into the window. When you close the window, Mac saves the changes to the zip file.

Creating a zip file on Linux

Most Linux file managers (like Nautilus on Ubuntu, Dolphin on Fedora, or Thunar on Xfce) include a compress option. Right-click a file or folder and look for "Compress", "Create Archive", or "Compress Files". Select it, choose "zip" as the format if prompted, and name the file. The file manager creates the zip in the same location.

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 files you want to zip, then type zip -r filename.zip foldername (replace "filename" and "foldername" with your actual names). The -r flag tells zip to include all files and subfolders inside the folder. Press Enter and the zip file is created.

To add files to an existing zip from the command line, use zip -u filename.zip newfile.txt. The -u flag updates the zip with new or changed files.

What happens when you create a zip file

Creating a zip file does not move or delete your original files. The zip is a new file that sits alongside the originals. If you have a folder called "Photos" that takes up 500 MB, and you zip it, you now have both the original "Photos" folder (still 500 MB) and a new "Photos.zip" file (smaller, depending on how much the files compress). You can delete either one without affecting the other.

Different file types compress by different amounts. Text files, Word documents, and PDFs often shrink to 30–50% of their original size. Image files like JPG and PNG are already compressed, so a zip of images might only be 5–10% smaller. Video files compress very little. If you're zipping files to send them, the size reduction matters less than having everything in one file.

Opening and extracting a zip file

To use the files inside a zip, you need to extract them. On Windows, right-click the zip file and select "Extract All", then choose where to put the extracted files. On Mac, double-click the zip file and it extracts automatically. On Linux, right-click the zip and select "Extract" or "Extract Here", or use the command unzip filename.zip in a terminal.

Extracting creates a new copy of the files outside the zip. The zip file itself stays on your computer. You can delete the zip once you've extracted what you need, or keep it as a backup.

Zip files with passwords

Windows and Mac do not have a built-in way to password-protect a zip file through the right-click menu. If you need password protection, you can use a third-party tool like 7-Zip (free, Windows), Keka (free, Mac), or the Linux command line with zip -e filename.zip files (the -e flag prompts you for a password).

Password-protected zips are useful when you're sending sensitive files over email or storing them on a shared drive. Anyone who receives the zip will need the password to extract it. Make sure to send the password through a separate channel — never in the same email as the zip file.

Frequently Asked Questions

Can I zip a folder that's already inside another folder?

Yes. Right-click the folder you want to zip, regardless of where it is, and follow the same steps. The zip file is created in the same location as the folder you compressed. You can zip nested folders without any problem.

What if the zip file is corrupted and won't open?

Try downloading the zip again if you received it by email or download link — the file may have been damaged in transit. If you created the zip yourself, try creating it again. If extraction fails partway through, some files may be recoverable; try extracting to a different location or using a different extraction tool like 7-Zip.

Does creating a zip file use a lot of computer power or take a long time?

No. Zipping is fast on modern computers, even for large folders. A folder with hundreds of files usually zips in seconds. The time depends on your disk speed and how much compression is needed, but it's rarely noticeable.

Can I edit files inside a zip without extracting them?

Some programs let you open files directly from a zip, but changes usually don't save back to the zip automatically. It's safer to extract the files, edit them, and then create a new zip if you need to send them. This avoids accidentally losing changes.

Is there a limit to how many files I can put in one zip?

Standard zip files can hold up to 4 GB of uncompressed data and up to 65,536 files. For most everyday use, you'll never hit these limits. If you're archiving something massive, you might need to split it into multiple zips or use a different format like 7z.