You rarely need everything in an archive. A ZIP keeps a list of all its entries at the end, called the central directory, so a reader can go straight to one file and decompress only that file. This guide shows how to select individual files or folders in Windows, macOS, Linux and in Extract ZIP, and how to send the picked files on as a smaller archive. The reason this is fast is explained in detail in the deep dive on the ZIP file format, byte by byte.
Why selective extraction is quick
A ZIP is not one continuous compressed stream. Each entry has its own local header, compressed data and, in most cases, a descriptor, and the central directory at the end records where every entry starts. A program can read that directory, find one file's offset and skip straight to it. Nothing else has to be decompressed. That is why taking three documents from a 2 GB archive can take seconds, and why ZIP Viewer can list an archive with tens of thousands of entries almost instantly.
The practical benefit is more than speed. Extracting everything from a large archive can fill a phone's storage or take a long time on a slow disk. Selecting only what you need also reduces the chance of ending up with junk files such as __MACOSX, .DS_Store or Thumbs.db in your working folder.
Extract selected files in your browser
- Open Extract ZIP and drop the archive on the page or choose it from your device. It also accepts TAR, TAR.GZ, TGZ and GZ files.
- Wait while the index is read. You get a folder tree with names, sizes and timestamps before any file content is decompressed.
- If you are not sure which file you need, use Search Inside ZIP to look for text or a name across the archive without unpacking it.
- Tick the files and folders you want. In most tools, ticking a folder selects everything below it. Deselect anything you added by mistake.
- If the archive is encrypted, enter the password when asked. Only the chosen entries are decrypted; it stays on your device.
- Download the selected files individually, or choose the option to download them as one new ZIP. For more than a couple of files, the single ZIP avoids the browser's multiple-download prompt.
The original archive is never modified. Selective extraction writes new files or a new ZIP and leaves the source exactly as it was.
Selective extraction in operating systems
| System | How to take only some files | Notes |
|---|---|---|
| Windows 11 | Double-click the ZIP in File Explorer, then drag the wanted files out to a folder. | Files opened straight from the ZIP are temporary copies; drag or extract them if you intend to edit. |
| macOS | Use Quick Look to browse, or unzip archive.zip 'docs/*.md' -d out/ in Terminal. | Double-clicking extracts everything with Archive Utility, which gives you no selection step. |
| Linux | unzip archive.zip 'folder/file.txt' -d out/ | Quote wildcard patterns so the shell does not expand them. unzip -l lists names first. |
| 7-Zip | Open the archive, select entries and choose Extract with Files selected under Output. | Handles AES encryption and formats beyond ZIP. |
On a phone, the built-in managers generally extract the whole archive. The browser route is the practical way to pick a subset on iOS or Android, and it does not require installing an app.
Find the file before extracting
Sometimes the difficulty is not extraction but knowing which entry is the right one. Archive names can be vague, files can be nested several folders deep, and an archive may contain several versions of the same document. ZIP Viewer shows the tree and lets you compare sizes and dates, while Search Inside ZIP matches text inside files and shows the matching lines. You can then download just the file that matched, without unpacking the rest.
- Sort by modified date when you are looking for the newest version of a file.
- Compare compressed and original sizes to spot which of several similar files is the real document.
- Look at the path, not just the file name: two
report.pdffiles in different folders may serve different purposes. - If names are unreadable, repair the encoding first, then select files from the corrected list.
Send the selection onward
Once you have picked a handful of files, you can hand them on as a smaller archive. Extract ZIP can download your selection as a new ZIP with the same relative paths. That is usually better than sending several separate downloads, and it keeps the folder structure the files came from. If the resulting ZIP is still large, Compress ZIP reports whether further reduction is genuinely possible.
If instead you want to change the original archive by deleting entries permanently, use ZIP Editor. It writes a new archive with the unwanted entries removed and copies the rest unchanged. The choice between extracting a copy and editing the archive comes down to whether you want to keep the original intact.
Folders, nesting and repeated names
Selecting a folder in an archive selects everything beneath it, which is convenient when a project lives in one top-level directory. It can also pull in more than you intended, so glance at the file count before you download. Nested archives need a little more thought: a ZIP stored inside another ZIP arrives as a single compressed file, not as a folder of its contents. If you need what is inside the inner archive, extract it first and then open it with a nested-archive tool.
- Two files with the same name in different folders stay separate when you keep their relative paths.
- Downloading into a single ZIP preserves those paths, which is safer than saving several files with identical names into one folder.
- If an archive contains several versions of a document, check modified dates before choosing which one to extract.
- Empty folders you selected are kept as entries, so an empty directory structure can still be reconstructed.
Safety when opening part of an archive
Selective extraction is safer than unpacking everything, but the files you do take are still untrusted input from wherever the archive came from. Aback ZIP sanitises entry paths, so a name like ../../secret.txt cannot write outside the intended folder, and it flags extreme compression ratios that might indicate a ZIP bomb. It does not scan for malware, so treat executables, scripts and macro-enabled Office files with care.
- List the archive before selecting anything. Unexpected names are a reason to pause.
- If the expanded size of the selected files is far beyond the archive size, check is this ZIP file safe first.
- Verify the files you extracted with Test ZIP Integrity if they came from an unreliable source.
- Never open a file directly from a preview if it could execute code; save it and decide first.