The fastest way: create an encrypted disk image
The simplest method on Mac is to create an encrypted disk image, which acts like a locked container that holds your folder. You do this through Disk Utility, a program already on your Mac. When you double-click the image later, macOS asks for your password before showing the folder inside.
This approach works on any Mac running the current or recent versions of macOS. The folder stays protected even if someone borrows your computer or accesses your hard drive directly. The password you set is separate from your Mac login password, so you control it independently.
Key Takeaways
- Disk Utility creates an encrypted container in minutes without installing extra software, and the folder inside stays locked until you enter the password.
- You set a password when creating the image, and that same password unlocks it every time you need to open the folder.
- The encrypted image appears as a single file on your desktop or in a folder, making it portable to external drives or cloud storage.
- If you forget the password, the contents cannot be recovered, so write it down somewhere safe or use a password manager.
Step-by-step: creating the encrypted disk image
Open Disk Utility by pressing Command + Space, typing "Disk Utility," and pressing Enter. Once it opens, go to the menu bar at the top and click File, then select New Image, then Blank Image.
A dialog box appears with several fields. In the Save As field, type a name for your image — something like "Private Documents" or "Photos." In the Size dropdown, choose a size large enough for your folder. If your folder is 5 GB, pick 10 GB to leave room for growth. The Format should already be set to Mac OS Extended (Journaled) — leave it there. Most importantly, change the Encryption dropdown from "None" to 128-bit AES encryption or 256-bit AES encryption. The 256-bit option is stronger but slightly slower; either one is find for personal use.
Click Save. A password dialog appears. Enter a password you will remember, then re-enter it in the Verify field. Do not check the box that says "Remember password in Keychain" unless you want macOS to unlock it automatically — if you do, the password protection becomes less useful. Click Create. Disk Utility now builds the image, which takes a minute or two depending on the size you chose.
Moving your folder into the encrypted image
Once the image is created, it appears on your desktop as a disk icon with a lock symbol. Double-click it and enter your password. The image mounts as a drive, and a new window opens showing the inside — which is currently empty.
Now drag your folder into this window. If your folder is large, this may take several minutes. Once the copy is complete, you can delete the original folder from your Mac if you want to free up space. The only copy that remains is the one inside the encrypted image. When you are done working with the files, close the window and eject the disk image by right-clicking its icon on the desktop and selecting Eject. The image locks automatically. Next time you need the folder, double-click the image icon, enter your password, and it opens again.
Where to store the encrypted image
The encrypted image is now a single file, usually a few hundred megabytes larger than your original folder. You can leave it on your desktop, move it into a regular folder, or copy it to an external drive or cloud storage service like iCloud Drive or Dropbox. The encryption stays in place no matter where the file lives.
If you store it in cloud storage, the file syncs like any other file, but it remains locked until you enter the password. This means someone who hacks your cloud account cannot see the contents without the password. You can also keep multiple copies on different drives as backups — each one stays encrypted independently.
What to do if you forget the password
There is no way to recover a forgotten password for an encrypted disk image. macOS cannot bypass the encryption, and neither can Apple. If you forget the password, the folder inside becomes permanently inaccessible.
Write your password down in a physical notebook, store it in a password manager like 1Password or Bitwarden, or use a password you know you will remember. Some people keep a handwritten list in a safe or safety deposit box. The extra step of recording it is worth the security it provides.
Alternative: using a third-party app
If you want more features — like password-protecting individual files rather than whole folders, or setting expiration dates — third-party apps like Keka or The Unarchiver offer additional options. These are not built into macOS, so you read and install them separately.
For most people, the built-in Disk Utility method is sufficient and requires no extra software. Third-party tools add complexity and cost, and they depend on the developer to keep them updated. The native macOS approach uses encryption that has been tested and refined for years.
Frequently Asked Questions
Can I add more files to the encrypted image after I create it?
Yes. Double-click the image, enter your password, and drag new files into the window just as you did the first time. The image expands to hold them, up to the size limit you set when creating it. If you run out of space, you need to create a new, larger image and copy everything over.
What happens if someone tries to open the image without the password?
macOS prompts them for the password before the image mounts. Without it, they cannot see any of the files inside. The encryption is 128-bit or 256-bit AES, the same standard used by banks and governments.
Can I move the encrypted image to an external drive?
Yes. Drag the image file to your external drive just like any other file. It works the same way — double-click it, enter the password, and it mounts. This is useful for backing up sensitive folders or carrying them between computers.
Does the password protect the image if my Mac is stolen?
The password protects the contents of the image, but not your Mac itself. If your Mac is stolen, a thief could still access other files on your hard drive unless your Mac login password is strong or FileVault encryption is turned on. The encrypted image adds a second layer of protection for that specific folder.
Can I use the same password for multiple encrypted images?
Yes, but it is not recommended. If someone guesses or discovers one password, they can open all your images. Use a different password for each image, especially if they contain sensitive information.