What a zip file is and why you'd create one
A zip file is a single compressed folder that holds multiple files or folders inside it. When you zip something, you're shrinking it down — sometimes by half or more — so it takes up less space on your computer or moves faster when you email it or upload it somewhere. The files inside stay intact; unzipping them brings them back to their original size and form.
You create a zip file when you want to send several documents to someone at once, back up a folder before you delete it, or just clean up your hard drive. The process is different depending on whether you use Windows, Mac, or Linux, but all three let you do it without installing anything extra.
Key Takeaways
- On Windows, right-click the folder, choose "Send to," then "Compressed (zipped) folder" to create a zip file when ready.
- On Mac, right-click the folder and select "Compress" — the zip file appears in the same location with the same name plus ".zip".
- On Linux, use the file manager's right-click menu or the command line tool zip to create archives from folders.
- A zip file preserves the folder structure inside it, so when someone unzips it, they get the same layout you had.
- Zipping does not delete the original folder — you still have both the original and the zip file until you manually remove one.
Creating a zip file on Windows
On Windows 10 and 11, you don't need any extra software. Right-click the folder you want to zip. A menu appears. Look for "Send to" — hover over it, and a submenu opens. Click "Compressed (zipped) folder."
Windows creates a new zip file in the same location as your original folder. It has the same name as the folder, but with ".zip" added to the end. If your folder was called "Tax Documents," the zip file is called "Tax Documents.zip." The original folder stays where it is — zipping does not remove it.
If you don't see "Send to" in the right-click menu, your Windows version may be older or configured differently. In that case, open File Explorer, select the folder, go to the "Share" tab at the top, and look for a "Zip" button. If that doesn't work either, you can use the built-in command line: open Command Prompt, navigate to the folder's location, and type powershell Compress-Archive -Path "FolderName" -DestinationPath "FolderName.zip", replacing "FolderName" with your actual folder name.
Creating a zip file on Mac
On Mac, right-click (or Control-click) the folder you want to zip. A menu appears. Click "Compress [Folder Name]." That's it — macOS creates a zip file when ready in the same location.
The zip file has the same name as the original folder, plus ".zip" at the end. If your folder is called "Photos," the zip file is "Photos.zip." The original folder remains untouched. If you're compressing multiple folders at once, you can select them all before right-clicking, and Mac will create a single zip file containing all of them.
If you're using an older version of macOS and the "Compress" option doesn't appear, you can use the Terminal instead. Open Terminal (in Applications > Utilities), type zip -r ~/Desktop/ArchiveName.zip ~/path/to/folder, and press Enter. Replace "ArchiveName" with what you want to call the zip file and "~/path/to/folder" with the actual path to your folder.
Creating a zip file on Linux
Linux offers several ways to create a zip file, depending on which file manager you use and whether you prefer the command line. In most graphical file managers (like Nautilus on Ubuntu or Dolphin on Fedora), right-click the folder and look for "Compress" or "Create Archive." A dialog box opens asking what format you want — select "ZIP" and choose where to save the file.
If your file manager doesn't have a compress option, or if you prefer the command line, open a terminal and use the zip command. Navigate to the folder containing the folder you want to zip, then type zip -r archive-name.zip folder-name, replacing "archive-name" with what you want to call the zip file and "folder-name" with the name of the folder you're zipping. Press Enter, and the zip file is created in your current directory.
If the zip command isn't installed on your system, you can install it through your package manager. On Ubuntu or Debian, type sudo apt install zip. On Fedora or Red Hat, type sudo dnf install zip. After installation, the command works the same way.
What happens to the original folder after you zip it
Zipping a folder does not delete or move the original. You end up with two things in the same location: the original folder with all its files, and a new zip file. Both take up space on your computer. If you want to delete the original folder to save space, you have to do that manually — right-click it and choose "Delete" or "Move to Trash."
This is actually useful, because it means you can verify the zip file worked before you throw away the original. Unzip the file, check that everything is there, and then delete the original if you're confident the backup is complete.
Checking what's inside a zip file before unzipping
On Windows, double-click the zip file to open it in File Explorer. You see the contents without unzipping — the files are still compressed inside. You can look through the folder structure, open individual files to preview them, or drag files out if you only need some of them.
On Mac, double-clicking a zip file automatically unzips it, so you can't preview without extracting. If you want to see what's inside first, right-click the zip file, choose "Open With," and select "Archive Utility" or another tool that lets you browse without extracting.
On Linux, most file managers let you double-click a zip file to browse its contents without unzipping. If yours doesn't, you can use the command line: type unzip -l archive-name.zip to list everything inside without extracting it.
Common mistakes and how to avoid them
The most common mistake is zipping a folder that's already inside another folder you're also zipping, which creates nested archives that are harder to work with. Before you zip, make sure you're selecting the right folder — the one that contains everything you want, but not extra layers above it.
Another mistake is assuming the zip file is smaller than the original. Zipping works best on text files, documents, and images — it can shrink them by 50 percent or more. But if your folder contains videos, audio files, or photos that are already compressed, zipping might make the file only slightly smaller, or even slightly larger. Zipping still works; it just won't save as much space.
A third mistake is forgetting that the original folder is still there. If you're trying to free up space, remember to delete the original after you've confirmed the zip file is good. Otherwise you've just created a duplicate, and you're using twice as much space as before.
Frequently Asked Questions
Can I password-protect a zip file?
On Windows and Mac, the built-in zip tools don't offer password protection. You'll need third-party software like 7-Zip (free, Windows) or Keka (free, Mac). On Linux, you can use the command line: type zip -e archive-name.zip folder-name, and the system will prompt you to enter a password. The -e flag enables encryption.
What's the difference between zip and other compression formats like rar or 7z?
Zip is the most widely supported format — almost every computer can open it without extra software. RAR and 7z compress slightly better (smaller file size), but they require special software to open. For sending files to other people or long-term storage, zip is usually the safest choice because compatibility is may provide.
If I zip a folder and then move the zip file to a different location, can I still unzip it?
Yes. A zip file is self-contained — it doesn't depend on the original folder or its location. You can move, email, or upload the zip file anywhere, and it will unzip the same way. The original folder can even be deleted, and the zip file still works perfectly.
How big can a zip file be?
Technically, zip files can be up to 16 exabytes in size, which is far larger than any personal computer will ever need. In practice, your limit is your hard drive space and the file size limits of whatever service you're using to store or send the file. Email providers often cap attachments at 25 MB, and cloud storage services have their own limits.
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 easier to create a new zip file with all the files you want rather than trying to edit an existing one. If you need to add files regularly, consider using a cloud folder instead of a zip file.