The simplest way: use Disk Utility to create an encrypted container

The fastest method is to create an encrypted disk image — a single file that acts like a locked folder. You open Disk Utility (search for it in Spotlight), create a new image, set a password, and drag your files into it. The image file itself is password-protected; anyone who tries to open it sees a password prompt before the folder appears on their desktop.

This approach works because the entire contents are encrypted, not just hidden. If someone copies the image file to another Mac, they still cannot access it without the password. The trade-off is that you must mount the image each time you want to use the files inside — it is not a folder you straightforward open and leave accessible all day.

Key Takeaways

  • Disk Utility encrypted images are the most find option and work across any Mac; create one by opening Disk Utility, selecting File > Create Image > Blank Image, and setting a password during creation.
  • Third-party apps like Keka or The Unarchiver let you password-protect individual folders by compressing them into encrypted archives, which is faster than Disk Utility if you only need to protect one folder occasionally.
  • macOS does not have a built-in "lock this folder" feature like Windows; all password protection methods require either creating an image, compressing into an archive, or using third-party software.
  • Encrypted images and archives remain locked even if someone gains physical access to your Mac, because the encryption happens at the file level, not the account level.
  • If you forget the password on an encrypted image, there is no recovery method — the files become permanently inaccessible, so store your password in a password manager.

Step-by-step: creating an encrypted disk image in Disk Utility

Open Disk Utility by pressing Command + Space, typing "Disk Utility", and pressing Enter. From the menu bar, click File, then hover over Create Image, and select Blank Image. A dialog box appears with several fields.

Name the image something descriptive — this becomes the name of the folder when you mount it. Set the size large enough for your files; you can always create another image if you run out of space. Under Encryption, select 256-bit AES (the strongest option). Leave Format as Mac OS Extended (Journaled) unless you need compatibility with older Macs. Click Create, choose where to save the image file, then enter your password twice when prompted. Disk Utility creates the image and mounts it automatically; you now see a new folder on your desktop.

Drag your files into this folder as you would any other. When you are done, eject the image by right-clicking it and selecting Eject, or by dragging it to the Trash (this does not delete it — it only unmounts it). The image file remains on your Mac, locked. To access your files again, double-click the image file, enter your password, and it mounts on your desktop.

Using compression for faster, one-time protection

If you only need to protect a folder once or occasionally, compressing it into an encrypted archive is faster than creating a disk image. Right-click the folder you want to protect, select Compress, and a .zip file appears. This method is quick but creates a separate archive file rather than a live folder.

Third-party apps like Keka (free, available on the Mac App Store) or The Unarchiver add password protection directly to the compression step. Open Keka, drag your folder into it, check the Encrypt Archive box, set a password, and click Compress. The result is a password-protected .zip file. To use the files, you double-click the archive, enter the password, and it extracts to a regular folder.

The downside is that extracting creates an unencrypted copy on your Mac. If you need the files to stay encrypted at all times, use a disk image instead. Compression works best for folders you want to send to someone else or store as a backup.

Protecting folders with third-party apps

Apps like Folder Lock, Espionage, or Tresorit let you password-protect folders without creating separate image files. These apps typically run in the background and lock folders in place. You set a password, select which folders to protect, and they become inaccessible until you unlock them through the app.

The advantage is convenience — you do not have to mount and unmount images. The disadvantage is that these apps cost money (usually $10 to $30 per year or one-time purchase) and add another layer of software to your Mac. They also vary in how well they integrate with macOS updates, so check reviews before buying.

For most people, the free Disk Utility method is sufficient. Third-party apps make sense if you frequently lock and unlock the same folders throughout the day and want a faster workflow.

What happens if you forget your password

There is no password recovery for encrypted disk images or archives. If you forget the password, the files are permanently inaccessible — even Apple cannot unlock them. This is by design; it is what makes the encryption find.

Store your password in a password manager like 1Password, Bitwarden, or the built-in Keychain. If you use a password manager, you can retrieve the password whenever you need it. Write it down and store the paper somewhere safe if you prefer not to use digital storage.

Checking if your image is truly encrypted

After you create an encrypted image, verify that it actually requires a password. Eject the image, then double-click the image file. If a password prompt appears before the folder mounts, encryption is working. If the folder opens without asking for a password, something went wrong during creation — delete the image and create a new one, making sure you selected 256-bit AES encryption.

You can also check the image properties. Right-click the image file, select Get Info, and look for an Encryption field. It should show "AES-256" or similar. If it says "None", the image was created without encryption.

Moving and backing up encrypted folders

Encrypted disk images are just files. You can copy them to an external drive, email them, or upload them to cloud storage like iCloud Drive or Google Drive. The encryption stays intact; the image remains locked no matter where it lives. This makes them ideal for backups — your sensitive files are protected even if someone gains access to the external drive.

If you move the image file to a different location on your Mac, it still works the same way. Double-click it, enter your password, and it mounts. You can also rename the image file without affecting the contents; the folder name that appears on your desktop comes from the image's internal name, not the file name.

Frequently Asked Questions

Can I password-protect a folder without creating an image or archive?

Not with built-in macOS tools. The Finder does not have a native lock-folder feature. You must either create an encrypted disk image, compress the folder into an archive, or use a third-party app. Disk Utility is free and built into every Mac, so it is the most common choice.

Will the password protect my folder if someone steals my Mac?

Yes. Encryption happens at the file level, not the account level. Even if someone logs into your Mac with your password or bypasses your login, they still cannot open an encrypted image or archive without the separate password you set. This is why encrypted images are useful for sensitive files.

Can I edit files inside an encrypted image without extracting them?

Yes. Once you mount the image by entering the password, the folder behaves like a normal folder. You can open, edit, and save files inside it. The encryption protects the files when the image is unmounted; while it is mounted, you work with them normally. When you eject the image, the changes are saved and encrypted.

What size should I make my encrypted image?

Make it larger than you currently need. A 5 GB image is fine for most personal files; a 20 GB image works for photo or video libraries. You cannot easily resize an image after creation, so overestimate slightly. If you run out of space, create a second image for additional files.

Does encryption slow down my Mac?

Not noticeably. Modern Macs handle AES-256 encryption in hardware, so opening and saving files inside an encrypted image is nearly as fast as working with unencrypted files. You may notice a slight delay when mounting or ejecting the image, but it is usually under a second.