Skip to main content
coreydaley.dev

"Error 94 - Bad message" unzipping on a Mac: how to fix it

When Archive Utility can’t expand a ZIP, it sometimes says:

Unable to expand “file.zip” into “Downloads”. (Error 94 - Bad message.)

Error 94 means the ZIP is damaged. “Bad message” is macOS’s general name for data that doesn’t decode the way it should. In a ZIP, that means the compressed data inside is corrupted, or the file was cut off before it ended. On macOS 27, I got Error 94 from both: a ZIP with a few bytes changed inside one file, and a ZIP that stopped two-thirds of the way through.

Either way, Archive Utility gives up and extracts nothing, not even the files that are fine.

First: download it again

Damaged ZIPs are usually damaged on the way to you: a download that stopped early, a flaky connection, or a file that was broken when it was uploaded.

  1. Download it again, ideally in a different browser.
  2. Compare the size with what the website or the sender says it should be. A smaller file was cut off.
  3. If a fresh copy gives the same error, the file itself is damaged. Ask the sender for a new one.

See what’s actually wrong

Terminal’s unzip can test the archive without extracting it, and tells you which file is the problem:

unzip -t ~/Downloads/file.zip

If the name has spaces, type unzip -t and drag the ZIP into the Terminal window instead of typing the path.

  • One file says bad CRC or invalid compressed data to inflate, and the rest say OK: that file is damaged, and the others are fine.
  • cannot find zipfile directory: the end of the ZIP is missing. Usually the download was cut off. It’s also what you see when the file isn’t really a ZIP (a web page saved with a .zip name, for example) or is one part of a split archive.

Get back the files that are still intact

If you can’t get a fresh copy, you can still recover the files that weren’t damaged. Archive Utility won’t, but the tools that come with every Mac will.

If one or two files are damaged, unzip extracts everything:

mkdir -p ~/Desktop/recovered
unzip ~/Downloads/file.zip -d ~/Desktop/recovered

It reports an error for each damaged file. Don’t trust any file it names with bad CRC or another error: depending on the damage, it may be empty, cut short, or full size with the wrong contents. Delete those. Every file it extracts without an error is intact.

If the ZIP was cut off, rebuild its index first with zip -FF, then extract the rebuilt copy:

zip -FF ~/Downloads/file.zip --out ~/Desktop/file-fixed.zip
mkdir -p ~/Desktop/recovered
unzip ~/Desktop/file-fixed.zip -d ~/Desktop/recovered

zip -FF asks “Is this a single-disk archive?”. Type y and press Return. It replaces file-fixed.zip without asking if one already exists. In my tests, every file stored before the cut came back intact. The file the cut went through came out empty or cut short, with an error from unzip, and anything after the cut was gone.

Avoid tar for this. The built-in tar can also read ZIPs, but when it hits a damaged file it writes it at full size with the wrong contents, and it may stop there, leaving out the files after it. The damaged file looks complete and isn’t.

With Purrchiver

New in Purrchiver 1.1. If you don't see it, update Purrchiver from the App Store.

When a ZIP won’t open because it’s damaged or only partly downloaded, Purrchiver offers to recover whatever is still readable, for free. Recovered files go into a new “(recovered)” folder, a file that only came back in part is named “(incomplete)”, and a summary lists what happened to each file it found. It can also save a repaired ZIP that holds every file that came back intact, so other apps can open it. The damaged ZIP itself is never changed. See Repair a damaged or corrupt archive.