How to Zip Files on Mac (and Unzip Them)
Zipping on a Mac is built into Finder: select, right-click, Compress. You get a single .zip that’s smaller, emails as one attachment, and opens on Windows and Linux too. Here’s the full picture — where the archive lands, how to unzip, the Terminal equivalents, and what to do when a zip won’t open.
Zip files or folders from Finder
- Select what you want to compress — one file, a folder, or a multi-selection (
Cmd-click to pick several). - Right-click the selection and choose Compress. For a single item the menu reads Compress “name”; for several it reads Compress followed by the item count.
- The archive appears next to the originals: a single item becomes
name.zip, a multi-selection becomesArchive.zip(rename it before sharing). The originals are untouched — “undo” is simply dragging the .zip to the Trash.
How much smaller you get depends entirely on the content: text, spreadsheets, and uncompressed images shrink dramatically; photos (JPEG/HEIC), videos, and other already-compressed formats barely budge. Zipping those is about bundling, not size.
Unzip: double-click, done
Double-click any .zip and the built-in Archive Utility expands it into the same folder, leaving the archive in place. There’s no “open and browse” view natively — macOS always extracts. If you want to peek inside first, a free tool like Keka or The Unarchiver can list contents without extracting.
The Terminal versions
Useful for scripts, or when you want control over what goes in:
# zip a folder (-r = include everything inside it)
zip -r archive.zip MyFolder
# zip but leave out macOS's invisible .DS_Store files
zip -r archive.zip MyFolder -x "*.DS_Store"
# expand a zip into the current folder
unzip archive.zip
# undo either creation: just delete the archive
rm archive.zip
The -x "*.DS_Store" exclusion is worth memorizing if you share zips with Windows users — it keeps Finder’s hidden metadata files out of the archive, so recipients don’t ask what the mystery files are.
When a zip won’t open
- “Unable to expand” error: the download is usually incomplete or corrupted — compare the file size against the source and download it again. If it persists, try
unzip archive.zipin Terminal; unlike Archive Utility, it prints a specific error that tells you whether the file is truncated or genuinely damaged. - Garbled file names after extracting: the zip was made on a system using a non-UTF-8 encoding (common with older Windows tools and non-English file names). Archive Utility assumes UTF-8; extract with The Unarchiver or Keka instead — both detect the original encoding and restore the names.
- It’s not actually a zip:
.rarand.7zarchives need a helper app — see our guides to opening RAR files and opening 7z files on a Mac. - Password-protected: macOS will prompt for the password when one is set. To create an encrypted zip you need Terminal — Finder can’t do it.
Zip vs the alternatives
Zip wins on one axis that usually matters most: everyone can open it, double-click, on macOS, Windows, and Linux, with nothing installed. 7z compresses tighter and RAR handles multi-part archives well, but both make your recipient install software. The practical rule: send zips, and keep a free extractor around to receive whatever other people send you. If your goal is shrinking specific media rather than bundling files, format-aware tools beat any archiver — compressing a video inside a zip saves almost nothing, while re-encoding it properly can cut it by 90%.
While you’re streamlining file chores, Mainspring turns 90+ hidden macOS settings — Finder behaviors, Dock tricks, keyboard tweaks — into labelled, reversible toggles you flip in one click.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Need the archive locked?
Finder’s Compress command can’t set a password. Terminal’s zip -er can, and an encrypted disk image is stronger still — both walked through in how to password protect a zip on Mac.