How to Compress Files on Mac

Mac compress zip files illustration

macOS can compress files and folders into standard ZIP archives without installing anything. A ZIP can bundle multiple files into one attachment and may reduce size depending on the file types.

This guide applies to macOS on any Mac.

Does This Affect You?

Use Finder for normal ZIP files. Use Terminal when you need password protection, scripting, or exclusions such as hidden Mac metadata files.

Compress with Finder

  1. Open Finder and select the file, folder, or multiple items.
  2. Use Command-click for separate items or Shift-click for a range.
  3. Right-click or Control-click the selection.
  4. Choose Compress, Compress “[name]”, or Compress X Items.
  5. A ZIP file appears in the same folder. Rename it if needed.

Compress with Terminal

  1. Open Terminal.
  2. Move to the folder containing the item, such as cd ~/Desktop.
  3. Run zip -r Project.zip Project, replacing the names with your archive name and folder.
  4. The -r option includes everything inside the folder.
  5. Wait for Terminal to return to the prompt.

ZIP Notes

Add a Password

Finder does not offer ZIP passwords. In Terminal, use zip -er Project.zip Project and enter a password when prompted.

Some Files Barely Shrink

Photos, videos, PDFs, and existing archives are often already compressed. Text-heavy folders and many small files usually shrink more.

Windows Compatibility

Mac ZIP files open on Windows, but may include hidden files such as .DS_Store. Use zip -r Project.zip Project -x "*.DS_Store" if you want to exclude those.

Sources

  • Apple Support: Zip and unzip files and folders on Mac
  • Apple Support: Use Terminal on Mac
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart