ZIP Files
How to Extract a ZIP File
Extracting a ZIP file needs no extra software on Windows or macOS — here is the exact process on each, plus command-line options.
Get an archive tool for your computer
Download the installer and start opening RAR, ZIP and 7z archives in a few minutes.
Windows 11 and Windows 10
- 1Locate the ZIP fileFind the
.zipfile in File Explorer. - 2Right-click the fileChoose Extract All... from the context menu.
- 3Choose a destinationConfirm or change the folder path in the dialog, then click Extract.
- 4Open the extracted folderFile Explorer opens the new folder automatically once extraction finishes.
macOS
- 1Locate the ZIP fileFind the
.zipfile in Finder, typically in Downloads. - 2Double-click itArchive Utility extracts it automatically to the same folder.
- 3Check the resultA new folder with the same name appears next to the original ZIP.
Command line
| Platform | Command |
|---|---|
| macOS / Linux | unzip archive.zip |
| macOS / Linux (specific files) | unzip archive.zip "folder/*" -d output |
| Windows PowerShell | Expand-Archive -Path archive.zip -DestinationPath .\output |
| macOS / Linux (via tar) | tar -xf archive.zip |
The tar command works on ZIP files on recent macOS and Linux because those tar builds detect the ZIP format automatically, even though tar is historically a different archive type. This is handy when unzip isn't installed.
Extracting only some files
On Windows, double-clicking a ZIP to browse it and then dragging out only the files you need avoids extracting the whole archive. On macOS or Linux, unzip archive.zip "specific-file.txt" extracts a single named entry.
Common errors
- "Compressed (zipped) folder is invalid" — usually a partial download; redownload the file and check its size matches the source.
- Extraction stalls near 100% — often a very large last file or antivirus scanning it in real time; wait or temporarily pause the scanner.
- Extracted files are empty or 0 bytes — the ZIP was likely corrupted during transfer; see corrupted RAR file for the general diagnostic approach, most of which applies to ZIP too.
- Password prompt on a ZIP you didn't expect to be locked — the sender protected it; you'll need the password from them.
Download and try it yourself
Install the archive tool and apply the steps from this guide on your own files.
Frequently asked questions
Do I need WinRAR or 7-Zip to open a ZIP file?
No. Windows and macOS both extract ZIP files natively. Third-party tools like [7-Zip](/winrar-vs-7zip) are only needed for other formats such as RAR or 7z.
Why does my extracted ZIP have a different name than expected?
Extraction usually creates a folder matching the ZIP's file name. If the archive itself has an odd internal name, that name is what appears.
Can I extract only part of a large ZIP file?
Yes — browse the ZIP without fully extracting it on Windows, or use `unzip archive.zip "path/to/file"` on macOS or Linux.
What if the ZIP file won't extract at all?
Confirm the download completed and try `unzip -t archive.zip` (or `tar -tf`) to test the archive's integrity before assuming it's corrupted.
Related guides
- ZIP Files Explained: The Universal ArchiveZIP is the one archive format that opens on almost any device without installing anything extra. Here is what it actually does and when to reach for it.
- How to Create a ZIP FileYou don't need any extra software to build a ZIP file — both Windows and macOS include the feature natively.
- How to Unzip a RAR File"Unzip" is commonly used for any archive, but RAR and ZIP are different formats, and that mismatch is why some 'unzip' tools can't open a RAR file.
- How to Fix a Corrupted RAR ArchiveA corrupted RAR archive can sometimes be repaired, and sometimes can't. Here's how to test one, what recovery tools actually do, and when re-downloading is the real fix.
WinRAR is a trademark of its respective owner. RareExplorer is an independent resource and is not affiliated with or endorsed by RARLAB or win.rar GmbH. Read our editorial policy to see how this page was researched.