macOS does not offer a simple “add password” button for ordinary folders, which surprises many new Mac users. Once you know how to password protect a folder on Mac, though, you will find the built-in method is actually stronger than a simple lock: it creates an encrypted disk image that behaves like a folder, opens only with your password, and protects its contents with proper encryption rather than a cosmetic password prompt.
This guide walks through creating that encrypted image step by step, choosing the right size and password, and using it day to day. It also covers the sensible alternatives, such as locking individual notes and files, so you can pick the protection level that matches what you are actually trying to keep private — whether that is tax documents, client work, or a folder of personal photos.
How to Password Protect a Folder on Mac With Disk Utility
The official method uses Disk Utility, which is already on your Mac — no download, no subscription, nothing to install. It turns a folder into an encrypted disk image (a .dmg file) that only opens with your password. While it is mounted it behaves exactly like a normal folder. When you eject it, the contents are locked again, scrambled behind AES encryption that is the same standard banks and governments rely on.
- Open Disk Utility. Go to Applications, then Utilities, then Disk Utility. You can also press Command + Space, type “Disk Utility”, and press Return.
- Choose Image from Folder. In the menu bar, click File, then New Image, then Image from Folder.
- Select the folder you want to protect. Pick the folder in the file picker and click Choose.
- Set the image format to read/write. In the save dialogue, set Image Format to “read/write” if you want to add or edit files later. The read-only option locks the contents permanently, which is only useful for archives you will never change.
- Choose your encryption. Set Encryption to 256-bit AES — the stronger option, with no noticeable speed penalty on any modern Mac. 128-bit AES is also available, but there is no good reason to pick it.
- Set a strong password. Type a password you do not use anywhere else, confirm it, and click Choose. Then save the image somewhere easy to find, such as your Documents folder.
Once created, the encrypted image appears as a DMG file. Double-click it, enter the password, and it mounts like a drive where you can add, edit, and remove files. Eject it when finished and the contents are locked again. The whole process takes about five minutes the first time and seconds to use each day.
- Open Disk Utility and choose Image from Folder
- Select the folder you want to protect
- Choose AES encryption to enable the password
- Pick read/write format to add files later
- Save the image somewhere easy to find

Choosing Size and Settings for a Blank Image
If your folder will grow, converting an existing folder is the wrong starting point. A converted image is sized to fit what is already inside it, with little room to spare. Instead, create a blank image: in Disk Utility choose File, then New Image, then Blank Image, set the size you need, pick encryption, and save. A blank image acts as a secure container you fill over time, like a safe you can keep adding things to.
The catch is that the size is fixed at creation, so be generous. An image that is too small cannot be expanded easily later, and resizing an encrypted image is a fiddly process most people would rather avoid. If you are protecting a photo collection that grows every month, give yourself at least double the space you think you need. Disk space is cheap; running out of room inside a locked container is not.
- Use a blank image for files you will add over time
- Choose 256-bit AES for the strongest encryption
- Set a generous size; it cannot grow later
- Name the image clearly but not revealingly
- Keep the original folder until you verify the image works
One small naming tip: do not call the image something like “Secret Tax Files 2026.dmg”. Anyone who sees the file name learns exactly what is inside. A neutral name such as “Archive-2026.dmg” or “Personal.dmg” keeps the contents private even before the password comes into play.
Test the Image Before You Delete the Originals
After creating any encrypted image, test it properly before trusting it. Mount it with the password, copy a file in, eject it, and mount it again to confirm the file is there. Only then delete the unprotected originals — and empty the Trash, because protected copies mean little while the originals still sit openly on the drive or in recently deleted items.
This step matters more than it sounds. The most common failure in folder protection is not a weak password or a software bug; it is a user who encrypted a copy, left the original on the Desktop, and believed the job was done. Anyone opening that Mac would find the files in plain sight. Test first, delete second, empty the Trash third.
Using Your Protected Folder Day to Day
Working with the mounted image feels just like a normal folder, with a couple of habits to build. Always eject the image when you finish, because while it is mounted, anyone using your Mac can open it without the password. That includes a colleague who borrows your laptop for a minute, or a family member who sits down at your desk. A mounted image is an open image — the password only protects it while it is closed.
Be careful with the “remember password in keychain” option when mounting. It is convenient on a private Mac, but it defeats the purpose on a shared machine, since the keychain can open it automatically without asking. If anyone else ever uses your Mac, leave that box unchecked.
- Eject the image every time you finish using it
- Skip keychain saving on shared computers
- Back up the DMG file like any important data
- Never store the password in a note beside the image
- Mount only when needed rather than all day
Also remember that the encrypted image is a single file, which makes backups easy but means corruption would affect everything inside. Keep a copy in your normal backup routine — if you back up your Mac to an external drive, make sure the DMG is included, and check our guide to backing up an iPhone to an external hard drive if you use the same drive for phone backups. For truly irreplaceable documents, consider splitting them into a second image or a secure cloud folder so one file is never the only home for irreplaceable material.

Alternatives for Locking Files and Notes
Not everything needs a disk image. The Notes app lets you lock individual notes with a password or your login biometrics, which is perfect for small amounts of sensitive text — a list of account numbers, a private journal entry, a draft you are not ready to share. Many apps, including Pages, Numbers, and PDF tools, can save documents with their own passwords. Preview can add a password to a PDF in its export options, which is handy for sending a single protected file to someone else.
For whole-machine privacy, your Mac login password plus FileVault full-disk encryption is the real foundation. An encrypted folder protects specific files even if someone gains access to your account, while FileVault protects everything if the Mac itself is lost or stolen. Used together, they cover both the shared-desk and the lost-laptop scenarios completely.
- Lock sensitive notes directly in the Notes app
- Set passwords on individual documents in office apps
- Export PDFs with a password from Preview
- Use separate user accounts for shared Macs
- Enable FileVault to encrypt the whole drive
Separate user accounts deserve a mention for shared Macs. If your partner or children use the same machine, a second account with its own login gives everyone a private home folder without any disk images at all. It is the simplest answer when the privacy boundary is between people, not between files.
What to Do If You Forget the Password
Be clear-eyed about this before you create the image: if you forget the password to an encrypted disk image, the contents are gone. Apple cannot unlock it, repair shops cannot unlock it, and brute-force tools are not a realistic answer against proper AES encryption. That permanence is exactly why the protection is trustworthy, and why password management matters here more than anywhere else on your Mac.
- Store the password in a reputable password manager
- Consider a written backup stored securely offline
- Test the password right after creating the image
- Do not rely on memory for rarely opened archives
- Tell a trusted person where the password is kept, if appropriate
If you saved the password to your keychain when mounting, you may be able to retrieve it through Keychain Access by searching for the image name, which has rescued many people. Open Keychain Access from Applications, then Utilities, search for the image name, double-click the entry, tick “Show password”, and enter your Mac login password. Check there before despairing. If it is not saved and the password is truly lost, the honest answer is to delete the image and treat it as a lesson in why password managers exist.

Common Mistakes When Protecting Folders on Mac
The biggest mistake is protecting a copy and leaving the original folder untouched on the desktop, which achieves nothing. Next comes saving the password into the keychain on a shared Mac, quietly removing the protection entirely. People also create images that are too small, choose weak passwords they reuse elsewhere, and forget that a mounted image is an open image until it is ejected.
- Delete originals only after testing the image
- Do not save the password in keychain on shared Macs
- Use a unique, strong password for the image
- Always eject the image when you walk away
- Back up the encrypted image file itself
Another quiet trap is storing the password in a note next to the image — a file called “passwords.txt” sitting beside “Archive.dmg” hands a snoop everything at once. If you need a written backup, keep it somewhere physically separate from the Mac, like a locked drawer, and never label it with the image name.
Frequently Asked Questions
Does macOS have a built-in way to password protect a folder?
Not directly on a normal folder, but Disk Utility can create an encrypted disk image from a folder. That image opens only with your password and works like a folder once mounted.
What happens if I forget the password to my encrypted folder?
The contents cannot be recovered. Apple has no back door into AES-encrypted images. Check Keychain Access in case the password was saved there, and store future passwords in a password manager.
Is 128-bit or 256-bit AES encryption better?
256-bit is stronger and the performance difference is negligible on modern Macs, so choose 256-bit. Both are vastly stronger than the simple password locks offered by many third-party apps.
Can I add more files to a protected folder later?
Yes, if you created the image with the read/write format or as a blank image. Mount it with your password, add files like a normal folder, then eject it to lock everything again.
Do I need third-party software to lock a folder on Mac?
No. Disk Utility is built into every Mac and provides proper AES encryption with no extra cost. Third-party apps can add convenience features, but they also mean trusting another company with your files — the built-in method is the safer default.
The Bottom Line
The Disk Utility disk image is the Mac’s real answer to folder passwords: proper AES encryption, no extra software, and a container that behaves like any folder while it is open. Create it carefully, test it, delete the originals, manage the password properly, and eject it when you are done. Those habits turn a hidden feature into dependable privacy.
