AjapaReporter

Computers & internet · Updated

How to Zip a Folder on a Mac (Finder & Terminal)

Time it takes2 min
Steps4in the list below
LevelEasyno special skills
Official sourceApple Supportcheck it for changes

Quick answer To zip a folder on a Mac, right-click (or Control-click) the folder in Finder and choose “Compress [folder name].” This creates a .zip file with the same name in the same location.

Why Zip a Folder at All?

Zipping a folder does two things at once: it bundles many files and subfolders into a single file, and it shrinks the total size. That single file is much easier to attach to an email, upload to a web form, or move between computers. The size reduction happens because the zip format looks for repeated patterns in the data and stores them more efficiently. Text files, spreadsheets, and documents often compress to a fraction of their original size. Already-compressed files like JPEG images, MP4 videos, and MP3 audio barely shrink because they already use compression internally. So if you zip a folder full of photos, do not expect a dramatic size drop—but you still get the convenience of one file.

What You Need Before You Start

Zipping is built into macOS, so you do not need to install anything. You only need:

  • A Mac running macOS (any recent version, from Catalina to Sonoma and later).
  • The folder you want to zip, stored anywhere you can see it in Finder.
  • Enough free disk space for the original folder and the new zip file (they coexist until you delete the original).

There is no limit to the number of files or the total size that Finder’s Compress command can handle, but very large folders (several gigabytes) may take a while and need space for both the originals and the archive.

How to Zip a Folder in Finder (Step by Step)

Finder is the file manager on your Mac—the app with the smiling face icon. The Compress command is the simplest method and works on any folder.

  1. Locate the folder in Finder. Open a Finder window and navigate to where the folder lives, such as your Desktop, Documents, or Downloads.
  2. Right-click (or Control-click) the folder. If you have a trackpad, use two fingers to tap. If you have a mouse, click the right button. A context menu appears.
  3. Choose “Compress [folder name]” from the menu. The menu item shows the folder’s actual name, for example “Compress Vacation Photos.”
  4. Wait for the zip file to appear. A file named “[folder name].zip” appears in the same location. The time depends on the folder’s size and your Mac’s speed. When it finishes, you can delete the original folder if you wish, but keep the zip.

That is the entire process. The zip file uses the same name as the original folder, so if you already have a file with that name in the same place, macOS will ask if you want to replace it.

How to Zip a Folder Using Terminal (Advanced)

If you prefer the command line or need more control, Terminal gives you the same result with additional options. Open Terminal (in /Applications/Utilities) and use the zip command:

zip -r archiveName.zip /path/to/folder

The -r flag means “recursive,” which includes all subfolders and files. For example, to zip a folder named “Reports” on your Desktop, you would type:

zip -r ~/Desktop/Reports.zip ~/Desktop/Reports

This creates Reports.zip on your Desktop. Terminal also lets you exclude files, add a password, or split the archive into smaller parts. For everyday use, Finder is easier, but Terminal is handy when you need to zip many folders with a script or want to avoid the Finder context menu.

What to Check Before You Zip

Before you compress, take a moment to check a few things:

  • File permissions: If the folder contains files with special permissions (like scripts or executables), zipping from Finder may not preserve them perfectly. Terminal’s zip command preserves Unix permissions better.
  • Hidden files: Finder’s Compress includes hidden files (those starting with a dot) if they are inside the folder. Terminal’s zip also includes them by default.
  • Disk space: The zip file needs space equal to the compressed size. For a 10 GB folder, you might need 5–10 GB free, depending on how compressible the data is.
  • Name conflicts: If a file with the same name as the zip already exists, macOS will ask before replacing. Choose “Keep Both” if you want to avoid overwriting.

Common Problems and How to Fix Them

Most zipping goes smoothly, but a few issues can pop up.

  • “Compress” is grayed out: This happens if the folder is on a disk that does not support the operation (like some network drives) or if you do not have write permission. Copy the folder to your Desktop first, then compress.
  • The zip file is huge: If the folder contains many already-compressed files (like MP4s), the zip will be almost as large as the originals. That is normal. You can try using “Compress” anyway, but do not expect much shrinkage.
  • The zip file is corrupted when opened on another computer: Usually this means the download was interrupted or the zip was created on a filesystem with special characters. Try re-zipping with Terminal using zip -r and avoid non-ASCII characters in file names.
  • You cannot see the zip file after compressing: It appears in the same folder as the original. If you do not see it, check that you are looking at the correct folder and that Finder is set to show all files (press Command+Shift+. to toggle hidden files).

How to Unzip a Zip File on a Mac

Unzipping is just as easy. Double-click the zip file in Finder, and macOS automatically extracts it into a folder with the same name (minus the .zip). If you want to extract to a specific location, right-click the zip and choose “Open With” then “Archive Utility.” You can also use Terminal with unzip archive.zip. The built-in Archive Utility handles most zip files, including those with passwords (it will prompt you). If you receive a zip that will not open, try a third-party app like The Unarchiver, but for most everyday use, the built-in tools are enough.

How to Password-Protect a Zip on a Mac

Finder’s Compress does not offer a password option. To protect a zip with a password, you need Terminal or a third-party tool. In Terminal, use the zip command with the -e flag:

zip -e -r secret.zip /path/to/folder

Terminal will ask you to enter and verify a password. The resulting zip requires that password to open. Note that this uses ZipCrypto encryption, which is not the strongest, but it is fine for casual protection. For stronger encryption, you could use a tool like Keka (free) or the built-in “Encrypt” option in Disk Utility, which creates an encrypted disk image (.dmg) instead of a zip. A .dmg is not a zip, but it serves a similar purpose for secure sharing.

Zip vs. Other Compression Formats on Mac

Zip is the most universal format—Windows, Linux, and macOS all handle it natively. But macOS also supports other formats:

  • ZIP (.zip): Best for sharing with anyone, as it is supported everywhere.
  • GZIP (.gz): Often used for single files, especially in Unix/Linux contexts. macOS can open it with Archive Utility.
  • 7-Zip (.7z): Better compression ratio, but requires third-party software on Mac (like Keka or The Unarchiver).
  • Disk Image (.dmg): Not a compression format per se, but it can compress and encrypt. Useful for distributing apps or creating secure containers.

For most users, sticking with .zip is the safest choice because it works everywhere without extra software.

Frequently Asked Questions

Does zipping a folder on a Mac lose any data?

No. Zipping is lossless, meaning the files inside come out exactly as they were. The zip file is just a container that stores the original data in a more compact way. When you unzip, you get identical files.

Can I zip multiple folders into one zip file?

Yes. In Finder, select multiple folders (hold Command and click each one), then right-click and choose “Compress N Items.” This creates a zip file named “Archive.zip” (or similar) that contains all the selected folders. In Terminal, you can list multiple paths in the zip command.

Why is my zip file still large?

Because the folder contains files that are already compressed, such as JPEG images, MP4 videos, or MP3 audio. These formats do not compress further. The zip file will be roughly the size of the original folder, plus a small overhead.

How do I zip a folder on a Mac without using the right-click menu?

You can use Terminal as described above, or you can use the menu bar: select the folder in Finder, then click File > Compress “[folder name]” from the top menu. This works the same as right-clicking.

Can I zip a folder that is on iCloud Drive?

Yes, but macOS may download the files first if they are not already on your Mac. The compression process will download the necessary data, which can take time for large folders. It is often faster to move the folder to your Desktop first.

Is there a way to zip a folder on a Mac for free?

Yes, the built-in Compress feature is completely free and requires no additional software. Terminal’s zip command is also free. Third-party apps like Keka are free as well, but not necessary for basic zipping.

Sources: Apple Support. Menus and buttons can differ slightly by version. Spotted something out of date? Tell us.