Home / Apple / How to password protect a folder on Mac [2020 Updated]

How to password protect a folder on Mac [2020 Updated]

You may have sensitive files such as documents, photos, videos, voice memos that you want to keep private from friends and family (if they ever use your Mac). Fortunately, it is easy to put a password in a folder to protect it from others. So without further ado, let’s get to the steps and show you how to encrypt and password protect a folder on your Mac.

How can I password protect a folder on my Mac?

  1. Open Disk Utility. To do this, open Finder β†’ Programs β†’ Tools β†’ Disk Utility. Or press Command + space to open Spotlight Search and enter the name of this app.Open Disk Utility in Finder on Mac
  2. Click on the top menu bar File β†’ New picture β†’ Image from folder.Click File Select New Image, and then click Image for Folder on Mac
  3. Now select the desired folder you want to lock and click Select.Select Folder and click Select in Disk Utility on Mac
  4. Optional: For ‘Save As:’ continue with the same name, or you can also change it. Click on ‘Where:’ and select the desired location to save the disk image. You can move it later too.
  5. Important: For ‘Encryption:’ select 128-bit AES encryption (recommended). The second option here (256-bit) is slower. Select Encryption Options and click Save Please enter the desired password, enter it to confirm, and finally click Select.Enter the desired password and click Select
  6. Important: Click on ‘Image Format:’ and select Read Write.
  7. Finally, click Save.Select the image format to read / write and click Save in Disk Utility on Mac
    The process of creating disk image for folder is Start on Mac
    Folder Disk Image Successfully Created Click Done

You have created a disk image (.dmg file) that is password protected. Let me now show you how to use it.

How to view and re-lock password protected folder on Mac

  1. Find .dmg disk file.
  2. Double-click to open it.Doucle Click on .dmg file on Mac
  3. You will be asked to enter the password. Enter the same password you used while creating the disk image and click OK. (Note: Do not select the “Remember password in my keychain” check box. Doing so may ruin the purpose. The saved password is filled in automatically if someone has the Mac or knows the password.)Enter the password and click OK
  4. After entering the password, you will see a disk image on the desktop. It looks like an external pen drive. Double-click to open it, and you will see its contents.Double-click Disk Image from Mac Desktop
  5. Important: Now delete the original folder so that its contents are removed from the Mac and only available inside this password-protected disk image.
  6. To re-lock the protected folder, right-click and select Release β€œFolder Name”.Right-click on folder and select Eject option on Mac
  7. To reopen it, follow the same process from step 1.


  • This disk image will have almost the same capacity as the size of the original folder. You can freely delete existing content in it and replace it with other content.
  • Do not delete this .dmg file. If you do, everything will be lost.
  • To permanently remove the locked folder, open Disk Utility, β†’ select the disk image from the left sidebar, β†’ right-click on it and select ‘Delete APFS Volume.’In Disk Utility, right-click Disk Image, and then select Delete APFS Volume on Mac

Logging off

How to quickly, securely and freely lock a password folder on your Mac. I hope this guide was helpful and you learned something new.

You can also use third-party apps like Encrypto to encrypt and set passwords on individual files and folders.

do you want to know more? Learn how to password protect PDF files and lock notes on Mac.

Finally, here is an extra tip for you. If you do not want the folder to appear in Spotlight Search, add .noindex after the folder name.

Add noindex by folder name to hide the folder in the Mac search spotlight


I have been an Apple user for over seven years now. At iGeeksBlog, I love creating tutorials and troubleshooting guides to help people do more with iPhone, iPad, Mac, AirPods and Apple Watch. In my free time I like to watch comedy videos, technical documentaries, news debates and political speeches.

Source link