The basic steps to create a ZIP file

To compress files into a ZIP archive, you select the files you want to compress, then use your operating system's built-in compression tool or a third-party program to create the archive. On Windows, you right-click the files, choose "Send to," and select "Compressed (zipped) folder." On Mac, you select the files, right-click, and choose "Compress." On Linux, the process varies by desktop environment, but most file managers have a compress option in the context menu. The result is a single .zip file that takes up less space than the original files combined.

ZIP compression works by removing redundant data from files and storing them in a container. It does not require you to install anything on Windows or Mac — the tools are already there. The compressed file can be extracted (unzipped) on any computer with a ZIP reader, which is why ZIP remains the most widely used compression format.

Key Takeaways

  • Windows, Mac, and Linux all include built-in tools to create ZIP files without downloading additional software.
  • Right-click on one or more files and look for "Compress," "Send to," or a similar option in the context menu.
  • ZIP files can be opened on any operating system, making them ideal for sharing files across different computers.
  • Compressing files reduces their total size, which saves storage space and makes uploading or emailing faster.

How to ZIP files on Windows

On Windows 10 and Windows 11, select the file or files you want to compress. You can select multiple files by holding Ctrl and clicking each one, or by holding Shift and clicking the first and last file in a list. Right-click on any of the selected files and look for "Send to" in the menu that appears.

Hover over "Send to" to reveal a submenu. You will see an option that says "Compressed (zipped) folder." Click it. Windows will create a new ZIP file in the same folder, usually named after the first file you selected or with a generic name like "archive.zip." You can rename it by right-clicking and choosing "Rename."

If you do not see "Send to" in your context menu, your Windows version may be older or configured differently. In that case, you can use File Explorer to navigate to the folder containing your files, select them, and use the Share tab at the top of the window to find compression options.

How to ZIP files on Mac

On Mac, select the files you want to compress in Finder. Hold Command and click each file to select multiple items, or hold Shift and click to select a range. Right-click (or Control-click) on any of the selected files.

In the menu that appears, select "Compress." Mac will create a ZIP file with the same name as the file you right-clicked, or with a name like "Archive.zip" if you selected multiple files. The new ZIP file appears in the same folder as the original files. The process is instant for most files, though very large archives may take a few seconds.

How to ZIP files on Linux

Linux does not have a single standard interface — the method depends on which file manager you use. In GNOME Files (the default on Ubuntu and many other distributions), select the files you want to compress, right-click, and look for "Compress" in the menu. A dialog box will appear asking you to name the archive and choose a format. Select ZIP from the format dropdown if it is not already selected, then click "Create."

In Dolphin (the default on KDE Plasma), right-click the selected files and choose "Compress." A submenu will show available formats — select "Compress as ZIP." In Thunar (used on Xfce), right-click and select "Compress" from the menu.

If your file manager does not have a compress option, you can use the command line. Open a terminal, navigate to the folder containing your files, and type zip archive.zip file1 file2 file3, replacing "archive.zip" with your desired filename and listing each file you want to compress. This method works on any Linux system with the zip utility installed.

Compressing folders instead of individual files

You can compress an entire folder the same way you compress individual files. Right-click the folder and select "Compress" (Mac and Linux) or "Send to" then "Compressed (zipped) folder" (Windows). The operating system will create a ZIP archive containing the folder and all its contents, including any subfolders.

This is useful when you want to send a project directory to someone else or back up a collection of related files. The folder structure is preserved inside the ZIP file, so when someone extracts it, they get the same layout of subfolders and files.

When ZIP compression saves the most space

ZIP compression works best on text files, documents, and images. A folder of Word documents or PDFs might shrink to 50 to 70 percent of its original size. Text files compress even more — a plain text file can often shrink to 10 to 20 percent of its original size.

ZIP compression is less effective on files that are already compressed, such as MP3 audio files, JPEG images, or video files. These formats use their own compression algorithms, so running them through ZIP again produces little or no size reduction. A folder of MP3 files might only shrink by 5 to 10 percent, if at all.

The total space you save also depends on how many files you are compressing. Compressing a single small text file may save only a few kilobytes, but compressing a folder with hundreds of documents can save gigabytes.

Extracting files from a ZIP archive

To open a ZIP file and extract its contents, double-click it on Windows or Mac. The operating system will automatically unzip it and place the extracted files in the same folder as the ZIP archive. On Windows, you can also right-click the ZIP file and select "Extract All" to choose a different location for the extracted files.

On Linux, right-click the ZIP file and select "Extract" or "Extract Here," depending on your file manager. The extracted files will appear in the same folder or in a subfolder, depending on how the archive was created.

Frequently Asked Questions

Does compressing to ZIP reduce quality of photos or videos?

No. ZIP is a lossless compression format, meaning it preserves all the original data. When you extract the files, they are identical to the originals. However, photos and videos are already compressed by their file formats (JPEG, MP4, etc.), so zipping them saves little to no space.

Can I password-protect a ZIP file?

Yes, but the method depends on your operating system. Windows and Mac do not offer password protection in their built-in tools. You will need a third-party program like 7-Zip (Windows), Keka (Mac), or the command line zip utility with the -e flag (Linux and Mac). Some programs let you set a password when creating the archive, while others require you to encrypt an existing ZIP file.

What is the maximum size for a ZIP file?

Standard ZIP files can theoretically hold up to 4 gigabytes per file and 16 exabytes total. In practice, most operating systems and programs handle ZIP files up to several gigabytes without problems. If you are compressing files larger than 4 GB, use ZIP64, a format extension that removes this limit. Most modern tools support ZIP64 automatically.

Why is my ZIP file almost the same size as the original files?

This usually means the files inside are already compressed. MP3s, JPEGs, PNGs, and video files use compression algorithms built into their formats, so zipping them again produces minimal size reduction. Text files, Word documents, and uncompressed images compress much more effectively.

Can I add files to a ZIP archive after creating it?

On Windows and Mac, you can drag files into an open ZIP file to add them. On Linux, this depends on your file manager — some allow drag-and-drop into ZIP files, while others require you to recreate the archive. For more control, use the command line: type zip -u archive.zip newfile to add a file to an existing archive.