Your Mac is usually great at opening ZIP files. You double click. You wait a tiny moment. Then boom. A folder appears. But sometimes macOS throws a tiny tantrum and says “Unable to expand archive” Error 640. Rude? Yes. Fixable? Also yes.

TLDR: Error 640 usually means macOS cannot unpack the archive because the file is damaged, incomplete, blocked, or in a format it does not like. First, move the archive to your Desktop, check your free space, and try again. If that fails, redownload the file or open it with a tool like The Unarchiver or Keka. You can also use Terminal commands to test and extract the archive more carefully.

What does Error 640 mean?

Error 640 is a macOS Archive Utility error. Archive Utility is the built in app that opens ZIP files and other compressed files. It works quietly in the background. Most users never even notice it.

When you see “Unable to expand archive”, macOS is saying, “I tried to unpack this thing, but something went wrong.” Error 640 is often a clue that the archive is corrupt, incomplete, or not fully supported.

Think of an archive like a suitcase. It holds your files. If the zipper is broken, the suitcase is missing a wheel, or someone taped it shut with mystery tape, your Mac may refuse to open it.

person using laptop with piano interface outdoors macbook startup screen waveform audio editing creative workspace

Common reasons this error appears

Before we fix it, let us meet the usual suspects.

  • The download did not finish. The file may look complete, but it is not.
  • The archive is corrupted. Something went wrong when it was created or sent.
  • The format is strange. Some ZIP files are made with features macOS does not handle well.
  • The file is password protected. Archive Utility can be picky with encrypted archives.
  • There is not enough disk space. Your Mac needs room to unpack the files.
  • The file name is messy. Very long names or odd symbols can cause trouble.
  • Permissions are wrong. Your user account may not have access.
  • The archive is split into parts. One missing part can ruin the whole party.

Step 1: Try the simple double click again

Yes, this sounds silly. But start simple.

Close the error message. Wait a few seconds. Then double click the archive again. Sometimes Archive Utility trips over itself. A second try may work.

If that fails, do not rage click. Rage clicking never fixed a ZIP file. It only makes your mouse question its life choices.

Step 2: Move the archive to your Desktop

Move the file to your Desktop. Then try to expand it there.

This helps because the original location may have weird permissions. It may be inside a cloud folder. It may be in Downloads while a browser or sync app is still touching it.

  1. Drag the archive to the Desktop.
  2. Right click the archive.
  3. Choose Open With.
  4. Select Archive Utility.

If it opens, great. Your Mac just needed a calmer place to work.

Step 3: Check your storage space

An archive is smaller than the files inside it. That is the whole point. So your Mac needs extra free space to expand it.

A 2 GB ZIP file might become 6 GB after extraction. A massive photo archive might get even bigger. Macs dislike surprises when storage is low.

To check free space:

  1. Click the Apple menu.
  2. Choose System Settings.
  3. Go to General.
  4. Click Storage.

If your Mac is almost full, clear space first. Empty the Trash. Remove old downloads. Move large videos to an external drive. Then try again.

Step 4: Redownload the archive

This is the big one. Many Error 640 cases happen because the file is incomplete.

The download may have stopped early. The browser may have timed out. Wi-Fi may have had a tiny panic attack. The file may still have the right name, but the inside is broken.

Try this:

  • Delete the current archive.
  • Download it again from the original source.
  • Use a stable Wi-Fi connection.
  • Avoid putting your Mac to sleep during the download.
  • If possible, use another browser.

If the second download works, the first file was the villain. Case closed. Cue tiny detective hat.

black and gray computer keyboard iphone control center screen cellular signal bars wifi icon

Step 5: Check the file size

If someone sent you the archive, ask them for the expected file size. Then compare it with your copy.

To check file size:

  1. Click the archive once.
  2. Press Command + I.
  3. Look at Size.

If your file is smaller than expected, it is incomplete. Redownload it or ask the sender to send it again.

This is especially useful for large ZIP files, app bundles, game files, photo collections, and backup archives.

Step 6: Try a different app

Archive Utility is handy. But it is also basic. Sometimes it meets a fancy archive and says, “No thank you.”

Try a third party extraction app. Good options include:

  • The Unarchiver
  • Keka
  • BetterZip

These apps can often open archives that macOS cannot. They handle more formats. They also deal better with password protected files and odd compression methods.

After installing one, right click the archive. Choose Open With. Pick the new app. Then let it do its magic.

Step 7: Use Terminal to test the archive

Now we bring out Terminal. Do not worry. It is not a dragon. It just looks like one.

Terminal can tell you whether a ZIP file is damaged. Open Terminal from Applications > Utilities. Then type:

unzip -t 

Now drag the ZIP file into the Terminal window. This adds the file path. Press Return.

The command will test the archive. If it says something like “No errors detected”, the ZIP is probably okay. If it reports missing bytes, bad signatures, or an unexpected end of file, the archive is damaged.

You can also try extracting with Terminal:

unzip archive.zip -d ~/Desktop/extracted

Replace archive.zip with your actual file path. Or drag the file into Terminal after typing unzip .

Terminal sometimes gives clearer error messages than the normal pop up. That makes it useful for solving the mystery.

Step 8: Try the ditto command

macOS has another extraction command called ditto. It can be surprisingly helpful.

Use this format:

ditto -x -k archive.zip ~/Desktop/extracted

Again, you can drag the ZIP file into Terminal to avoid typing the path. You can also create a folder on your Desktop named extracted first.

If ditto works, Archive Utility was the problem. If ditto fails too, the archive itself may be broken.

Step 9: Check permissions

Your Mac may not have permission to read or write in the folder where the archive sits. This can happen on shared drives, external drives, network folders, or copied files.

Try this:

  1. Click the archive once.
  2. Press Command + I.
  3. Open Sharing & Permissions.
  4. Make sure your user has Read & Write access.

If needed, click the lock icon. Enter your Mac password. Change the permission.

You can also copy the archive to your Desktop. That often avoids permission drama.

Step 10: Look for split archive parts

Some large archives are split into pieces. They may look like this:

  • file.zip
  • file.z01
  • file.z02

Or like this:

  • archive.part1.rar
  • archive.part2.rar
  • archive.part3.rar

If one part is missing, the archive will not open. All parts need to be in the same folder. Then open the first part only.

This is like making a sandwich. If you only have bread and lettuce, but the cheese is in another folder, lunch fails.

Step 11: Remove quarantine attributes

macOS sometimes marks downloaded files with a security label called a quarantine attribute. This is usually helpful. But once in a while, it causes problems.

You can remove it with Terminal. Use this command carefully:

xattr -d com.apple.quarantine 

Then drag the archive into Terminal and press Return.

After that, try expanding the archive again.

Only do this for files you trust. If the file came from a strange website, do not force it open. Your Mac is not being dramatic for no reason. Sometimes it is protecting you.

an apple logo is shown on a black background terminal window security shield zip file macos

Step 12: Rename the file

Odd file names can cause odd problems. This includes very long names, emojis, slashes, special symbols, or characters from another system.

Try a simple name:

archive.zip

Move it to the Desktop. Then try again.

Yes, a file named Final final NEW version client approved maybe use this one!!!.zip may upset your Mac. Honestly, it upsets everyone.

Step 13: Ask for a new archive

If someone made the archive for you, ask them to create it again. Tell them to use a standard ZIP format.

They can do this on macOS by selecting the folder, right clicking it, and choosing Compress. This creates a simple ZIP file that Macs usually like.

If they are on Windows, ask them to use normal ZIP compression. They should avoid unusual encryption or experimental compression settings.

Step 14: Restart your Mac

Yes, the classic move. But it works more often than we want to admit.

Restarting clears stuck processes. It resets Archive Utility. It gives your Mac a fresh little brain stretch.

After restarting, try to expand the archive again from the Desktop.

Step 15: Update macOS

If many archives fail, not just one, your system may have a bug. Check for updates.

  1. Open System Settings.
  2. Go to General.
  3. Click Software Update.
  4. Install any available update.

Updates can fix file handling bugs and security issues. They may also improve Archive Utility behavior.

Quick troubleshooting checklist

Here is the fast path. Try these in order:

  1. Move the archive to the Desktop.
  2. Check free storage space.
  3. Redownload the file.
  4. Rename it to something simple.
  5. Try The Unarchiver or Keka.
  6. Test it with Terminal using unzip -t.
  7. Check for missing split archive parts.
  8. Ask the sender to recreate the archive.

When should you give up on the file?

Sometimes the archive is simply broken. No amount of clicking, chanting, or glaring will fix it.

You should request a new copy if:

  • The file is smaller than expected.
  • Terminal says the archive has missing bytes.
  • Several apps fail to open it.
  • The sender can open their original, but your copy cannot.
  • The download fails every time at the same size.

In that case, the file is not being stubborn. It is damaged. Get a fresh copy.

Final thoughts

The “Unable to expand archive” Error 640 message looks scary. But it is usually not a disaster. Most of the time, the archive is incomplete, corrupted, blocked, or just too fancy for Archive Utility.

Start with the easy fixes. Move it to the Desktop. Check storage. Redownload it. Then try another app. If needed, use Terminal for better clues.

And remember. Your Mac is not judging you. It is just confused by a tiny digital suitcase with a broken zipper.

About the Author

WP Webify

WP Webify

Editorial Staff at WP Webify is a team of WordPress experts led by Peter Nilsson. Peter Nilsson is the founder of WP Webify. He is a big fan of WordPress and loves to write about WordPress.

View All Articles