How to compress files and folders on a Mac
Select the files or folder in Finder, Control-click and choose Compress: macOS makes a ZIP next to them. For smaller archives, a password or more control, use Terminal or an archiver that makes 7z, such as OpenRAR for Mac or Keka.
The quickest way to compress on a Mac is built into Finder: select the files or folder, Control-click (or right-click) and choose Compress. macOS creates a ZIP file in the same folder, and the originals stay where they are. That’s enough for most emails and uploads. If you need a smaller file, a password, or an archive without hidden Mac files, read on.
Compressing with Finder
- Select one file, one folder, or several items (hold Command to pick more than one).
- Control-click the selection and choose Compress. The menu item names what you selected, for example Compress “Photos” or Compress 3 Items. The same command is in Finder’s File menu.
- The ZIP appears next to the originals. A single item becomes Photos.zip; several items become Archive.zip (then Archive 2.zip if that name is taken).
Finder doesn’t ask any questions: there is no choice of compression level, format or password. To open a ZIP, double-click it and Archive Utility expands it next to the archive. Archive Utility, the Mac’s built-in archiver explains its settings.
What ends up inside a Finder ZIP
Finder keeps Mac-specific information, such as extended attributes and resource forks, by storing it in extra hidden entries: a __MACOSX folder full of files whose names start with ._. Folders can also carry .DS_Store files, which remember Finder view settings.
On another Mac you never see them. On Windows or Linux, the recipient gets a __MACOSX folder next to the real files. They are harmless and can be deleted, but they look odd, and some upload forms or tools that expect a precise structure (a website theme, a comic reader, an app store submission) trip over them.
To make a clean ZIP, use the zip command in Terminal, which doesn’t create __MACOSX entries, and leave out .DS_Store files:
cd ~/Desktop
zip -r Photos.zip Photos -x "*.DS_Store"
ZIP or 7z: which is smaller?
ZIP uses an old, fast compression method (Deflate). 7z, the format of 7-Zip, uses LZMA2, which typically produces noticeably smaller archives, and can compress many similar files together as one block (“solid” compression).
How much you gain depends on the files:
- Text, code, spreadsheets, logs, uncompressed images (BMP, TIFF), databases: 7z is often much smaller than ZIP.
- JPEG photos, MP4 videos, MP3 or AAC music, most PDFs, apps that are already compressed: neither format shrinks them much, because the data is already compressed. Archiving them is about bundling, not saving space.
The trade-off is compatibility. Macs, PCs, iPhones and most Android phones open ZIP without extra software. 7z needs an app on many systems, so check that the recipient can open it, or point them to openrar.app, which opens 7z in a browser. For a fuller comparison, see RAR vs ZIP vs 7z.
Making a 7z file on Mac
Finder can’t create 7z. You can use:
- OpenRAR for Mac: makes ZIP, 7z and TAR archives, with optional AES-256 password protection for ZIP and 7z. Free for personal use.
- Keka: a long-standing Mac archiver that creates 7z, ZIP and several other formats, with many options.
- 7-Zip’s command-line version for macOS,
7zz. Once installed (see Is there 7-Zip for Mac?), this command makes a 7z of a folder:
7zz a Photos.7z Photos
None of these, nor OpenRAR, creates RAR files: making RAR needs WinRAR’s own software. Creating a RAR file on Mac covers that case and why ZIP or 7z is usually the better choice.
Adding a password
Finder can’t password-protect a ZIP. Terminal can (zip -er), but with weak encryption. How to make a password-protected ZIP on Mac explains the options and why AES-256 ZIP or 7z is the safer choice.
Splitting a large archive
Some services limit the size of a single file. You can split an archive into parts, and the recipient joins them back by opening the first part with a tool that supports split archives.
- With Terminal’s
zip,-ssets the size of each part. This makesVideo.z01,Video.z02… plusVideo.zip:
zip -r -s 1g Video.zip VideoFolder
- With
7zz,-vdoes the same and producesVideo.7z.001,Video.7z.002…:
7zz a -v1g Video.7z VideoFolder
Keep all the parts together in one folder. Not every tool opens split archives: don’t count on Archive Utility for a split ZIP. The OpenRAR browser tool opens split ZIP, 7z and RAR archives when the recipient selects all the parts at once, up to about 2 GB in total on a computer, and OpenRAR for Mac opens split 7z (.7z.001) and RAR archives, larger sets included; Opening split RAR files explains how multi-part archives work.
Splitting is often more trouble than it’s worth. If the file is just too big for email, a share link from a cloud storage service is usually simpler for both sides.
Tips before you send an archive
- Name it clearly. Invoices-2026-Q3.zip tells the recipient what they’re getting; Archive.zip doesn’t.
- Compress a folder rather than loose files, so the recipient gets one tidy folder instead of files spilling into their Downloads.
- Check the size. Select the ZIP and press Command-I to see it. If it barely shrank, the contents were already compressed; that’s normal.
- Test it. Double-click your own ZIP once to make sure it opens before you send it.
- Use ZIP when in doubt. It’s the one format everyone can open.