How to Password Protect Folders and Individual Files on Mac

Data can have real value, and like anything valuable, sometimes it needs to be kept locked away — to stop other people looking at or stealing it. For example, if you have sensitive content or secret projects stored on your Mac, you’ll want to stop people from opening them.  


That’s especially true if you share your Mac with other people, but computers are also vulnerable to privacy breaches from outside forces. Thankfully, it’s easy to password protect files and folders on your Mac using built-in or third-party tools. And because you’ll encrypt the data at the same time, you’ll make it unreadable to anyone who doesn’t have your password.


Before we start 


Concerned about your privacy? Try MacKeeper. It includes a complete virtual private network (VPN) tool, which keeps your web traffic secret, while also hiding your location. That means no one, not even your internet provider, can spy on you. It also offers security, optimization, junk cleaning, and more.

How to password protect folders on your Mac

Password protecting Mac folders rather than individual files is useful for a couple of reasons. As well as letting you lock multiple files or folders at once, it means you can easily add and remove files from your password-protected folder at any time.  

Password protecting Mac files with built-in tools

Creating a password protected folder is easy using macOS’s built-in Disk Utility. It simply creates a .dmg archive file, using AES encryption, which you can only open with a password.


Here’s how to password protect folders with Disk Utility:

  1. Open Disk Utility from Applications > Utilities > Disk Utility.
  2. From the menu bar, select File > New Image > Image from Folder.
  3. Now select the folder you want to password protect, and click Choose.
  4. If you want to, choose a name or location for your protected folder. Open the Encryption, dropdown menu, and make a choice (128-bit AES encryption should be enough), and click Save.
  5. Enter a password, and click Choose when you’re done.
  6. Alternatively, click the key icon, and let macOS create a strong password for you. Again, click Choose when you’re finished.
  7. Expand Image Format and choose read/write. This will let you add and remove content from your protected folder later.
  8. Finally, click Save.
  9. Wait for Disk Utility to finish encrypting your folder  .
  10. When it’s done, you’ll be left with a password protected disk image and the original folder. If you don’t need the old folder, you can delete it.
  11. To open the locked folder on your Mac, simply double-click the .dmg file to open it, then enter your password when requested. With the correct password, the disk image will mount, and you’ll be able to access the contents, including adding or removing files and folders.
To password protect folders with Disk Utility on a Mac, opening Disk Utility first from Applications > Utilities.
Step 1. Applications > Utilities > Disk Utility
Then, when in the Disk Utility app, create a new image from the folder by going to File > New Image > Image from Folder.
Step 2. File > New Image > Image from Folder
To proceed further, choose fa older to encrypt in macOS Disk Utility, finding its location through the navigation pane. Click Choose.
Step 3. Select the desired folder > Choose
As a next step of the password protection process, name and locate your folder, choose the encryption type you prefer, and click on Save.
Step 4. Name and locate the folder > Encryption > Choose the type > Save
Now, the Disk Utility app will ask you to enter and verify your password. When it's done, click on the Choose option.
Step 5. Enter the password > Choose
As an alternative way to do it, you can click the key icon and let macOS create a strong password for you. Again, click Choose when you’re finished.
Step 6. Key icon > macOS creates a strong password for you
Now, in the Disk Utility app, choose read/write in as the encryption type to password protect the chosen content on Mac.
Step 7. Save As > Image Format > choose read/write
As your final settings for the encrypted folder in macOS Disk Utility, check the information you've entered and click on the Save button.
Step 8. Click Save
Now, you can observe the process of creating a folder disk image in macOS Disk Utility. Wait until it's finished.
Step 9. Wait until the encrypting of your folder is done
When the process of the folder password protection is finished n macOS Disk Utility, confirm it with Done.
Step 10. Now you have a password-protected image > Done
Now, you can see the final notification window asking you to enter the password one more time and finalize the file password protection on your Apple device.
Step 11. Enter your password > OK

Password protecting Mac files with third-party tools

If you want more features, you might want to consider a third-party app to password-protect folders on your Mac. Another big drawback with the Disk Utility method is that anyone can find and even delete your password-protected folders. Third-party apps may help you to get around these limitations.


Check out these third-party apps if you want to lock folders on your Mac:

How to password protect individual files on Mac

Most of the time, it’s easier just to encrypt and lock Mac folders rather than trying to password-protect individual files. But if you only want to protect one or two files, it might make sense to do it this way instead.  

Password protecting files using built-in Mac tools

macOS doesn’t actually have any way to do this, but you can lock individual files using certain native apps, like Notes, Pages and Numbers.


Simply follow these steps:

  • In Pages, Numbers and Keynote, choose Files > Set Password from the menu bar. Enter a password, and click Set Password
Password protecting a file in Apple Pages.
  • In Notes, right-click on a note, then select Lock Note. Enter a password, and select Set Password 
Password protecting a file in Apple Notes.

Password protecting files with third-party tools

Similar to native apps, often the best way to password protect individual files is to use the apps they were created in.  


For example, you can password protect files in:

  • Microsoft Office
  • Open Office
  • LibreOffice

You can also encrypt and password protect files in Encrypto, but it just creates a locked version, leaving the old, unlocked version behind.  


It’s useful to be able to password protect individual files in apps like Office, but most of the time, it’s easier and more convenient to lock whole folders on your Mac. That way, you can add and remove files from your protected archive whenever you want, and you only have to remember one password for everything in each locked folder.  


If you don’t need any special features, then Disk Utility will be just fine for most purposes. Third-party encryption tools are worth checking out, particularly as ones like Encrypto and VeraCrypt are available free of charge.  


Whatever you do, make sure to use strong passwords to protect your valuable data. After all, there’s no point in password protecting your Mac files and folders if your password is easy to crack.  


You can also protect your privacy further with MacKeeper. Its built-in VPN client will encrypt your web traffic and hide your location. It also has an ID Theft Guard feature, which alerts you if your website login details are stolen or uploaded to the web by hackers. Plus it offers all kinds of other features to keep your Mac in tip-top condition.

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.



Want to protect your device?

Start Now

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

How to Remove Windows Defender Security Warning Scams
How to Remove Windows Defender Security Warning Scams
All the Ways to Lock Screen on Your Mac
All the Ways to Lock Screen on Your Mac

Run Application


Click Continue


Click Install


Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.