How to Password Protect a Folder on a Mac

macOS does not provide a simple Finder command that adds a password directly to an ordinary folder. A built-in way to protect a group of files is to place them in an encrypted disk image created with Disk Utility. The disk image requires its password when it is opened.

Create an encrypted disk image from a folder

  1. Open Disk Utility.
  2. Choose File > New Image > Image from Folder.
  3. Select the folder you want to protect and click Open.
  4. Choose where to save the disk image.
  5. Open the Encryption menu and select an encryption option.
  6. Create and verify a strong password.
  7. Choose an appropriate image format and save the image.

Test it before removing the original folder

Open the new disk image and confirm that the expected files are present and accessible with the password. Only after you have verified the protected copy and have an appropriate backup should you consider deleting an unencrypted original.

Do not forget the password

Apple warns that if you forget the password for an encrypted disk image, you will not be able to open the image and view its files. Avoid storing the password in an obvious location next to the protected image.

Protecting the whole Mac

If your real goal is to protect all data on the Mac when someone does not know your login credentials, use FileVault rather than creating separate disk images for every folder. Disk images are better suited to a specific collection of files that needs its own encryption boundary.

Categories Mac

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy