Yes, but the method depends on what you're protecting
You can password protect a folder on a Mac, but macOS does not have a built-in "lock this folder" button. Instead, you have three real options: create an encrypted disk image that requires a password to open, use third-party software designed for folder encryption, or rely on your Mac's user account login to keep other people out of your entire account. Which one works depends on whether you need to protect a folder from other people who use your Mac, from someone who steals your Mac, or from both.
The encrypted disk image method is free and built into every Mac. It creates a virtual encrypted container that looks like a folder but requires a password before anyone can see what's inside. Third-party apps like Keka or Encrypto add more features but cost money or require setup. Your Mac's login password protects everything in your account, but only while your Mac is locked — if someone has physical access and your Mac is awake, they can see your files.
Key Takeaways
- An encrypted disk image is the free, built-in way to password protect a folder on Mac; you create it in Disk Utility and it works like a password-protected container.
- The disk image method protects your folder from someone who uses your Mac or steals it, but does not protect it if your Mac is already unlocked and you walk away.
- Third-party apps like Keka or Encrypto offer additional features like password-protecting individual files or creating encrypted vaults, but they cost money or require installation.
- Your Mac's login password protects all your files, but only if your Mac is locked; once you are logged in, anyone with access to your computer can see your folders.
Creating an encrypted disk image in Disk Utility
The fastest free method is to create an encrypted disk image. Open Disk Utility (search for it in Spotlight by pressing Command + Space, typing "Disk Utility", and pressing Enter). Go to File > New Image > Blank Image. A dialog box will appear asking you to name the image, choose where to save it, and set its size.
Name the image something you'll recognize — for example, "Private Documents". Set the size to something larger than the folder you want to protect; if your folder is 500 MB, set the image to 1 GB to leave room for growth. Under Format, choose "Mac OS Extended (Journaled)" or "APFS" (APFS is newer and slightly faster). Under Encryption, select "128-bit AES encryption" or "256-bit AES encryption" — 256-bit is stronger but slower. Click Create, then enter a password twice when prompted. Do not forget this password; there is no recovery method.
Once created, the disk image appears on your desktop as a folder icon. Double-click it, enter your password, and it opens like a normal folder. Drag your files into it. When you're done, eject it by dragging it to the Trash or right-clicking and selecting Eject. The files are now encrypted and locked until you mount the image again and enter the password.
Understanding what an encrypted disk image actually protects
An encrypted disk image protects your files from someone who has access to your Mac's hard drive but not your password. If your Mac is stolen, a thief cannot read the files inside the image without the password. If someone else uses your Mac and you're not logged in, they cannot see the files. But if you're logged into your Mac and walk away, anyone can open the disk image if they know where it is — they just need to double-click it and enter the password, which they might guess or find written down.
The disk image also does not protect files while they're open. If you open a document from the encrypted image and leave it on your desktop, that document is no longer encrypted. Once you close it and eject the disk image, it's protected again.
Using third-party encryption software
Apps like Keka, Encrypto, and Folder Lock offer more control than disk images. Keka lets you create password-protected archives and encrypt individual files. Encrypto is simpler — you drag files or folders onto it, set a password, and it creates an encrypted version. Folder Lock creates a virtual encrypted vault that works similarly to a disk image but with a graphical interface.
These apps cost between $5 and $30, though some offer free versions with limited features. They're useful if you want to password protect specific files rather than entire folders, or if you want a simpler interface than Disk Utility. read them from the Mac App Store or the developer's website, install them, and follow the app's instructions to encrypt your folder.
The trade-off is that third-party apps add another layer of software to maintain. If the developer stops supporting the app or your Mac updates in a way that breaks it, you might lose access to your encrypted files. Disk Utility, by contrast, is built into macOS and will work the same way for years.
Protecting a folder using your Mac's login password
Your Mac's login password already protects all your files from other people who don't have your password. If you create a separate user account for someone else and don't give them your password, they cannot see your folders. This is the simplest method if you share your Mac with family members or roommates — just make sure your Mac is locked when you step away.
Lock your Mac by pressing Control + Command + Q, or by going to the Apple menu and selecting Lock Screen. Your files are now protected until someone enters your password. If your Mac goes to sleep, it will lock automatically after a delay you can set in System Preferences > Security & Privacy > General.
This method does not protect your files if your Mac is stolen, because a thief can remove the hard drive and read it on another computer. It also does not protect files if you leave your Mac unlocked and someone sits down at it while you're away.
Comparing your options side by side
| Method | Cost | Protects from other users on your Mac | Protects if Mac is stolen | Protects if Mac is unlocked |
|---|---|---|---|---|
| Encrypted disk image (Disk Utility) | Free | Yes | Yes | No |
| Third-party encryption app | $5–$30 | Yes | Yes | No |
| Mac login password only | Free | Yes | No | No |
Combining methods for stronger protection
You can use more than one method at the same time. For example, create an encrypted disk image for sensitive files, keep your Mac login password strong, and lock your Mac whenever you step away. This way, your files are protected whether someone tries to access your Mac while you're logged in, steals your Mac, or uses another account on your Mac.
If you work with highly sensitive information, consider also enabling FileVault, which encrypts your entire Mac's hard drive. Go to System Preferences > Security & Privacy > FileVault and click Turn On. This protects all your files, including the encrypted disk image, if your Mac is stolen. FileVault takes time to enable and slightly slows down your Mac, so it's most useful if you carry your laptop outside your home.
Frequently Asked Questions
Can I password protect a folder without creating a disk image?
Not with macOS built-in tools. Folders themselves cannot be locked — you need either a disk image, third-party software, or a separate user account. The disk image method is the closest to a direct folder lock and requires no additional software.
What happens if I forget the password to my encrypted disk image?
You cannot recover it. macOS does not have a password reset for disk images. Write your password down in a safe place, or use a password manager like Keychain to store it. If you forget it, the files inside the image are permanently inaccessible.
Can I move files in and out of an encrypted disk image easily?
Yes. Mount the disk image by double-clicking it and entering your password. It behaves like a normal folder — drag files in or out, edit them, delete them. When you're done, eject the image and it locks automatically. The next time you need the files, mount it again.
Does an encrypted disk image slow down my Mac?
Slightly, but not noticeably for most people. Encryption and decryption happen in the background. You might notice a small delay when you first mount the image or save large files to it, but everyday use is unaffected.
Can someone see the encrypted disk image file itself on my Mac?
Yes, they can see the file icon, but they cannot see what's inside without the password. The image file itself is usually small (a few MB to a few GB depending on size), so it's obvious something is there. If you want to hide it completely, move it to a folder that's harder to find, or use a third-party app that hides encrypted vaults.