How to Zip and Unzip Files on Mac (2026): Compress, Extract & Open RAR Files

Quick answer: To zip files on a Mac, select them in Finder, right-click, and choose Compress. To unzip, just double-click the .zip file — it expands into the same folder. No extra software needed for standard zips; for RAR and 7Z you need a free app like The Unarchiver.

How to zip a file or folder on Mac

  1. Open Finder and find the file or folder you want to compress.
  2. Right-click it (or Ctrl-click, or two-finger tap on the trackpad).
  3. Choose Compress "name" from the menu.
  4. macOS creates a .zip file in the same folder, leaving the original untouched.

To zip multiple files at once, click one file, then hold Command (⌘) and click each additional file — or press ⌘A to select everything in the folder. Right-click any selected file and choose Compress. When you compress more than one item, macOS names the result Archive.zip; rename it before sending so the recipient knows what is inside. (New to ⌘-selecting? Our Mac keyboard shortcuts guide covers the 30 shortcuts worth learning first.)

How to unzip a file on Mac

Double-click the .zip file. That is the whole process. The built-in Archive Utility expands it into the same folder as the zip. The original .zip stays where it was — you can delete it after extraction to save space.

If double-clicking opens the wrong app (this happens when a third-party tool hijacked the file type), right-click the zip and choose Open With → Archive Utility.

How to open RAR, 7Z, and other formats

macOS cannot open .rar or .7z files out of the box. Two free, safe options:

  • The Unarchiver (free, Mac App Store) — handles RAR, 7Z, TAR, GZIP, and dozens of obscure formats. Install it, then double-click the archive like a zip.
  • Keka (free from keka.io, paid on the App Store) — also creates 7Z and password-protected archives with a drag-and-drop window.

Avoid random "RAR opener" apps that charge a subscription — the two above have been the standard answers for years.

How to password-protect a zip on Mac

Finder's Compress option cannot add a password. Use Terminal (Applications → Utilities → Terminal):

  1. Type cd followed by a space, drag the folder containing your file into the Terminal window, and press Return.
  2. Type zip -er secure.zip yourfile.pdf (swap in your own file or folder name) and press Return.
  3. Enter a password twice when prompted. The result, secure.zip, asks for that password on extraction — on any operating system.

If Terminal feels like too much, Keka does the same thing with a checkbox.

Why zip files at all?

  • Email limits: most mail providers cap attachments around 20-25 MB. Zipping text-heavy files (documents, spreadsheets, logs) often shrinks them 60-80%. Photos and video barely compress — they are already compressed formats.
  • One attachment instead of forty: a zipped folder keeps its structure intact on the other end.
  • Storage: archiving old projects into zips is a quick win when your drive is filling up — see our MacBook storage full fix guide for the rest of the checklist.

Troubleshooting: zip won't open on Mac

"Unable to expand" (Error 1 / Error 79 – invalid argument)

Nine times out of ten the download is incomplete or corrupt. Re-download the file first. If it persists, the zip was likely made with a tool that used a non-standard format — Archive Utility is strict. Install The Unarchiver and open it with that instead; it tolerates malformed archives far better.

Error 22 – invalid argument

Usually a zip larger than 4 GB created by an old tool without ZIP64 support, or a file with characters macOS dislikes. The Unarchiver or Keka will typically open it; as a last resort, Terminal's ditto -xk archive.zip destination succeeds where Archive Utility fails.

The zip opens but files inside are garbled

Filenames made on Windows with non-English characters can scramble. The Unarchiver has an encoding auto-detect that fixes this — Archive Utility does not.

Zip is on an external drive that isn't showing up

That is a drive problem, not a zip problem — run through our external drive not showing up guide first.

FAQ

Does unzipping delete the original zip file?

No. The zip remains next to the extracted files. Delete it manually if you no longer need it.

How do I unzip to a different folder?

Move the zip to the destination folder first, then double-click it. (Archive Utility's preferences can set a fixed extraction folder, but moving the zip is faster for one-offs.)

Can I preview what's inside a zip without extracting?

Not with the built-in tools. Keka and The Unarchiver can list contents; otherwise just extract — it is non-destructive.

Do zip files work between Mac and Windows?

Yes, zip is universal. You may see harmless extra items like __MACOSX folders or .DS_Store files on the Windows side — recipients can ignore or delete them.

My Mac is too slow to even unzip large archives — is it dying?

Slow extraction on a spinning hard drive or a Mac starved of free space is common — our MacBook running slow guide walks through the real causes.

Questions about a Mac that fights you on basic tasks? Ask Rick, our AI Mac expert, any time on luxuriouscomputers.com — or browse all guides →

Ready for a Mac that just works?

Every refurbished Mac from LuxuriousComputers comes with a 1-year warranty, 30-day returns, and saves you up to 55% vs retail.