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:
- __MACOSX
- .DS_Store
- ._Proposal.pdf
- Proposal.pdf
- Proposal.pdf
- A
__MACOSXfolder that wasn't in the original .DS_Storefiles, and files whose names start with._- In some languages, accented letters in file names that look split apart or garbled
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_Store | Password | Effort |
|---|---|---|---|
| Finder Compress | Included | No | Low |
| zip in Terminal | Can be left out | Yes | Needs a command |
| Stello Make a ZIP | Left out | Yes | Just drop files |
Make clean ZIPs every time with Stello
Stello's Make a ZIP card does all of this at once:
- Leaves out
.DS_Store, files starting with._and__MACOSX(you can turn this off) - Tidies file names so accented letters display correctly on Windows
- Adds a password if you want one, and can generate a random one
How to use it
- Hold down the right ⌘ key to bring up the cards
- Drop files or folders on the Make a ZIP card
- 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
- __MACOSX, .DS_Store and ._ files are Mac-only extras that Windows shows as normal files
- The zip command in Terminal can leave them out and add a password
- To skip the command every time, drop your files on Stello's Make a ZIP card