Skip to content
Coffer
Try free
Guide

How to password protect a folder on a Mac

By the Coffer team · Updated

Short answer: macOS cannot put a password on a normal folder. The safe built-in way is an encrypted disk image made with Disk Utility. If you open the files often, a vault app such as Coffer does the same job with previews, Touch ID and one-key locking.

Option 1: an encrypted disk image (free, built in)

  1. Open Disk Utility and choose File → New Image → Image from Folder.
  2. Select the folder, then set Encryption to 256-bit AES and enter a password.
  3. Choose read/write as the image format if you want to add files later, and save the .dmg.
  4. Delete the original folder. From now on, double-click the image and enter the password; eject it when you are finished.

Strengths: free, strong encryption, works on any file type. Limits: while mounted the folder is open to anyone at your Mac, and you unlock everything at once.

Option 2: password protect single documents

Good for sending one document. It doesn't scale to a whole folder of mixed files.

What to avoid: a Terminal zip with a password

The classic zip -e command password-protects an archive, but it uses an older encryption scheme that is considered weak. Don't rely on it for passports, tax papers or recovery phrases.

Option 3: a vault app (Coffer)

Coffer keeps your files in one encrypted vault on your Mac: Argon2id turns your passphrase into the key and every file is encrypted with XChaCha20-Poly1305. Instead of mounting and ejecting an image, you drag files in and open them one at a time; photos, videos, PDFs and Office files preview in memory. Lock with ⌘⇧L, on sleep or after idle, and unlock with Touch ID or your passphrase. Try it free for 7 days.

Which should you use?

SituationBest choice
One folder, rarely opened, freeEncrypted disk image
Sending one document to someonePassword on the PDF or Office file
A library you open often (documents, photos, videos, keys)Coffer

Frequently asked questions

Can you put a password on a folder on a Mac?

Not directly. macOS has no "lock this folder" setting. The built-in way is to put the folder in an encrypted disk image with Disk Utility, which asks for a password to open. Vault apps like Coffer give you the same result with previews and a one-key lock.

Is a password-protected zip file secure?

A zip made with the Terminal command zip -e uses an old encryption method that is weak by today's standards, so it is not a good choice for sensitive files. Use an encrypted disk image or a vault app instead.

How do I password protect a single PDF on a Mac?

Open it in Preview, choose File → Export, tick Encrypt and enter a password. Pages, Numbers, Keynote and Microsoft Office also have a Set Password or Encrypt option for single documents.

Does FileVault password protect folders?

No. FileVault encrypts the whole disk and is tied to your login. It does not add a separate password to a folder.

What if I forget the password?

With a properly encrypted image or vault, nobody can recover it for you. Keep the password in a password manager, and with Coffer keep the recovery phrase it gives you somewhere safe.

zzz

Keep it private. Keep it on your Mac.

Download Coffer and try everything free for 7 days, no card and no account. Then pay once, from $9.

Checkout opens at launch

Coffer isn't on sale yet, so nothing was charged. Try it free for 7 days in the meantime: everything works, and you can buy as soon as checkout opens.

Try free for 7 days

Secure checkout by Dodo Payments. Prices in US dollars; taxes are added where they apply.