How to Create a Zip File
Creating a zip file is built into every major operating system, so you usually need no extra software. On Windows and macOS it is a right-click away; on Linux you can use the zip command. The result is a single .zip archive that bundles your files together and usually shrinks their total size.
One honest note before the methods: ZipTool is a zip viewer, not a compressor. It opens and previews archives in your browser without uploading them, but it does not create zips. So the steps below cover how to actually make a zip with your OS or a tool like 7-Zip, and then you can use ZipTool afterward to verify and preview what you created.
How to create a zip file on Windows
Windows creates zips natively, no third-party software required. Select the files or folders you want (hold Ctrl to pick several, or drag a selection box). Right-click the selection and choose Compress to ZIP file on Windows 11, or Send to > Compressed (zipped) folder on Windows 10 and earlier.
A new .zip file appears in the same folder, named after one of the selected items. Rename it to whatever you like. To add more files later, drag and drop them onto the zip. Windows Explorer has no built-in option to add a password to a zip — for that you need a tool like 7-Zip.
How to create a zip file on macOS
On a Mac, select the items you want to include. Right-click, or Control-click if you are using a one-button mouse, and choose Compress. If you select a single item the menu reads Compress "filename"; if you select several it reads Compress N Items (where N is the count).
macOS names the archive after the item for a single file (filename.zip), and Archive.zip for multiple items. Rename it to something meaningful. The built-in Archive Utility uses a sensible default compression, so you usually do not need to tweak anything. Like Windows, macOS's right-click option does not support strong zip encryption.
How to create a zip from the command line
The zip command is the fastest way once you are comfortable in a terminal. To zip a few files: zip archive.zip file1 file2. To include an entire folder and everything inside it, add the -r (recursive) flag: zip -r archive.zip folder. The -r is essential — without it the folder is added but its contents are skipped.
On Linux the zip utility is sometimes not installed by default. Install it with sudo apt install zip on Debian/Ubuntu, or sudo dnf install zip on Fedora. On macOS the command is available out of the box. On Windows you can use it in WSL or Git Bash, or use PowerShell's Compress-Archive cmdlet: Compress-Archive -Path folder -DestinationPath archive.zip.
zip archive.zip file1 file2— zip two individual fileszip -r archive.zip folder— zip a folder and all of its contentszip -e archive.zip file— prompt for a password (uses weak ZipCrypto; see how to password-protect a zip file)zip -r archive.zip . -x "*.DS_Store"— exclude unwanted files such as macOS metadata
How to create a zip with 7-Zip
7-Zip is a free, popular tool that gives you more control than the built-in options, including a choice of archive format, compression level, and strong encryption. It is primarily a Windows app. Select your files, right-click, then pick 7-Zip > Add to archive.
In the dialog, set Archive format to zip, choose a Compression level (Store for no compression, Normal or Maximum for smaller size), and click OK. To add a password, fill in the Encryption section on the right and set the method to AES-256 (not ZipCrypt/ZipCrypto) for strong protection.
- Store — no compression; fastest, and useful when the files are already compressed
- Fastest / Fast — light compression, quick to run
- Normal — the default, good balance
- Maximum / Ultra — smallest output, slowest to create
What affects the size of a zip file
A zip's final size depends mostly on two things: the compression level you pick and the kinds of files you are zipping. Store leaves files as-is; deflate (the zip default) squeezes out redundancy.
Already-compressed file types like .jpg, .mp4, .mp3, and existing .zip files barely shrink no matter what level you choose, because there is little redundancy left to remove. Plain text, source code, .csv, .docx, and spreadsheets compress dramatically — often to a fraction of their original size. So zipping a folder of photos saves almost nothing, while zipping a folder of code can cut the size by 70-90%.
Verify what you just made
After creating a zip it is worth checking that it contains the right files and that they open correctly, without unpacking it first. You can view the contents of a zip without extracting, or just open it in ZipTool to browse the file tree and preview code, images, audio, video, and PDFs inside the archive.
Because ZipTool parses the archive entirely in your browser, the file contents never get uploaded anywhere — useful when the zip holds something private and you just want to confirm what is in it. Note that client-side viewing is a privacy improvement, not a security guarantee: a malicious archive is still malicious.
Adding a password
If you want the zip to require a password to open, that is a separate step and depends on your tool. Not all zip encryption is equal: the legacy ZipCrypto method used by macOS zip -e and Windows Explorer is weak and can be cracked quickly. For strong protection, use AES-256, which 7-Zip and WinRAR support (7-Zip exposes it in the Add to archive dialog). See how to password-protect a zip file for the full walkthrough.
Frequently asked questions
How do I create a zip file?
On Windows, select your files, right-click, and choose Compress to ZIP file (Windows 11) or Send to > Compressed (zipped) folder. On macOS, select the items, right-click, and choose Compress. On Linux, run zip archive.zip file1 file2 in a terminal. No extra software is needed on any of these systems.
How do I zip a folder?
On Windows and macOS, right-click the folder and pick the Compress option, exactly as you would for files. From the command line, use the recursive flag: zip -r archive.zip folder. The -r is essential — without it the folder is added but its contents are skipped.
How do I create a zip on Windows?
Select the files or folder, right-click, and choose Compress to ZIP file (Windows 11) or Send to > Compressed (zipped) folder (Windows 10 and earlier). A .zip appears in the same folder, which you can rename. Windows Explorer cannot add a password; for compression-level or password control, install 7-Zip and use 7-Zip > Add to archive.
How do I create a zip on a Mac?
Select the items, right-click or Control-click, and choose Compress. A single file becomes filename.zip; multiple items become Archive.zip. You can then rename it. The built-in Archive Utility uses default compression; for finer control use a third-party app.
How do I create a zip from the command line?
Use the zip command: zip archive.zip file1 file2 for individual files, or zip -r archive.zip folder to include a folder recursively. On Linux you may need to install it first with sudo apt install zip. Add -e to set a password (note it uses weak ZipCrypto encryption), or -x to exclude files.
Why did my zip file barely get smaller?
Files that are already compressed — such as .jpg, .mp4, .mp3, and existing .zip files — have almost no redundancy left, so zipping them saves little to nothing. Plain text, code, and documents compress well, often shrinking by 70% or more. If your archive is full of media, expect the output to be close to the original size.