Fix Unable to Expand Zip File on Mac
In this article
- Why Macs Fail to Expand Zip Files
- Fix 1: Restart Archive Utility
- Fix 2: Use the Terminal ‘unzip’ Command
- Fix 3: Re-download or Re-copy the Zip
- Fix 4: Use a Third-Party Unarchiver
- Fix 5: Check for Quarantine or Permissions Issues
- Common Misconception: “The File Is Broken, Throw It Away”
- How to Avoid This in the Future
- Frequently Asked Questions
If you see “Unable to expand ‘file.zip’ into ‘Downloads’” (error 21 or error 1) on your Mac, the fix is usually one of these: quit and reopen Archive Utility, delete the partial zip file and download it again, or use a third-party unarchiver. Below are the exact steps for each fix, plus why this happens and how to avoid it.
Why Macs Fail to Expand Zip Files
The built-in Archive Utility (the tool that runs when you double-click a zip) is simple and fast, but it has no tolerance for corrupted or incomplete files. Common causes of the “Unable to expand” error include:
- Interrupted download — the zip file is truncated, so the end-of-file marker is missing.
- Corrupted transfer — copying via USB, email, or cloud sync can introduce byte errors.
- Filename encoding issues — non-ASCII characters (e.g., Chinese, accented letters) in the zip’s internal names can trip up Archive Utility.
- Zip file is actually a different format — some files named .zip are really RAR, 7z, or a self-extracting archive.
- Gatekeeper or quarantine flags — downloaded files may be blocked if the zip contains an unsigned app.
Fix 1: Restart Archive Utility
Sometimes the utility itself gets stuck. This is the quickest thing to try:
- Open Activity Monitor (in /Applications/Utilities).
- Search for “Archive Utility” in the search box.
- Select it and click the X button in the toolbar, then choose Force Quit.
- Try double-clicking the zip again.
If that doesn’t help, restart your Mac and try again. A fresh Finder and Archive Utility process clears many transient glitches.
Fix 2: Use the Terminal ‘unzip’ Command
The command-line unzip tool is more forgiving and gives you a precise error message. Open Terminal (in /Applications/Utilities) and run:
cd ~/Downloads
unzip filename.zip
Replace filename.zip with the actual file name. If the file is corrupted, you’ll see something like End-of-central-directory signature not found. That confirms the file is incomplete. If it’s a permissions issue, you’ll see permission denied. The terminal output tells you exactly what’s wrong, which is more than the Finder error does.
Fix 3: Re-download or Re-copy the Zip
Most “unable to expand” errors come from a bad download. Do this:
- Delete the zip file from your Mac (drag to Trash, then empty Trash).
- Re-download it from the original source. If it came from a browser, use a wired connection if possible.
- If it came from email or a USB drive, copy it again, ideally to your Desktop first.
- Try expanding it immediately after the download finishes.
If the file is large (over 1 GB), a flaky Wi-Fi connection is a common culprit. Use a download manager or the browser’s built-in resume feature if the download keeps failing.
Fix 4: Use a Third-Party Unarchiver
When the built-in tool refuses, a third-party app often succeeds because it handles more formats and tolerates minor corruption. Free options include The Unarchiver and Keka. Both are available on the Mac App Store or the developer’s website. After installing, right-click the zip and choose Open With → the unarchiver app. These tools also open RAR, 7z, tar, and other formats, so they’re useful beyond this specific error.
Fix 5: Check for Quarantine or Permissions Issues
If the zip was downloaded from the internet, macOS may quarantine it. To check, right-click the zip and select Get Info. Look for “Open with” and see if there’s a warning about the file being downloaded. If the zip contains an application, Gatekeeper might block expansion. You can try:
- Right-click the zip and choose Open instead of double-clicking.
- If that fails, move the zip to your Desktop and try again.
- Check the folder where you’re expanding — make sure you have write permission (Get Info → Sharing & Permissions).
If the zip itself is read-only, copy it to a folder you own (like Documents) and try there.
Common Misconception: “The File Is Broken, Throw It Away”
Not always. A zip file can be partially recoverable. The zip command on macOS can sometimes repair a damaged archive:
zip -F damaged.zip --out repaired.zip
This attempts to fix the central directory. It’s worth trying if you can’t re-download the file. Also, some files with a .zip extension are actually RAR or 7z archives. Renaming the extension to .rar or .7z and opening with a third-party tool often works.
How to Avoid This in the Future
- Verify checksums — if the download page provides an MD5 or SHA-1 hash, check it with
md5orshasumin Terminal before expanding. - Use a download manager for large files to avoid truncation.
- Keep your Mac updated — Archive Utility bugs are fixed in macOS updates.
- Prefer .dmg or .pkg files for software installs; they’re less prone to this error.
Frequently Asked Questions
Why does my Mac say “Error 21” when expanding a zip?
Error 21 usually means the zip file is corrupted or incomplete. The most common fix is to re-download the file. If you can’t, try the Terminal repair command (zip -F) or a third-party unarchiver.
Can I expand a zip file on my iPhone or iPad?
Yes, the Files app can expand zips on iOS/iPadOS. If it fails, the file is likely corrupted. Transfer it to a Mac and try the Terminal method, or use a third-party app like WinZip or iZip.
Why can’t I expand a zip file that I created myself?
If you created the zip on a Windows PC, the issue might be filename encoding or an unsupported compression method (like legacy ZIP with encryption). Try re-zipping with “Best compression” or using a cross-platform tool like 7-Zip on Windows to create a standard zip.
What does “End-of-central-directory signature not found” mean?
It means the zip file is missing its end-of-file marker, which is a clear sign the file was cut off during download or transfer. The file is incomplete and cannot be expanded normally. Re-download it.
Is it safe to use third-party unarchivers?
Yes, if you download them from the Mac App Store or the developer’s official website. They are widely used and generally safe. Avoid downloading unarchivers from random pop-up ads or third-party download sites.
Can I expand a zip file without any extra software?
Yes, the built-in Archive Utility is enough for most files. The Terminal command unzip is also built-in. Only when those fail do you need a third-party tool.