How to Password Protect Folder on Mac with/without Disk Utility

Rosa Reyes
June 13, 2022 Preview 70.8K Preview 3
share it facebook share it Twitter

Can you password protect a folder on Mac? The answer is yes, and it’s easy to do. This article will show you how to password protect folder on Mac without Disk Utility or with it. By protecting a folder with password, you can prevent others from accessing any file in this folder.


Method 1. How to password protect folder on Mac with a third-party app

Important: Regardless of the method you use, it’s important to remember the password you set.

Mac allows you to easily password protect a PDF or document and also provides FileVault to encrypt your startup disk. But it doesn’t offer a way to put password on folder. Luckily, you can use third-party folder encryption software such as F-Vault and MacFort (not officially available anymore). F-Vault is a great app to give you the ability to password lock the folders and files on your Mac.

Steps: How to password protect folder on Mac without Disk Utility

1. Download F-Vault from the App Store on your Mac.

2. When you open it for the first time, set a password. Provide your email for password recovery if needed.

a window asking you to set a password

3. You will see a vault-folder named Default. You can also create new vault-folders.

the screenshot of Vault where folders will stay protected with password

4. Drag the Mac folder that you want to protect into Vault or a vault-folder.

5. When asked if you want to delete the original files, click Delete. Or, you can do it manually later.

Now your folder is protected with password.

The folder and the files in it are in the encrypted vault which no one can access without knowing the correct password. Also, when you try to search for the folder (or a file in it) in Spotlight or Finder, it won’t appear in the search results.

To access the folder and its files, launch F-Vault, enter the password and click OK. It’s that easy. To make them inaccessible again, quit F-Vault.

Tip: How to unprotect a protected folder on Mac

If you don’t want to keep a folder private anymore, you can remove password protection from the folder by dragging it out from the vault to a desired location such as the Desktop.

Method 2. How to password protect folder on Mac using Terminal

The first method is about putting the folder you’d like to protect in an encrypted vault. If you need to encrypt the folder itself and don’t want to use Disk Utility, you can use Terminal, the free terminal emulator built in to macOS. With Terminal, you can turn a folder into a password encrypted ZIP archive file.

If you want to password protect a folder to send in an email, just use this method.

1. Launch Terminal on your Mac. You can use Spotlight or go to Finder > Applications > Utilities.

2. Suppose you need to password protect the folder “Test A” in Documents. Control-click “Test A” in Finder and choose Get Info.

3. In the new window that appears, go to the General section, highlight the location path (after Where) and copy it.

the General section displaying the location path of a folder

4. Return to Terminal. Type cd and a space and paste the path. Hit Return.

a screenshot of cd being typed in Terminal

5. Type ls and hit Return.

6. Type zip –er “Test A”. Here “TestAProtected” is the name you give to the ZIP file. Hit Return.

7. Now it will ask you to set a password. Enter a password and hit Return. Verity it. Hit Return.

the Enter Password prompt

Go to the Documents folder on your Mac, and now you can find a ZIP archive file named

a password-protected ZIP archive file appearing in the Documents folder

If you double-click the archive, the Archive Utility dialog box will pop up asking you to enter the password.

the Archive Utility dialog box asking for password

Method 3. How to use Disk Utility to password protect folder on MacBook and iMac etc.

I would like to password protect file folders (under Documents) so even if I leave my computer on, someone cannot just open up some sensitive files. How do I do that? If not by folder, do I have to password protect each file? How do I do that? - A question on the Apple Discussions forum

Disk Utility is a system utility available for free on every Mac. It allows you password protect a Mac folder by turning it into an encrypted Apple Disk Image (.dmg) file. This method works on macOS Ventura, Monterey, Big Sur, Catalina, Mojave, High Sierra, Sierra and earlier versions. It can also work with external hard drives.

Note: If you encrypt a folder using Disk Utility and then send it to someone, the recipient will need a Mac to do the decryption. If the recipient is a Windows PC user, you can use Terminal to get the job done.

To open Disk Utility, click the Spotlight icon in the menu bar, type in Disk Utility and hit Return/Enter. Or, go to Finder > Applications > Utilities and find the app. The steps below show you how to use it to do the encryption.

1. In Disk Utility, from the menu bar, select File > New Image > Image from Folder.

the File menu in the Disk Utility menu bar is selected

2. Select the folder you want to lock with password and click the Choose button.

3. In the dialog box that appears, choose a location to save the .dmg file. Edit the name if needed.

4. There are two encryption options: 126-bit AES encryption and 256-bit AES encryption. Select the one you need.

a screenshot of two encryption options

5. When prompted, enter and verify your password. Click Choose.

a prompt asking you to set the password

6. There are a few Image Format options. When you password protect folder on Mac, with the option read-only or compressed, you won’t be able to change the files in the protected folder. With read/write, you are allowed to change the files.

a screenshot of five Image Format options

7. Click Save. And it will start creating folder disk image.

Now the folder is locked by password. When you or someone else tries to open the .dmg file, a dialog box will pop up asking for password. Those who don’t know the correct password won’t be able to open the disk image and access the files in it.

Once you enter the correct password, the file will appear in the sidebar of Finder. Select it and you will be able to find all the files in your folder. To password protect it again, control-click the file in the sidebar and select Eject. This will unmount the disk image file. If you are on Mojave or later, you can directly click the eject icon.

Note: The original folder is still there on your hard drive with all the files in it. If your purpose is to prevent other users of your Mac from being able to access these files, you need to delete the original folder and then delete it permanently in Trash.

Tip 1. How to add files to password protected folder on Mac?

To be able to do this, create a password-protected folder first. In Disk Utility, from the menu bar, select File > New Image > Blank Image. Configure Encryption, Image Format and other options. Set the maximum size that you want. When created, it lets you add files when it’s mounted in Finder.

Tip 2. How to protect Dropbox folder with password on Mac

Many Mac users also wan to know how to protect a folder in Google Drive, OneDrive or Dropbox. A practical way is to encrypt a folder before you upload it to the cloud. Although cloud storage services already require email address and password to access a user’s account and files in it, this can add an extra layer of security.

When it comes to sharing a folder with protection, you can change the share settings so that only specific people can open the folder.

Bonus tip 1. How to hide a folder on Mac

If you only want to hide a folder from being seen, this tip is for you.

1. In Terminal, type chflags hidden.

2. Drag the folder that you’d like to hide into the Terminal window.

drag folder to hide

3. Press the return key.

To unhide the folder, just change “hidden” to “nohidden”.

Bonus tip 2. How to protect apps with password on Mac

In addition to password protecting folder on Mac, you can also use password to lock apps on iMac, MacBook Pro, etc., which can protect privacy and offer other benefits. AppCrypt is the best app locker for Mac and offers the following features.

Free Download

1. Download and install AppCrypt.

2. When you launch the app for the first time, you will be required to set a password. Please do remember the password.

a prompt asking asking the first time user to set a password

3. Choose the App Lock tab. From the Applications folder, select an app and click Open. To protect multiple apps, mass select them.

the Add App button

It’s that easy. When you or anyone else tries to launch a locked app, a window will appear asking for password. If the password entered is wrong, the app won’t open.

a window asks for the password

In addition, there will be a record of the failed attempt and a photo of the person trying to break in.

a record of the failed attempt


This article mainly talks about different ways to password protect folder on Mac without Disk Utility or with it. Regardless of your intent, be it stopping others from viewing certain folders on your Mac or encrypting a folder for emailing, these methods can be useful.

Rosa Reyes
share it facebook share it Twitter

Rosa has worked in Mac software industry for more than eight years. She believes that the purpose of software is to make life better and work more productively. In addition to writing, Rosa is also an avid runner.

share it facebook share it Twitter
Comments (3) Leave a Reply

Name *

Comment *

  • Alex

    Well written, Rosa. I just got the new Mac Book Pro M2 chip, so I am learning the Apple OS, and all the tip and tricks. Of course, articles like yours, help me a lot to understand the Apple OS. The Method 3. How to a folder using Disk Utility definitely was a plus for me. Thank you very much.

    0 months ago Reply

    Name *

    Comment *

  • Dedan

    I'm apt to give AppCrypt a try, but I see it can not lock folders. What a pity! If I want to use it lock Office Document on my Mac computer, will this be came true?

    6 years ago Reply

    Name *

    Comment *

    • Rosa Reyes

      Hi Dendan, Thanks for your attention. It is safe to say, AppCrypt can lock Office Document App, but is unable to lock folders directly.

      6 years ago
  • Patrick Lane

    Thanks a lot for your post ... Patrick (MySafe developper)

    7 years ago Reply

    Name *

    Comment *

Hot Articles

How to Block Porn on Safari on Mac, iPhone and iPad Easily How to Block Reddit Entirely or Just a User on It Cisdem AppCrypt User Guide
Home > How to Password Protect Folder on Mac with/without Disk Utility