MacOS Sierra: How to Unzip a File
In this article
To unzip a file in macOS Sierra, simply double-click the .zip file in Finder, and Archive Utility will automatically extract its contents to the same folder. If you want more control, such as extracting to a specific location or handling password-protected archives, use the Archive Utility menu or a third-party app like The Unarchiver.
What Is a ZIP File and Why Use It?
A ZIP file is a compressed archive that bundles one or more files or folders into a single package, reducing their size for easier storage and transfer. It's the most common archive format on macOS and Windows, and it's supported natively by Sierra. ZIP files are ideal for emailing multiple files, downloading software, or organizing related documents. They use lossless compression, meaning the files inside are restored exactly as they were, without any quality loss.
How to Unzip in macOS Sierra: Step-by-Step
Here are the main ways to unzip a file in Sierra, from the simplest to more advanced methods:
- Double-click the ZIP file: This is the quickest method. Finder will extract the contents into a new folder named after the ZIP file (e.g., Photos.zip becomes Photos). The original ZIP file remains untouched.
- Right-click (or Control-click) and choose "Open": This does the same as double-clicking but is useful if double-click is set to something else.
- Use the Archive Utility app: Open Archive Utility (in /System/Library/CoreServices/), then drag the ZIP file onto its window. You can also set preferences to automatically move the ZIP to Trash after extraction, or to expand items into a specific folder.
- Use the command line (Terminal): For more control, open Terminal and type
unzip /path/to/file.zip. To extract to a specific directory, useunzip /path/to/file.zip -d /destination/folder. This is handy for scripting or when dealing with many files.
What to Do If Double-Click Doesn't Work
Sometimes double-clicking a ZIP file may not extract it—perhaps nothing happens, or you get an error. Here are common fixes:
- Check the file extension: Ensure the file actually ends in
.zip. If it's a different archive type (like .rar or .7z), macOS can't open it natively. - Repair the file: The ZIP may be corrupted. Try downloading it again or ask the sender to re-upload it.
- Use a third-party app: Apps like The Unarchiver or Keka can handle most archive formats and often recover from minor corruption.
- Restart Finder: Occasionally, Finder or Archive Utility may hang. Restart your Mac or just log out and back in.
Password-Protected and Encrypted ZIP Files
If a ZIP file is password-protected, double-clicking will prompt you for a password. If you don't have it, you can't extract the contents. macOS Sierra uses standard AES-256 encryption for protected ZIPs, which is secure. If you forget the password, there's no built-in way to recover it—you'll need to contact the sender. For creating encrypted ZIPs, you can use the command line: zip -e archive.zip file1 file2 will prompt for a password.
How to Unzip RAR and Other Formats
macOS Sierra only natively supports ZIP files. For other formats like RAR, 7z, or TAR.GZ, you'll need a third-party app. The Unarchiver is a free, open-source choice that handles dozens of formats. Keka is another popular option. To install one, download the app from its official website, drag it to your Applications folder, and then double-click any archive—it will open in the chosen app. These apps also let you extract to a specific location and preview contents before extracting.
Common Problems and Troubleshooting
Error: "Unable to expand" — This usually means the ZIP is corrupted or uses an unsupported compression method. Try downloading again, or use a tool like The Unarchiver which is more tolerant.
Files appear garbled or with wrong names — This can happen if the ZIP was created on a system with a different encoding (e.g., Windows with Japanese filenames). The Unarchiver has options to handle character encoding.
ZIP file is huge but contents are small — This might indicate a "zip bomb" (a malicious archive that expands to enormous size). Be cautious with ZIP files from unknown sources; they could contain malware or fill your disk.
Extracted files are in a folder, but you wanted them elsewhere — Use the right-click context menu and choose "Open With" > "Archive Utility" to get a dialog where you can select a destination. Or use Terminal with the -d flag.
Alternatives to Unzipping
You don't always have to extract a ZIP to access its contents. Here are some alternatives:
- Preview files without extracting: In Finder, press Spacebar to Quick Look a ZIP file—this often shows a list of its contents. You can also open the ZIP in The Unarchiver's preview window.
- Use the "Compress" feature to create ZIPs: To create a ZIP, select files in Finder, right-click, and choose "Compress Items." This is useful for sending multiple files.
- Use iCloud Drive or AirDrop: Instead of zipping files to share, you can share a folder directly via iCloud Drive or AirDrop, avoiding compression altogether.
Frequently Asked Questions
Why can't I unzip a file on my Mac? The most common reasons are a corrupted file, an unsupported format (like .rar), or a permissions issue. Try a third-party unarchiver, re-download the file, or check if the file is actually a ZIP by looking at its extension.
How do I unzip a file on a Mac without a mouse? Use the keyboard: select the ZIP file in Finder, then press Command+O (Open) or Command+Down Arrow. This will trigger the same extraction as double-clicking.
Does macOS Sierra have a built-in unzip tool? Yes, Archive Utility is built-in and handles ZIP files automatically. It's located in /System/Library/CoreServices/ and runs in the background when you double-click a ZIP.
How do I unzip a file on a Mac to a specific folder? Right-click the ZIP, hold the Option key, and select "Open With" > "Archive Utility." A dialog will appear asking where to save the extracted files. Alternatively, use Terminal: unzip file.zip -d /path/to/folder.
Can I unzip a ZIP file on my iPhone or iPad? Yes, iOS has a built-in Files app that can extract ZIPs. Tap the ZIP file, then tap "Preview" or "Unzip." This works on iOS 13 and later, which is newer than Sierra but worth noting.
Is it safe to unzip files from the internet? Generally yes, but be cautious. ZIP files can contain malware. Only open archives from trusted sources. If your Mac asks for a password to unzip, that's normal for protected files, but never enter your admin password unless you're sure the archive is safe.