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.
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.
How to Extract ZIP Files on Windows 11
To extract a ZIP file on Windows 11, right-click it and choose Extract All, then pick a destination folder. This is the reliable way to get fully usable, standalone copies of every file in the archive.
Extract All wizard
- 1Right-click the ZIP fileChoose Extract All from the context menu.
- 2Confirm or change the destination folderWindows suggests a new folder named after the ZIP file in the same location.
- 3Click ExtractWindows copies every file out of the archive into the destination folder.
- 4Check the 'Show extracted files' boxLeave it checked to open the destination folder automatically once extraction finishes.
Extract All vs dragging out of the preview window
Double-clicking a ZIP file opens it in a File Explorer window that lets you browse its contents as if it were a folder — but it is only a preview, not extracted files. You can drag a file out of that window to copy it elsewhere, which does work for a single file or a few. What doesn't work reliably is treating the ZIP preview as a real folder for ongoing work: many programs can't open files directly from inside a ZIP, and moving or editing files while browsing this way can silently fail or produce incomplete copies.
The blocked-file property
If a ZIP file was downloaded from the internet, Windows tags it with a 'blocked' security marker (an alternate data stream) to warn that its origin isn't verified. Files extracted from a blocked ZIP can inherit warnings when opened, particularly executables or Office documents with macros. To remove the marker before extracting: right-click the ZIP, choose Properties, and check Unblock at the bottom of the General tab, then click OK.
For extracting several ZIP files at once instead of one at a time, see how to extract multiple ZIP files. For creating ZIP files in the first place, see how to create a ZIP file on Windows 11.
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.
What's the difference between opening a ZIP and extracting it?
Opening shows a live preview of the contents without copying them to disk; extracting (Extract All) creates real, standalone copies of every file.
Why can't I open a file directly from inside a ZIP preview?
Some programs only accept files that exist as real files on disk, not ones read live out of an archive, so they fail or behave inconsistently when pointed at a ZIP preview.
What does 'this file came from another computer' mean on an extracted file?
Windows blocked the source ZIP because it was downloaded from the internet. Unblock the ZIP itself via its Properties dialog before extracting to avoid this warning.
Can I extract just one file instead of the whole ZIP?
Yes, open the ZIP's preview window and drag the single file you need to another folder, which is fine for occasional single-file copies.
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 Extract Multiple ZIP Files on WindowsWindows can extract several ZIP files in one action, but its built-in Extract All only handles one archive at a time — a free tool like 7-Zip adds true batch extraction.
- How to Extract a RAR FileExtracting a RAR archive turns its compressed contents back into normal, usable files. Here's how to do it correctly across platforms.
- 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.