Skip to main content
All articles

How to Unzip a File on Mac (And What to Do With It After)

macOSzip filesfile managementtutorialsunzip

You downloaded something, it landed in your Downloads folder, and it has a little zipper icon and a .zip on the end. So how do you unzip a file on Mac? The good news is that it is genuinely simple - in most cases it is a single double-click. The slightly less good news is that when it goes wrong, macOS tells you almost nothing useful about why. So this is the full picture: the fast way, the troubleshooting for when the fast way fails, and what to actually do with the contents once they are out.

The fast way - just double-click it

Find the .zip file in Finder, double-click it, done.

Behind the scenes, macOS hands the file to a small built-in app called Archive Utility. You will not see it open a window or ask you anything - it just runs, extracts the contents, and quits. A second or two later, the unzipped file or folder appears right next to the original .zip, in the same folder.

That last bit matters. macOS does not move your extracted files anywhere clever. If the zip was in Downloads, the contents land in Downloads. And it keeps the original .zip - it does not delete it. So you will end up with both: report.zip and report sitting side by side. Once you have checked the extracted version is fine, you can drag the .zip to the Trash yourself.

One detail worth knowing: if the zip contains a single file, you get that single file. If it contains multiple files, macOS wraps them in a new folder named after the archive, so nothing scatters loose across your Downloads.

That covers unzipping a file on a MacBook in one paragraph. For most people, most of the time, that is the whole job. The rest of this is for when it is not.

How to unzip a file on Mac: change the default destination

Unzipping a file on Mac lands the contents in the same directory as the archive by default. Fine if your zip lives somewhere tidy. Less fine if, like most of us, your Downloads folder is an archaeological dig.

You can change that default. Archive Utility is a real app, it just hides itself well. Open Spotlight (Cmd+Space), type "Archive Utility", and launch it. Then go to the menu bar: Archive Utility > Settings (older macOS calls it Preferences).

In there you can set "Save expanded files" to a folder of your choosing - say, a dedicated "Unzipped" folder on your Desktop - instead of "into the same folder as the archive". You can also tell it what to do with the original zip afterwards: leave it, move it to Trash, or delete it. If you unzip things constantly, setting this once saves a lot of tidying later.

Unzip with right-click "Open With"

Double-clicking usually works, but sometimes another app has claimed the .zip extension - a download manager, or a third-party archiver you installed and forgot about. When that happens, double-clicking opens the wrong thing.

The fix is to be explicit. Control-click (or right-click) the file, choose Open With, and pick Archive Utility from the list. Same result as a double-click, you have just told macOS exactly which app to use rather than letting it guess. Handy when a few archiving tools are fighting over the file type.

Unzip a file using Terminal

If you have been around computers long enough, you will reach for the command line eventually - and for zip files it is genuinely the most reliable tool on the Mac. The unzip command has shipped with macOS forever. I have used it on everything from old PHP deployments to copying a config off a Raspberry Pi that was being awkward over the network.

To extract a zip on Mac from the command line, open Terminal (Spotlight, type "Terminal"), then move to wherever the zip lives:

cd ~/Downloads
unzip archive.zip

That extracts everything into the current folder. To send the contents somewhere specific instead, use -d:

unzip archive.zip -d ~/Desktop/extracted

And before you commit to extracting a mystery archive, you can peek inside without unpacking anything:

unzip -l archive.zip

The -l flag just lists the contents - filenames, sizes, dates. Useful for checking a zip is not about to scatter a few thousand files all over your Desktop.

The real reason to keep Terminal in your back pocket: when Archive Utility fails, it does so silently. Terminal does not. It prints the actual error - a bad CRC, a truncated file, an unsupported encryption method. That alone often tells you exactly what is wrong, which brings us neatly to the two things every other tutorial skips.

How to open a password-protected zip on Mac

Archive Utility's support for encrypted zips is unreliable. Sometimes you double-click and get a tidy password dialog, often it just fails quietly with a vague "unable to expand" and no mention of a password anywhere. AES-encrypted zips - the stronger encryption a lot of tools now use by default - are where it falls over most consistently. I would not rely on it.

Terminal is the reliable fallback. Run unzip on an encrypted archive and it will prompt you for the password directly:

unzip secret.zip

It will print [secret.zip] password: and wait. Type it (the cursor will not move - that is normal, it is hiding your keystrokes) and press Return.

If even that struggles - older AES schemes can defeat the built-in unzip - then a third-party tool will sort it. The Unarchiver and Keka both handle encrypted zips properly and will simply ask for the password in a normal dialog. More on those in a moment.

Fixing the "unable to expand" error

This is the one that sends people to Google. You double-click a zip and macOS throws up: "Unable to expand 'filename.zip' into 'Downloads'. (Error 1)" - or Error 79, or no number at all. Thanks, macOS. Very informative.

It is not one problem, it is four wearing the same coat:

  1. An incomplete download. The most common cause by a mile. The connection dropped partway, so you have got half a zip. It looks like a file, it just is not all there.
  2. A genuinely corrupt archive. The zip was damaged when it was created or somewhere in transit.
  3. It is encrypted. Archive Utility cannot deal with the encryption (see the section above) and bails without mentioning a password.
  4. It is not actually a zip. The file has a .zip extension but the contents are something else - a .rar, a disk image, or a renamed file. The extension is lying to you.

Here is how I work through it:

Re-download it first. If the source is still available, just grab it again. This fixes the incomplete-download case, which is most of them, and costs you thirty seconds.

Open it in Terminal to see the real error. Run unzip filename.zip. Whatever it prints is the actual diagnosis - "End-of-central-directory signature not found" means truncated or not-a-zip; a password prompt means it was encrypted all along.

Check what the file really is. This command tells you the true file type regardless of the extension:

file ~/Downloads/filename.zip

If it comes back saying Zip archive data, good. If it says RAR archive data or gzip compressed data, you have found your culprit - it needs a different tool, not a different zip.

Reach for The Unarchiver or Keka. They are simply more tolerant of slightly malformed archives than Archive Utility is, and will often extract what is salvageable from a zip that macOS refused outright.

Third-party unzip tools worth installing

You do not need anything beyond Archive Utility for ordinary zips. But two free tools cover the gaps, and I would not run a Mac without one of them.

The Unarchiver is free on the Mac App Store. Install it, let it become the default for archives, and it quietly handles RAR, 7z, and a long list of formats Archive Utility cannot touch. It is the most painless way to unzip RAR files on a Mac, and it has been a steady recommendation for well over a decade.

Keka is the other one - free direct from the developer, or a small fee on the App Store to support the project. Keka both extracts and creates archives, including properly encrypted ones, which Archive Utility flatly cannot do. If you ever need to make a password-protected zip rather than just open one, Keka is the tool.

Worth saying plainly: macOS cannot open .rar files on its own. RAR is a proprietary format, so there is nothing built in for it. If you have got a .rar, you need The Unarchiver or Keka - there is no Apple-supplied route.

It's unzipped - now what?

So the folder is open. What is actually inside usually decides your next move - and a surprising amount of the time, the answer is "put it back online, but as a link."

If it is a website. Unzip a project and find index.html, some CSS, a js folder, an images folder? That is a static site, and it wants to be on the web, not sitting in your Downloads. You can skip the unzipping entirely here: upload the original .zip straight to Hostsmith, and it extracts the archive and serves the contents as a live site on a hostsmith.link URL. No build step, no config. Worth noting the free plan caps uploads at 5 MB, so a heavier site with an images folder will need a paid plan. If you would rather drag the extracted folder across instead, that route is covered in our guide to drag-and-drop website hosting. And if the zip was just a single .html file, hosting one HTML file online is even quicker.

If it is a PDF, or files to send on. Plenty of zips are really just a delivery mechanism - a PDF or two that someone wrapped up for email. Rather than re-zipping and re-emailing (and watching it bounce off an attachment limit), host the file and send large files by link instead. Our walkthrough on sharing a PDF as a link covers the quick version, and the fuller PDF hosting guide goes into the options.

If you need to re-share it privately. This is the gap Archive Utility leaves wide open: it can unzip an encrypted archive but it cannot create one. So if you have unpacked something confidential and need to pass it on securely, you cannot just re-zip it with a password using built-in tools. Hosting it with access protection is the cleaner answer - Hostsmith's Standard plan lets you lock a site behind a shared password or Google sign-in, so the recipient gets a link and a login rather than a zip and a separate "the password is..." message you probably should not be sending anyway.

That is the bridge, and it is genuinely secondary - if all you needed was the files open, you are already done.

FAQ

How do I unzip a file on a MacBook? Exactly as on any Mac: double-click the .zip in Finder. The contents appear next to it, in the same folder. MacBook, iMac, Mac mini - the process is identical.

How do I unzip RAR files on a Mac? You cannot with built-in tools - macOS has no native RAR support. Install The Unarchiver or Keka (both free) and the .rar will open with a double-click afterwards.

What is a .tar.gz and how do I open one? It is a Unix-style archive, common with code and Linux software. Double-clicking usually works because Archive Utility understands it. In Terminal, one command does it: tar -xzf filename.tar.gz.

Can I unzip a file on an iPhone or iPad? Yes. The Files app handles it - tap a .zip and iOS extracts it into the same folder, much like the Mac.

Why does a .pkg file behave oddly when I open it? Because a .pkg is not an archive you extract - it is an installer. Double-clicking it correctly launches the macOS installer rather than dumping files in a folder. That is expected behaviour, not a fault.

Does macOS delete the original zip after unzipping? No. By default it keeps both the .zip and the extracted contents. You remove the zip yourself when you are happy, or set Archive Utility to bin it automatically in its Settings.

The one habit worth keeping

If I had to leave you with a single takeaway, it is this: when a zip refuses to open, do not waste twenty minutes hunting for repair software. Open Terminal and run unzip on it. macOS hides the actual error behind that useless "unable to expand" dialog, and Terminal just hands it to you straight - truncated download, wrong file type, or a password it never bothered to ask for. Five seconds of typing beats five articles of guesswork. That one habit has saved me more time than any tool ever has.