1. Stello
  2. Guides

How to make a ZIP on a Mac without __MACOSX and .DS_Store files

You send a ZIP to a client and they ask what the __MACOSX folder is. Or they find mysterious .DS_Store files next to your documents. This guide explains where those files come from and how to send clean ZIPs from your Mac.

What Windows users see in a Mac ZIP

Control-click files in the Finder and choose Compress, and you get a ZIP file. Open it on Windows and you may find:

Opened on Windows
  • __MACOSX
  • .DS_Store
  • ._Proposal.pdf
  • Proposal.pdf
What you meant to send
  • Proposal.pdf

Where these files come from

.DS_Store files store how a folder looks in the Finder, such as icon positions and view settings. The __MACOSX folder and ._ files hold extra Mac information about each file. They're invisible on a Mac, but Windows shows them as ordinary files.

Accents can look broken because Mac file names may store a letter like “é” as “e” plus a separate accent mark. Windows may display the two parts separately.

Leave them out with built-in tools

Option 1: The zip command in Terminal

The zip command that comes with macOS doesn't add a __MACOSX folder, and you can tell it to skip .DS_Store files. In Terminal, go to the folder that contains what you want to zip:

cd ~/Desktop
zip -r Proposal.zip Proposal -x "*.DS_Store"

Add -e to be asked for a password:

zip -er Proposal.zip Proposal -x "*.DS_Store"

Option 2: Clean up before compressing

You can't easily remove hidden files in the Finder, so in practice the Terminal command is the dependable built-in option. Either way, you need to remember to do it every time.

Method__MACOSX and .DS_StorePasswordEffort
Finder CompressIncludedNoLow
zip in TerminalCan be left outYesNeeds a command
Stello Make a ZIPLeft outYesJust drop files

Make clean ZIPs every time with Stello

Stello's Make a ZIP card does all of this at once:

How to use it

  1. Hold down the right ⌘ key to bring up the cards
  2. Drop files or folders on the Make a ZIP card
  3. Turn on the password if you need it and click Make ZIP

The ZIP is saved next to the original files and selected in the Finder, ready to attach.

Summary