The basic method: right-click and compress
On Windows and Mac, the fastest way to create a zip file is to right-click the folder you want to compress, then select the compress or zip option from the menu that appears. On Windows, this option says "Send to" and then "Compressed (zipped) folder". On Mac, it says "Compress". Linux does not have a built-in right-click option, so you will use the command line instead — covered in the section below.
When you right-click and compress, your operating system creates a new file in the same location as the original folder. The new file has a .zip extension and contains everything that was in the folder. The original folder stays where it is — compression does not delete it. You can then move, email, or upload the zip file while leaving the original folder untouched.
This method works for single folders and for multiple folders at once. If you select three folders, right-click, and choose compress, you get one zip file containing all three.
Key Takeaways
- Right-click a folder on Windows or Mac and select the compress option to create a zip file in the same location without deleting the original.
- On Windows, the compressed file appears with a .zip extension and can be opened by double-clicking it or using any archive program.
- On Mac, the zip file is created when ready and appears next to the original folder with the same name plus ".zip".
- Linux users need to open a terminal and use the command zip -r filename.zip foldername to compress a folder.
- Zip files preserve folder structure and file permissions, so when someone unzips your file, they see the same organization you created.
Windows: using the built-in compress feature
On Windows 10 and Windows 11, locate the folder you want to zip in File Explorer. Right-click the folder name, then hover over "Send to" in the menu. A submenu appears with the option "Compressed (zipped) folder". Click that option.
Windows creates a new zip file in the same folder, usually named after the original folder with ".zip" added to the end. If your folder is called "Project Files", the zip file will be "Project Files.zip". You can rename it by right-clicking and selecting "Rename". The zip file is ready to use when ready — no waiting, no additional steps.
If you want to add more files to the zip after creating it, you can open the zip file like a folder, drag new files into it, and they are added to the archive. You can also right-click the zip file itself and choose "Extract All" to unzip it later.
Mac: using Compress from the context menu
On Mac, open Finder and locate the folder you want to compress. Right-click the folder and select "Compress [Folder Name]" from the menu. Mac creates a zip file when ready in the same location.
The zip file appears next to your original folder with the same name plus ".zip" at the end. If your folder is "Design Assets", the zip file is "Design Assets.zip". Unlike Windows, Mac does not let you add files to a zip after creation — if you need to add something, you have to create a new zip that includes the updated folder.
You can also drag a folder onto the Finder toolbar if you have added the Compress button there, which skips the right-click step. To add the button, go to Finder preferences, click the Toolbar tab, and drag the Compress icon to your toolbar.
Linux: using the zip command in terminal
Linux does not have a graphical right-click option for compression in most distributions, so you use the terminal instead. Open your terminal process and navigate to the folder containing the folder you want to zip. If your folder is on the Desktop, type cd ~/Desktop and press Enter.
Once you are in the correct location, type zip -r filename.zip foldername, replacing "filename" with what you want to call the zip file and "foldername" with the actual folder name. For example, zip -r backup.zip Documents creates a file called "backup.zip" containing everything in the Documents folder. The -r flag tells zip to include all subfolders and files recursively.
Press Enter and the zip file is created. You can verify it worked by typing ls to list the files in your current location — you should see the new zip file there. If you do not have zip installed, you can install it through your package manager (apt on Ubuntu, brew on some systems, or yum on Red Hat systems).
What happens to file permissions and folder structure
When you create a zip file, the folder structure inside it stays exactly as it was. If your original folder contains subfolders and files nested three levels deep, the zip file preserves that same structure. When someone unzips the file, they see the same organization.
On Mac and Linux, zip files also preserve file permissions — settings that control who can read, write, or run a file. On Windows, permissions are less relevant because Windows uses a different system, but zip files still store the information. This means if you zip a script file that was executable on Mac, it remains executable when unzipped on another Mac.
If you are sharing files with someone on a different operating system, the zip file works across Windows, Mac, and Linux without any conversion needed. The person receiving it can unzip it using their operating system's built-in tools.
Choosing between zip and other compression formats
Zip is the most widely supported format, which is why it is the default on Windows and Mac. Almost every device and operating system can open a zip file without installing additional software. If you are sending files to someone and you do not know what they use, zip is the safest choice.
Other formats exist — 7z, RAR, and tar.gz are common on Linux and among people who work with large archives. These formats sometimes compress more tightly than zip, meaning the resulting file is smaller. However, they require additional software to open on Windows or Mac, so they are less practical for general sharing.
For most purposes, stick with zip. It is fast, universally supported, and built into every operating system. Use other formats only if you have a specific reason — like needing maximum compression for a very large archive, or working in an environment where a particular format is standard.
Troubleshooting common issues when creating zip files
If you right-click a folder and do not see a compress option, your operating system may not have the feature enabled or you may be using an older version. On Windows, try updating to the latest version. On Mac, the Compress option should always appear — if it does not, restart Finder by holding Option, clicking the Finder icon in the dock, and selecting "Relaunch".
If the zip file is created but appears empty or corrupted, the original folder may have had permission issues preventing the operating system from reading all the files. On Mac and Linux, you can check this by opening Terminal and typing ls -la foldername to see if all files are readable. On Windows, right-click the folder, select Properties, and check that your user account has Read permissions.
If you are creating a very large zip file and the process seems frozen, it is probably still working — compression takes time with large folders. Wait several minutes before assuming something went wrong. You can check progress on Mac by opening Activity Monitor and searching for "zip", or on Windows by opening Task Manager and looking for the compression process.
Frequently Asked Questions
Does creating a zip file delete the original folder?
No. Zipping a folder creates a new compressed copy and leaves the original folder untouched. You can delete the original folder after zipping if you want to free up space, but the zip process itself does not remove anything.
Can I password-protect a zip file?
On Windows and Mac, the built-in compress tools do not offer password protection. You can use third-party software like 7-Zip (free, Windows and Linux) or WinRAR (paid, Windows and Mac) to create password-protected archives. On Mac, you can also use the command line with the zip -e flag to add encryption.
What is the file size limit for a zip file?
Zip files can theoretically hold up to 16 exabytes of data, which is far larger than any single folder you will encounter. In practice, your computer's storage and the file system you are using are the only limits. A zip file works the same whether it is 1 megabyte or 10 gigabytes.
How do I add files to a zip after I have created it?
On Windows, you can open the zip file like a folder and drag new files into it. On Mac and Linux, you need to create a new zip file that includes the updated folder. Alternatively, you can unzip the original file, add the new files to the unzipped folder, and create a new zip.
Will the zip file work on a different operating system?
Yes. Zip files are universal and work on Windows, Mac, Linux, and most mobile devices. Someone on a completely different system can unzip your file and see the same folder structure and files you created.