Compress and extract archives
Make a zip, 7z or tar file from a selection, look inside an archive without unpacking it, take out only the files you need, or extract everything.
On this page 5 sections
What you’ll accomplish
- Compress files and folders into a zip or another format
- Browse a zip, rar, 7z or tar file like a folder, without unpacking it
- Take out one file, or extract the whole archive
DockDuck makes and opens archives with the tools built into macOS, so there’s nothing else to install.
Compress files
- Select the items
Select one or more files or folders in the same folder.
- Choose Compress
Control-click the selection and choose Compress, or Compress N Items for several. This makes a zip.

Result: The archive appears next to the items.
For another format, choose Other Formats in the same menu, then 7z, TAR.GZ or TAR.XZ.
- A single item keeps its full name: “Report.pdf” becomes “Report.pdf.zip”.
- Several items are named after the first of them by name, such as “Budget.zip”.
- If that name is taken, a number is added: “Budget 2.zip”.
- Press ⌘Z to move the new archive to the Trash.
Compress has no shortcut by default. You can give it one in Settings, Keyboard, or add Compress to the quick action bar.
Look inside an archive
Double-click a zip, rar, 7z or tar file and it opens like a folder. The header names the archive and says Read only.
Inside an archive you can:
- move through its folders, and go back out with the path bar or Back,
- preview a file with Space or in the preview panel,
- open a file in its app,
- copy a file with ⌘C, or drag it to a folder, the sidebar, a tab, the Shelf or another app.
Only the files you open, copy or drag come out of the archive. In the list view an archive also unfolds with its triangle, like a folder.
Nothing inside an archive can be renamed, moved or deleted, so looking never changes it. Files you open from inside are copies: edits to them don’t go back into the archive.
Password-protected archives
DockDuck asks for the password the first time a file comes out, not when you open the archive. It remembers the password until you quit, and never saves it.
Extract everything
- From inside the archive, click Extract All in the header.
- From the folder, Control-click the archive and choose Extract.
The contents land next to the archive. When the archive holds a single folder, that folder appears as it is; when it holds several items, they go into a new folder named after the archive. The __MACOSX folders that macOS adds to zips are left out. Press ⌘Z to move what was extracted to the Trash.
A single compressed file that isn’t an archive, such as notes.json.gz, doesn’t open as a folder: double-clicking it decompresses it.
Formats
| Format | Compress | Open and extract |
|---|---|---|
| zip | Yes | Yes |
| 7z | Yes | Yes |
| tar.gz, tar.xz | Yes | Yes |
| rar | No | Yes |
| tar, tgz, bz2, xz, cpio, xar, pax, iso, jar, war, ipa, cbz, cbr | No | Yes |
RAR files can be opened but not created: only the RAR maker’s own tools create them.
If something goes wrong
| Message | What to do |
|---|---|
| DockDuck can’t read this archive. It may be damaged or in a format macOS doesn’t open. | Download the file again. If it still fails, the format isn’t one macOS opens. |
| That password didn’t work. Try again. | Check the password, including upper and lower case. |
| Compress fails on search results | The selected items must be in the same folder. Open the folder and compress from there. |
Thanks, that helps us improve this page.