How to Extract Only Specific Files From a ZIP Archive
July 5, 2026
This guide covers every practical option, from the Finder-only workaround to Terminal commands to a purpose-built preview-and-select workflow, so you can pick whichever fits your comfort level.
If a ZIP archive contains a hundred files and you only need one, fully extracting everything wastes both time and disk space for content you'll never use. Here's how to extract only the specific files you actually need on Mac, including the Finder-only method, the Terminal method, and what a dedicated selective extraction feature adds on top of both.
Why this matters even for archives you'll fully extract eventually
Selective extraction isn't only useful when you permanently only want part of an archive — it's equally valuable when you're not yet sure whether you need the full contents at all. Extracting one representative file first to verify it's the correct version, the right project, or contains what you expect, before committing to a full extraction of everything else, is a low-cost way to avoid the larger time and disk-space investment of fully extracting an archive that turns out not to be what you needed in the first place. This "sample first, extract fully if confirmed" pattern is a genuinely practical habit worth adopting for any unfamiliar or unverified archive.
Does Finder support selective extraction natively?
Not directly, and this is a genuine gap worth knowing about upfront. Double-clicking a ZIP in Finder extracts its entire contents — there's no built-in option to preview the archive and choose specific files before extraction happens. The closest Finder gets is extracting everything, then manually deleting the files you didn't need afterward, which technically achieves the same end result but wastes the time and disk space of extracting unwanted content in the first place, however briefly.
Method 1: Terminal's unzip command with a specific file path
macOS's built-in unzip command actually does support extracting specific files, if you know the exact internal path of what you want:
unzip archive.zip "path/to/specific-file.txt"
This extracts only the named file, preserving its internal folder path. The friction here is real: you need to know the file's exact path within the archive structure in advance, which usually means first listing the archive's full contents to find it:
unzip -l archive.zip
This two-step process — list contents, then extract by exact path — works but requires comfort with Terminal and precise path-copying, which is exactly the kind of friction that makes a GUI-based preview-and-select workflow meaningfully faster for anyone who doesn't already have the exact path memorized or readily available.
Method 2: A dedicated selective extraction feature
This is where a purpose-built archive app closes the gap Finder and raw Terminal commands leave open. With Unzipr, opening an archive shows the full folder tree instantly through Quick Preview — no extraction required just to see what's inside. From that same preview, you select the specific files or folders you actually want, and extract only those, skipping everything else in the archive entirely. This combines the "see what's there" step and the "extract just this" step into one continuous flow, rather than requiring a separate listing command and manual path-copying.
Why this matters more for large archives
The time and disk-space savings from selective extraction scale directly with how large the source archive is relative to what you actually need. For a small ZIP with a handful of files, full extraction costs almost nothing extra, and the convenience of selective extraction is marginal. For a multi-gigabyte archive where you need one specific document, selective extraction is the difference between waiting through a lengthy full decompression (and temporarily consuming disk space equal to the entire archive's uncompressed size) versus a near-instant, targeted extraction of just the one file you actually need.
A realistic scenario: retrieving one document from a large backup
Picture needing to recover a single accidentally-deleted spreadsheet from a multi-gigabyte backup archive covering an entire project folder from months ago. Fully extracting the backup to find that one file means waiting through decompression of everything else in that snapshot and temporarily needing disk space equal to the full uncompressed backup — for a task that only actually needed one file. Previewing the archive first to locate the spreadsheet's exact location, then extracting just that file, turns a potentially multi-minute wait and significant temporary disk usage into a near-instant, targeted operation.
Selective extraction with multiple specific files at once
You're not limited to pulling out exactly one file — most selective extraction workflows, including Terminal's unzip with multiple path arguments and dedicated app-based selection, support choosing several specific files or folders in one operation:
unzip archive.zip "folder1/file1.txt" "folder2/file2.pdf"
In a GUI app, this typically means Cmd-clicking multiple files in the preview pane to build a selection before extracting, the same multi-select interaction pattern Finder itself uses for selecting multiple files in a regular folder.
Does this work the same way for RAR and 7Z, not just ZIP?
Yes — the underlying principle (reading the archive's header/central directory to identify specific files without decompressing everything) applies across all three major formats, though the exact Terminal command syntax differs. A dedicated app's selective extraction feature typically handles all supported formats through the same consistent interface, so you don't need to remember different extraction syntax depending on which format you're working with.
Selective extraction versus full extraction plus manual cleanup
It's worth being direct about why extracting everything and manually deleting the unwanted files afterward — a common workaround for anyone without selective extraction available — is genuinely worse, not just less elegant. Beyond the wasted time waiting for unnecessary decompression, this approach temporarily consumes disk space equal to the entire archive's uncompressed size, which matters if you're working with limited free storage or a very large archive. It also introduces a real risk of accidentally deleting something you actually needed, especially with sprawling folder structures containing similarly-named files across different subfolders. True selective extraction avoids all three of these problems simultaneously, by never touching the unwanted content in the first place rather than extracting and then discarding it.
A realistic scenario: pulling assets from a large design archive
Picture receiving a client's complete brand asset ZIP — logos, fonts, photography, mockups, style guides — totaling several gigabytes, when you only need the logo files for one specific task. Using Quick Preview to browse the folder structure, locating the logo subfolder, and extracting just those files takes seconds and avoids downloading the mental overhead of "where did all this other stuff go" cluttering your Downloads folder afterward. This is a genuinely common pattern for anyone handling client deliverables, course materials, or any bundled asset package where you rarely need everything included at once.
Troubleshooting
- Terminal's unzip says "file not found" for a path you copied from the listing: check for trailing spaces or special characters that may not have copied correctly, and ensure the path matches exactly, including capitalization.
- Selective extraction seems to extract the whole archive anyway: some tools default to full extraction if no specific selection is made — confirm your selection was actually registered before starting extraction.
- Selected file doesn't appear where expected after extraction: check whether your tool preserves the file's internal folder path (creating matching subfolders) or flattens everything into your chosen destination — behavior varies by tool.
How this connects to archive preview more broadly
Selective extraction only works well when paired with a genuinely useful preview step — without seeing the full folder structure first, you're back to guessing at file paths the same way Terminal's method requires. This is why the two capabilities are usually built together rather than as separate features: preview answers "what's here and where," selective extraction answers "now give me just that." See our dedicated guide on archive preview for more detail on how the underlying header-reading mechanism makes instant preview possible even for very large archives, which is the same mechanism that makes targeted selective extraction fast rather than requiring a full scan of the archive's compressed data.
Frequently asked questions
Can I selectively extract from a password-protected archive? Yes, as long as your tool supports both password-protected extraction and selective extraction together — you'll be prompted for the password before the preview/selection step can proceed, since the file listing itself may be encrypted depending on the format and settings.
Is selective extraction slower than full extraction for the files you do select? No — the per-file extraction speed is identical either way; selective extraction simply skips the files you didn't choose, rather than processing them more slowly.
Does selective extraction work on multi-part RAR archives? Yes, as long as all parts of the multi-part set are present — the tool needs the complete set to correctly read the header and locate your selected files' actual compressed data, even if you're only extracting a subset of the total contents.
The bottom line
Extracting an entire archive just to grab one file is unnecessary friction once you know the alternatives — Terminal's path-based extraction for those comfortable with it, or a dedicated preview-and-select workflow for everyone else. Unzipr pairs Quick Preview with Selective Extraction in PRO, letting you go from "I see the file I need" to "extracted" in one continuous motion, with no wasted disk space and no manual cleanup afterward.