How to password protect a ZIP file on a Mac
3 December 2026
Short answer: macOS’s Terminal can make a password ZIP with zip -er. If you would rather not type commands, use an app. Note that there are two kinds of password: the Terminal one opens in more places but is weak; AES-256 is much stronger but some tools cannot open it.
Way 1: Terminal (free)
- Open Terminal.
- Type
cd(with a space), drag the folder that contains your files onto the window, and press Return. - Type the command below, changing the names, and press Return.
- Type a password twice. Nothing appears while you type.
zip -er protected.zip "My Folder"
This uses the old ZIP password method (ZipCrypto), which can be broken. Use it to keep casual eyes out, not for sensitive documents.
Way 2: Zlurp (no commands, AES-256)
We make Zlurp, a paid Mac app, so weigh this part with that in mind.
Drag your files or folder to Zlurp’s corner icon, choose More → ZIP with password, and type a password.
Zlurp saves a new file ending in -protected.zip next to the original, and leaves the original where it is.
What we tested
| ZIP made with | Encryption | macOS unzip command | bsdtar command |
|---|---|---|---|
Terminal zip -e | ZipCrypto (weak) | Opened it | Not tested |
| Zlurp | AES-256 | Could not open it | Opened it |
Before sending an AES-256 ZIP, make sure the other person can open it. If double-clicking does not work for them, a free app such as Keka on Mac or 7-Zip on Windows opens AES ZIPs. We did not test those two here.
In both kinds of ZIP, the file names stay visible without the password. Send the password by a different route from the file.
Want a stronger ZIP password without typing commands?
Zlurp is $4.99 once for one Mac. No subscription. Your files stay on your Mac.
Buy for $4.99Needs an Apple Silicon Mac with macOS 14 or later. All sales are final, so check this first. See how it works
Can Finder’s Compress add a password?
No. The Compress option in Finder does not ask for a password.
What if I forget the password?
Keep the original files or save the password in a password manager. Do not count on being able to recover it.
Does zipping upload my files?
No. Both ways here run on your Mac.