Fixing “Unable to expand” ZIP errors on Mac
The error comes from Archive Utility, and the number is a generic system code rather than a precise diagnosis. Most often the ZIP is incomplete or damaged, isn’t really a ZIP, or uses a feature Archive Utility doesn’t support. Re-download it, then try unzip in Terminal or another archiver.
When Archive Utility can’t open a ZIP, it shows a message like:
Unable to expand “Photos.zip” into “Downloads”. (Error 1 - Operation not permitted.)
The number and text are standard macOS system error codes, not a detailed diagnosis, so the same error can have several causes. In most cases the ZIP is incomplete or damaged, isn’t really a ZIP, or uses a feature Archive Utility doesn’t support. The fixes below, in order, solve nearly all of them: download the file again, then try a different tool.
What the error numbers say
| Message | What the code means | Often caused by |
|---|---|---|
| Error 1: Operation not permitted | An operation was refused | Incomplete or damaged ZIP; very large archives or features Archive Utility doesn’t support; a destination it can’t write to |
| Error 2: No such file or directory | A file or folder it expected wasn’t there | Incomplete or damaged ZIP; the archive moved, renamed or deleted while expanding |
| Error 79: Inappropriate file type or format | The data isn’t in a format it recognises | The file isn’t a ZIP (a web page, a RAR or 7z renamed .zip), or the download stopped early |
Take the “often caused by” column as likely, not certain. The same message can appear for different reasons, which is why trying another tool is the most useful step.
A related symptom: instead of an error, double-clicking the ZIP produces a .cpgz file, and double-clicking that gives you a ZIP again. That loop is Archive Utility failing to read the ZIP; treat it like the errors above.
Usual causes
The download is incomplete
This is the most common reason. A download that was interrupted, still in progress, or cut off by a flaky connection leaves a ZIP whose end is missing, and the end of a ZIP holds its table of contents. In Safari, a download still in progress has a .download extension.
Compare the file size (select it and press Command-I) with the size shown on the site you downloaded it from. If it’s smaller, the file is incomplete.
The file isn’t a ZIP
Sometimes a site sends an error page or a login page instead of the file, and your browser saves it with the .zip name. Or someone renamed a RAR or 7z file to .zip. Terminal’s file command reads the start of the file and tells you what it really is:
file ~/Downloads/Photos.zip
“Zip archive data” means it’s a ZIP. “HTML document” means you downloaded a web page: go back and download again, signed in if needed. “RAR archive data” or “7-zip archive data” means it needs a tool that reads that format, such as the OpenRAR browser tool.
Large archives and features Archive Utility doesn’t handle
ZIP has been extended many times since the 1980s. Archives made on Windows or by server software may use features that Archive Utility handles badly or not at all, such as AES encryption (see Password-protected ZIP on Mac) or unusual compression methods. Very large archives, over 4 GB or with tens of thousands of files, use the ZIP64 extension and are a frequent source of reports too. Another tool often opens these without complaint.
The disk is full or the folder isn’t writable
Expanding needs room for the full unpacked size, which can be several times the ZIP. Check free space in System Settings › General › Storage. If the ZIP sits on an external drive, a network share or a drive formatted for Windows (macOS can’t write to NTFS drives on its own), copy it to a folder on your Mac, such as the Desktop, and expand it there.
Fixes, in order
1. Download it again
Delete the ZIP, download it again, and wait until the download has fully finished. If the site offers a checksum, compare it. If the same error comes back with a fresh copy, the problem is the archive or Archive Utility, not the download.
2. Try unzip in Terminal
The unzip command built into macOS is a separate program from Archive Utility and handles some ZIPs that Archive Utility rejects, including large ZIP64 archives. Test the archive first:
cd ~/Downloads
unzip -t Photos.zip
It reports each file as OK or names the ones with errors. Then extract into a new folder:
unzip Photos.zip -d ~/Desktop/Photos
If some files are damaged, unzip still extracts the rest. If it says “unsupported compression method 99”, the ZIP is AES-encrypted and needs another tool.
3. Try ditto
ditto is another built-in command that can expand ZIPs, and it’s worth a try when unzip fails:
ditto -x -k Photos.zip ~/Desktop/Photos
4. Use another archiver
- openrar.app opens ZIP, including password-protected and split ZIP, in your browser, along with RAR, 7z, TAR and more. It lists the files with their folders and sizes, and lets you save them one by one or as a new ZIP. Nothing is uploaded. Archives up to about 2 GB on a computer.
- The Unarchiver and Keka are popular Mac archivers that don’t rely on Archive Utility.
- OpenRAR for Mac opens ZIP (AES-256 and ZipCrypto), RAR, 7z and split archives, including archives of several gigabytes, and is free for personal use.
Because each of these reads ZIP differently from Archive Utility, one of them often succeeds where it failed.
5. Try to repair a damaged ZIP
If every tool fails, Terminal’s zip can attempt a repair, writing a new archive and leaving the original untouched:
zip -FF Photos.zip --out Photos-fixed.zip
Then try unzip on the fixed copy. This recovers what’s still intact; it can’t bring back data that was never downloaded. For RAR files, Fixing a corrupt RAR file covers the equivalent steps.
6. Ask the sender
If nothing works on a fresh download, the archive was probably damaged when it was made or uploaded. Ask the sender to create it again, or to send it in another way. If they’re on a Mac, Compressing files on a Mac shows how to make a ZIP that opens everywhere.
For more on Archive Utility itself, including its settings, see Archive Utility, the Mac’s built-in archiver.