Will a folder labeled “Private” discourage casual clicking? It might, but it won’t stop anyone who uses your Mac from opening it. That can be a problem when the folder contains tax documents, scanned IDs, work files, personal photos, or anything else you want to keep to yourself.
There’s no need to worry, though. macOS gives you a way to place those files inside an encrypted disk image that requires a password to open. The process takes just a few minutes. Choosing the right settings (and remembering to lock the folder again when you’re finished) makes a big difference.
What Happens When You Password Protect a Folder on Mac?
macOS doesn’t add a password directly to an ordinary folder in Finder. However, it lets you place the folder’s contents inside an encrypted disk image. The result is a single DMG file that behaves like an external drive when you open it.
It sounds technical, but it’s simple in practice. When you unlock it, the disk image shows up in Finder and works like an external drive. It lets you open, edit, remove, or add files as needed. When you’re finished, ejecting it closes the container and protects everything inside again. This guide to locking a Mac folder with a password gives you a useful overview of how the process works before you start.
This kind of protection is very different from hiding a folder or changing its permissions. Those measures may stop someone from stumbling across your files, but encryption prevents your folder’s contents from being read without the right password.
How to Lock a Folder on Mac Using Disk Utility
Disk Utility is already on your Mac, so it makes sense to try it before downloading anything. Before you start, place all the files you want to protect in one folder and give it a name that won’t attract unnecessary attention.
Create the encrypted disk image
Open Disk Utility from the Utilities folder in Applications.

From the menu at the top of the screen, select File > New Image > Image from Folder. Find the folder you prepared, select it, and click Choose. You’ll see a new window with several settings:
● Enter a name for the disk image and choose where to save it.
● Under Encryption, go for 128-bit or 256-bit AES encryption. Both protect the contents, but 256-bit encryption gives you stronger security.
● Create a strong password that you don’t use for another account.
● Set Image Format to read/write if you plan to add, edit, or remove files later.

macOS may offer to save the password in your Keychain. That’s convenient on a personal device, but it can defeat the purpose if other people use your account. Leave this option unchecked when the folder needs real protection.
Click Save and wait for Disk Utility to create the DMG file.
Open and lock the folder
Now that we know how to lock a folder on Mac with a password, let’s cover the next steps. Double-click the new DMG file and enter your password. The contents will appear in Finder as a mounted drive. You can then use the files normally until you’re finished.
To lock folder on Mac again when you finish using the files, find the mounted disk image in the Finder sidebar and click the eject icon beside it. Simply closing the Finder window will leave the files accessible until you eject the disk image.
Creating the disk image gives you a protected copy of the folder, but the original stays unchanged and unprotected. Here’s what to do before deleting the original:
● Eject the encrypted disk image
● Open it again and enter your password
● Check several files to make sure they open properly, and make sure nothing is missing
● Once you verify the protected copy, delete the original folder
● Empty the Trash, so the unprotected files won’t be accessible
For extra safety, keep a separate backup of any important files that can’t be easily replaced.
Other Ways to Keep Files Private on a Shared Mac
Knowing how to encrypt a folder on Mac is useful when you want to protect an entire folder. However, smaller collections may not need the same setup. The Notes app lets you lock individual notes that contain text, images, scans, and other attachments.
If several family members regularly share a Mac, creating a separate macOS user account for each person also prevents casual access to personal files.
Whatever method you choose, keep in mind that encryption won’t offer much privacy if the password is easy to guess. Avoid names, birthdays, familiar phrases, and passwords you already use elsewhere. A longer password made of unrated words is easy to remember and harder for someone to work out.
The US Cybersecurity and Infrastructure Security Agency recommends creating passwords that are long, random, and unique. It’s best to use at least 16 characters.
Think carefully before saving the password in Keychain, too. It’s great when you’re the only person using the Mac, but it can leave the folder accessible to anyone using your account.
A Few Minutes for Better Privacy
When you set up the encrypted disk image, protecting the folder becomes a simple habit: open it when you need the files, and eject it when you’re done. Disk Utility gives you great control over private files without the need to add another app to your Mac. Just remember that the encryption is reliable only if you set a strong password and maintain a habit of locking the folder afterward.


