Sweepfor Mac

Mac maintenance

How to Extract Zip Files on Mac (Including Stubborn Ones)

Most zips on Mac extract with a double-click. For password-protected, broken, or huge archives, here's what to do when the basics fail.

7 min read

Most of the time, extracting a zip on Mac is a double-click and you’re done. The Archive Utility (built into macOS) handles standard zip files automatically, drops the contents into the same folder, and gets out of the way.

The other 10% is where things get interesting. Password-protected zips, RAR files, 7z archives, broken zips, and huge multi-gigabyte archives all need different approaches. Here’s the full guide.

The default: double-click

Find the zip file in Finder. Double-click. Archive Utility opens, extracts the contents into a folder next to the zip with the same name, and quits. The original zip stays in place.

That’s it for any standard .zip file under maybe 4 GB.

If the zip contains a single folder, you get that folder. If it contains multiple files at the root, you get a folder named like the zip with everything inside.

For a quick peek without extracting, you can right-click the zip → Open With → Archive Utility, or use a tool like The Unarchiver (more on that below) that has a Quick Look-style preview.

Where the extracted files go

By default, Archive Utility extracts to the same folder as the zip. So a zip on your Desktop extracts to your Desktop.

To change this:

  1. Open Archive Utility (it lives in /System/Library/CoreServices/Applications/Archive Utility.app — open via Cmd+Shift+G in Finder, paste the path)
  2. Archive Utility → Settings (Cmd+,)
  3. Set “Save expanded files” to After expanding → Move archive to Trash (or any other action)
  4. Set “Expand archive” to extract location of your choice

Most people want extracted files to land in Downloads regardless of where the zip is. Set it once and forget about it.

Tip: Archive Utility doesn't have a Dock icon by default. Search for it in Spotlight (`Cmd+Space` → "Archive Utility") to open the settings.

Password-protected zips

Archive Utility will prompt for the password when you try to extract a password-protected zip. Enter it and extraction proceeds normally.

If you get an error like “Unable to expand” instead of a password prompt, the zip might use a non-standard encryption (AES-256 instead of legacy ZipCrypto). Archive Utility doesn’t always handle modern encryption.

The fix: install The Unarchiver (free from the App Store) or Keka (free from keka.io). Both handle the full range of zip encryption.

Or, drop to Terminal:

cd ~/Downloads
unzip protected.zip

It’ll prompt for the password. The Terminal unzip handles modern encryption better than Archive Utility in some cases.

RAR, 7z, and other formats

macOS doesn’t natively extract RAR or 7z files. Double-clicking these does nothing useful.

Options:

  • The Unarchiver (free, App Store): handles RAR, 7z, ARJ, LZH, and dozens of other formats. Set it as the default for archive types you encounter.
  • Keka (free or paid): also handles a wide range, plus can create archives in those formats
  • Terminal: unar archive.rar works after brew install unar. For 7z, brew install p7zip then 7z x archive.7z.

For occasional use, install The Unarchiver and forget about it. It silently handles every archive format you’ll likely see.

Multi-part archives (.zip.001, .r01, etc.)

Big archives are sometimes split across multiple files: archive.zip.001, archive.zip.002, etc., or for RAR, archive.r01, archive.r02.

To extract, all parts must be in the same folder. Then:

  • For zip: double-click the .001 file (or .zip.001). Archive Utility (or whichever tool) recognizes the multi-part structure and joins them.
  • For RAR: same — open the first part and the tool joins the rest.

If Archive Utility refuses, use The Unarchiver or Keka. Multi-part archives are where Apple’s built-in tool tends to fall down.

Broken or partially downloaded zips

A zip that won’t extract is usually one of:

  1. Incomplete download — verify with the source’s published file size. Re-download if mismatched.
  2. Wrong file type — sometimes a download is misnamed. Try file archive.zip in Terminal to see what it actually is.
  3. Corrupted — even minor corruption can break extraction

For corrupted zips, you can sometimes recover with unzip -F archive.zip or unzip -FF archive.zip in Terminal. The -F flag tries to fix the zip structure; -FF is more aggressive.

For RAR: unrar t archive.rar tests the archive integrity, and unrar -kb keeps broken extracted files (useful for trying to salvage what’s recoverable).

Use Terminal for big or complex extractions

For zips over a couple gigabytes, or when extracting many files, Terminal is faster than Archive Utility’s GUI:

cd ~/Downloads
unzip large.zip -d ./extracted

The -d ./extracted flag puts the contents in a folder called “extracted” instead of the current directory.

To list contents without extracting:

unzip -l archive.zip

To extract only specific files:

unzip archive.zip "*.pdf" -d extracted

This pulls only PDFs from the archive. Wildcards work for any pattern.

Less clutter, faster MacSweep clears the caches and logs slowing down everyday actions. Try Sweep free →

Inspect a zip before extracting

If you don’t trust an archive, peek inside before extracting. Use:

  • Quick Look: select the zip, press Space. Quick Look shows a list of contained files (with the right plugin or in some macOS versions) without extracting.
  • The Unarchiver: double-click and pick “View Archive” to browse without extracting
  • Terminal: unzip -l archive.zip lists contents

This matters when you’re not sure what’s in a downloaded archive — particularly anything from email or unfamiliar sources. A zip from a stranger isn’t a thing to extract blindly.

Extract specific files only

When a zip has 500 files and you only need 3:

  1. Open with The Unarchiver or Keka with their preview mode
  2. Select just the files you want
  3. Drag them out of the archive viewer into a Finder folder

Or in Terminal:

unzip archive.zip "specific/path/file.txt" -d ./extracted

This avoids extracting 500 files just to get 3 you need.

Issues with macOS quarantine

Archives downloaded from the internet are flagged with a quarantine attribute. When you extract, the extracted files may inherit that flag, which can prevent them from running if they’re executables.

To remove the quarantine flag from a folder:

xattr -d -r com.apple.quarantine ~/Downloads/extracted

Be cautious — the quarantine flag exists for security reasons. Only remove it from files you trust.

For software downloads, the more correct path is to install the software from a properly signed source rather than removing quarantine from extracted contents.

Big archives and disk space

Extracting a 10 GB archive needs at least 10 GB of free space (more, since the original archive stays around too). If you’re tight on disk:

  1. Check free space first (Apple menu → About This Mac → More Info → Storage)
  2. If low, free up some space first
  3. Or use Terminal with selective extraction to pull only the files you need

If extraction fails halfway through with disk full errors, the partial extraction is wasting space. Delete the partial folder and start over.

A near-full Mac causes all kinds of weird problems beyond extraction. Worth keeping at least 10% free at all times.

Decide on a default extractor

For most Mac users, the right setup is:

  1. Install The Unarchiver from the App Store (free)
  2. Open The Unarchiver → Preferences → check the file types you want it to handle
  3. Right-click an archive → Get Info → Open with → choose The Unarchiver → click “Change All…”

Now every archive opens with The Unarchiver, which handles the full range of formats including encrypted, multi-part, and unusual ones. Archive Utility’s quirks fade into the background.

Or if you want creation capabilities too, Keka is the equivalent recommendation — it both extracts and creates archives in many formats.

For 90% of cases, the built-in Archive Utility handles things fine. For the other 10% — encrypted, multi-part, RAR, 7z, broken — install one of the dedicated tools and you’ll never have an archive that won’t open.

← Back to all guides