The basic way to extract a file on a Mac
On a Mac, most compressed files extract automatically when you download them. If a file ends in .zip, your Mac will decompress it the moment the download finishes, and you'll see the extracted folder appear right next to the original .zip file in your Downloads folder or wherever you saved it. You don't need to do anything — no buttons to click, no separate software to open.
If the automatic extraction doesn't happen, or if you're working with a .zip file that's already on your computer, double-click it. The built-in Archive Utility will open and extract the contents to the same location. That's the entire process for the most common file type.
For other compressed formats like .rar, .7z, or .tar.gz, your Mac won't extract them automatically, and double-clicking won't work. You'll need additional software, which we cover below.
Key Takeaways
- .zip files extract automatically on a Mac when you download them, with no action required on your part.
- If automatic extraction doesn't happen, double-clicking the .zip file will extract it using the built-in Archive Utility.
- Other formats like .rar, .7z, and .tar.gz require third-party software because macOS doesn't include built-in support for them.
- You can also right-click a compressed file and select "Open With" to choose a specific extraction tool if you have multiple options installed.
Where extracted files end up
When you extract a .zip file, the uncompressed folder or files appear in the same location as the original .zip. If you downloaded the file, look in your Downloads folder. If the .zip was on your Desktop, the extracted version will be on your Desktop too. The original .zip file stays where it is — extraction creates a copy, it doesn't move or delete the compressed version.
Once you've confirmed the extracted files work and you don't need them again, you can delete the .zip to save space. The extracted folder will remain unaffected.
Extracting .tar.gz and .tar files
Files ending in .tar.gz or .tar are common in software development and open-source projects. Your Mac can extract these, but not through the normal double-click method. Instead, open the Terminal application (find it in Applications > Utilities > Terminal) and use the command line.
Navigate to the folder containing your .tar.gz file, then type: tar -xzf filename.tar.gz (replace "filename" with the actual name). Press Enter, and the extraction happens in seconds. The extracted folder appears in the same directory. If you're uncomfortable with Terminal, you can also drag and drop a .tar.gz file onto the BetterZip or The Unarchiver application (see the section below on third-party tools).
Using third-party extraction software
If you regularly work with .rar, .7z, .iso, or other formats your Mac doesn't natively support, installing dedicated software is faster than learning Terminal commands. The Unarchiver is free and handles dozens of formats. BetterZip is a paid option ($20) that adds a preview pane so you can see what's inside before extracting. Keka is another free alternative that works well for less common formats.
Once installed, these apps integrate with Finder. Right-click any compressed file, select "Open With," and choose your extraction tool. Some will extract automatically; others will show you options first. All three are available through the Mac App Store or their developers' websites.
Extracting password-protected files
If a .zip file is password-protected, double-clicking it will prompt you to enter the password before extraction begins. Type it in and click "Open" — the file will extract normally once the password is verified. If you enter the wrong password, the extraction will fail and you'll be asked to try again.
For password-protected files in other formats (.rar, .7z), the third-party tools mentioned above all support password entry. The process is the same: the software will ask for the password when you attempt extraction.
What to do if extraction fails
If double-clicking a .zip file produces an error or nothing happens, the file may be corrupted or incomplete. Try downloading it again. If the file came from email or a file-sharing service, check that the download finished completely — a partially downloaded file won't extract.
If you're certain the file is complete and still can't extract it, try opening it with a third-party tool like The Unarchiver, which sometimes succeeds where the built-in utility fails. If that doesn't work either, contact whoever sent you the file and ask for a fresh copy or a different format.
Extracting multiple files at once
If you have several .zip files in one folder, you can extract them all without opening each one individually. Select all the .zip files (click one, then hold Command and click the others), then right-click and choose "Open." Your Mac will extract each one to its own folder in the same location. This works only for .zip files — other formats require third-party software that may or may not support batch extraction.
Alternatively, if you use The Unarchiver or BetterZip, both allow you to select multiple files and extract them in one action through their menus.
Frequently Asked Questions
Why did my .zip file extract automatically when I downloaded it?
macOS has a built-in feature that automatically extracts .zip files as soon as the download completes. This is the default behavior and saves you a step. If you prefer to keep the .zip file compressed, you can turn this off in System Settings > General > Remove items from the Bin after 30 days (though this setting controls something different — there's no direct toggle for auto-extraction in newer macOS versions).
Can I extract a file to a different location than where it's stored?
With the built-in Archive Utility, extraction happens in the same folder as the .zip. To extract elsewhere, use a third-party tool like The Unarchiver, which lets you choose the destination folder before extraction. Alternatively, move the .zip file to where you want it extracted, then double-click it.
What's the difference between .zip, .tar.gz, and .rar?
.zip is the most common format and works on Windows, Mac, and Linux. .tar.gz is standard in Unix and Linux environments, common for software source code. .rar is an older format that compresses files more efficiently but requires separate software on a Mac. For everyday use, .zip is what you'll encounter most often.
Is it safe to delete the original .zip file after extraction?
Yes. Once you've extracted the contents and confirmed they work, the .zip file is no longer needed. Deleting it frees up storage space. The extracted folder remains unaffected because extraction creates a copy, not a move.
Why won't my .rar file extract when I double-click it?
macOS doesn't include built-in support for .rar files. You need third-party software like The Unarchiver (free) or BetterZip (paid) to extract them. Install one of these apps, then right-click the .rar file and select "Open With" to choose your extraction tool.