MainspringGuides › Zip files
macOS Guide

How to Zip Files on Mac (and Unzip Them)

Updated July 2026 · 3 min read

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

  1. Select what you want to compress — one file, a folder, or a multi-selection (Cmd-click to pick several).
  2. 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.
  3. The archive appears next to the originals: a single item becomes name.zip, a multi-selection becomes Archive.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

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%.

Skip the right-click routine

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.