Passwords are universally regarded as the first line of defense in the software world. Be it when setting up a new device or even while opening an online account, — securing it with a password is the first thing you should do. Passwords are personalized entirely by you, which makes them very difficult to crack.

password protect folders on mac

Of course, you also want to protect folders on your Mac beyond the traditional security systems, such as locking your Mac with Touch ID or a password. Unfortunately, that’s not so easy in macOS, and that’s where this article comes to your rescue. Read on to learn how to protect folders on your Mac.

4 Ways to Password Protect Folders on Mac

Using Disk Utility

Disk Utility is an official tool that is pre-installed on every Mac. It’s a bit tedious, but this method is the safest as you don’t need to install any third-party plugins or apps. Follow the procedure carefully to protect folders on Mac effortlessly.

  1. Open Disk Utility using Spotlight Search (command + space) or Launchpad.
    Open disk utility
  2. Select File from your Mac’s status bar.
    File icon on status bar
  3. Hover the cursor over New Image and select Image from Folder.
    Open image from folder in Disk Utility
  4. Select the folder of your choice from the Finder window and click on Choose.
    Select folder from Finder window in Disk Utility
  5. A new Finder will open where you must choose the type of encryption from the dropdown menu. 128-bit AES encryption works for most scenarios as it is fast and adequately secure. 256-bit AES encryption should be selected for folders containing sensitive documents, although this type is marginally slower than the former.
    Set preferred encryption type
  6. Provide a strong password, or click the key icon to let macOS suggest a randomized passphrase. You can further improve the suggested password’s strength by changing its length and type. Re-enter the chosen password beside Verify to confirm it.
    Set a strong password to protect folders on Mac
  7. Change the Image Format from the Compressed to read/write from the dropdown menu. This enables you to edit the folder’s contents after it’s secured using a password.
    Change file type to read/write
  8. You can change the file name and location where it should be saved by changing the directory from the left panel. Hit Save at the end.
    Save folder protected using Disk Utility
  9. macOS will now create an encrypted .dmg file. You can go ahead and delete the original file if needed.
    Encrypted DMG file created using Disk Utility

Being a .dmg file, macOS will mount it every time before opening. After accessing the files, you must unmount the file by clicking the upward arrow icon beside the file name in the Sidebar. We need not make you aware of the consequences if you forget your password, but if you fear it, here is an apt guide on password managers.

Eject DMG file after you are done with it

Creating Encrypted ZIP Files Using Terminal

A clever way to protect folders on the Mac is to convert them into encrypted zip files. Zip files only require two to three lines of code in Terminal and are easily accessible on other platforms such as Windows, Linux and Android. Learn how to create an encrypted zip file here,

  1. Open Terminal using Spotlight Search (command + space) or Launchpad.
    Spotlight search to search for Terminal
  2. By default, the directory will be set to your Mac’s default SSD, but you can switch to a different location using the command ~cd/name of the location. For example, if you are working with a file present on your Mac’s desktop, you can change the Terminal directory using the command ~cd/Desktop.
    Default file directory in Terminal
  3. Type the following command: zip -er output.zip input
    Here, e stands for encryptedr stands for recursive, output refers to the name with which you wish to save the encrypted zip file, and input refers to the name of the folder to be password-protected. Hit return after entering the command.
    Enter command
  4. Provide a strong password and re-enter it to confirm your choice. PS: you won’t be shown the password as you type, so don’t get confused if nothing shows up while you are typing.
    Enter password in Terminal
  5. An encrypted zip file will be created at the location you were working with on Terminal. You may choose to delete the original file if you so want.
    Encrypted zip file created using Terminal

You’ll be prompted to enter the password every time you open the zip file. Upon entering the correct password, the contents will be extracted at the very location for you to access them. Unlike on macOS, the file names of the zip file’s contents will be exposed on other platforms, like Windows and Linux. However, they will remain inaccessible until you enter the correct password.

Enter password to access encrypted zip file

Using First-Party Apps

First-party apps from Apple, such as Notes, Preview, Photos, Numbers, Keynote and Pages, offer the ability to lock the files you work with using Touch ID and password. This is very seamless and relatively easy to set up.

(a) Notes

Notes is the default note-taking application for Apple devices and comes pre-installed on every Mac.

  1. Open the Notes app and select the note you wish to lock.
  2. Select File from your Mac’s status bar.
    File icon in status bar
  3. Click on Lock Note.
    Lock Note
  4. You can set an entirely new password or stick with your Mac’s default password. The latter also allows you to access your locked notes using TouchID. This can be changed later on in the settings.
    Select new password or continue with old
    Credits: MakeUseOf
  5. If you’ve chosen to set an entirely new password, type a strong password and re-enter it to confirm your selection.
    Set new password for Notes
    Credits: MakeUseOf
  6. A lock icon beside the current note indicates whether the lock is set up.
    Locked note icon

Now that your lock is set up, you can lock any note by clicking the lock icon in the toolbar and selecting Lock Note. It can also be done using the above procedure, but you won’t have to go through the password setup process again.

Lock note directly from toolbar

A locked note remains unlocked until it locks itself after it has been inactive for a while. A note can also be locked manually, but you must first set up a lock using the procedure described above. If this has already been done, select the lock icon in the toolbar and click on Close All Locked Notes. This will lock all notes for which you have set up a lock and you will now have to enter the password or use Touch ID to open them.

Close locked notes

(b) Pages

Pages is a word-processing app by Apple similar to Microsoft Word. It can create and open documents, including those of .docx (Microsoft Word) type.

  1. Install Pages from the App Store.
  2. Open Finder and locate the supported file you wish to lock. Pages supports a handful of file extensions, including .docx, .pages, .text, and .rtf.
    Select supported file type
  3. Right-click the file and hover the cursor over Open With. Select Pages.app from the dropdown menu.
    Open file with Pages
  4. Once the app opens, select File from your Mac’s status bar.
    File icon in status bar
  5. Click on Set Password.
    Set password for Pages
  6. Type a strong password and re-enter it beside Verify to confirm your choice. In addition, you can provide a Password Hint and enable Open via Touch ID for added convenience. Click on Set Password after you are done.
    Enter password for Pages
  7. Once set, press command + S to save the changes made to your document and exit the application. Your file will now be locked and present at the exact location as before.
    Encrypted Pages file saved at original location

By default, Pages exports documents with a proprietary extension – .pages, but it does allow exporting documents to PDF or Word (.docx), and that too with encryption. This way, you won’t be restricted to using Pages later to access your encrypted file since PDF and Word files can be accessed from any device. To do so,

  1. Select File from your Mac’s status bar.
    File icon in status bar
  2. Hover the cursor over Export to and select the file type to which you wish to export your file. We are choosing Word here.
    Export file to Word document
  3. Enable Require password to open.
    Require password to open for Word
  4. Provide a strong password and re-enter it beside Verify to confirm your selection.
    Enter password for word
  5. Click on Save.
    Save Word file to be exported
  6. Choose where to save your file, give it a new name, or stick with the default one and hit Export.
    Export Word file

(c) Numbers

Numbers is Apple’s answer to Microsoft Excel. It can create and access spreadsheets, including .xlsx (Microsoft Excel) files.

  1. Install Pages from the App Store.
  2. Open Finder and locate the supported file you wish to lock. Numbers supports files with extensions .numbers, .xlsx, .tsv, and .csv.
    Select supported Numbers file
  3. Right-click the file and hover the cursor over Open With. Select Numbers.app from the dropdown menu.Open with Numbers
  4. Once the file opens inside the app, select File from your Mac’s status bar.
    File icon in status bar (Numbers)
  5. Click on Set password.
    Set password for Numbers
  6. Type a strong password and re-enter it beside Verify to confirm your choice. In addition, you can provide a Password Hint and enable Open via Touch ID for added convenience. Click on Set Password after you are done.
    Enter password for Numbers
  7. Once set, press command + S to save the changes made to your document and exit the application. Your file will now be locked and present at the exact location as before.
    Password-protected Numbers file

Like Pages, Numbers, too, exports files with a proprietary extension – .numbers. However, you can export it to other file types that are far more compatible, like PDF or .xlsx (Microsoft Excel). Moreover, you can encrypt them too, and here’s how you can do that,

  1. Select File from your Mac’s status bar.
    File icon in status bar (Numbers)
  2. Hover the cursor over Export to and click on your preferred file type. We are choosing Excel here.
    Export to Excel
  3. Click on the checkbox stating Require password to open.
    Require password to open Excel file
  4. Enter a strong password and confirm it by typing it again in the next section beside Verify. You may also provide a password hint so you don’t forget your password later.
    Enter password for Excel file
  5. Select Save.
    Save Excel file
  6. Choose where to save your file, give it a new name, or stick with the default one and hit Export.
    Set location to export Excel file

(d) Keynote

Keynote is the macOS alternative to Microsoft PowerPoint. It can create and access presentations, including .pptx (Microsoft PowerPoint).

  1. Install Keynote from the App Store.
  2. Open Finder and locate the supported file type to be opened using Keynote. Some supported file types include .key and .pptx (Microsoft PowerPoint file).
    Open supported Keynote file
  3. Right-click the required file and hover the cursor over Open With. Select Keynote.app from the dropdown menu.
    Open with keynote
  4. Once the Keynote app opens, select File from your Mac’s status bar.
    File icon in status bar
  5. Click on Set Password.
    Set password for Keynote
  6. Type a strong password and re-enter it beside Verify to confirm your choice. In addition, you can provide a Password Hint and enable Open via Touch ID for added convenience. Click on Set Password after you are done.
    Type password for encrypting Keynote file
  7. Once set, press command + S to save the changes made to your document and exit the application. Your file will now be locked and present at the exact location as before.
    Encrypted Keynote file

Keynote supports exporting to other file types and not just the default .key extension. You can also export files to .pptx – the file extension for Microsoft PowerPoint files. The following procedure can encrypt them,

  1. Select File from your Mac’s status bar.
    File icon in status bar
  2. Hover the cursor over Export To and select the preferred file type. We are choosing PowerPoint here.
    Export to PowerPoint
  3. Select the option stating Require password to open.
    Require password to open PowerPoint
  4. Provide a strong password and re-enter it beside Verify to confirm your selection.
    Enter password for PowerPoint
  5. Hit Save.
    Save PowerPoint
  6. Choose where to save your file, rename it if required, and select Export.
    Export PowerPoint presentation

(e) Preview

Preview is the default file-viewing application on macOS, and it can be used to lock PDFs. Here’s how to lock a PDF file using Preview,

  1. Open Finder and select the PDF file you wish to lock.
    Select PDF file
  2. By default, PDF files are set to open using Preview, so you can open the PDF as you would. If not, right-click the file, hover the cursor over Open With, and select Preview.app.
    Open PDF with Preview
  3. Once the file opens, select File from your Mac’s status bar.
    File icon in status bar
  4. Click on Enter Password. In case it’s greyed out, select Edit Permissions.
    Edit permissions for PDF
  5. Enable Require Password To Open Document and enter a strong password. Enter it again in the following section to confirm your selection.
    Enter password for PDF
  6. You must provide an Owner Password, too, which will be used to restrict crucial actions like editing, copying, and printing of the PDF file. Verify your owner password by entering it again.
    Enter owner password
  7. You can uncheck the boxes besides permissions to restrict the respective actions. Those actions won’t be executed unless the correct owner password is entered.
    Edit owner permissions
  8. Select Apply to confirm your changes.
    Apply password settings

(f) Photos

The Photos app on Mac can password-protect media files behind a hidden album. Since Photos syncs over iCloud, you can view hidden files on your iPhone or iPad. However, since your Mac’s media files can’t be auto-imported to the Photos app, you must import them manually. Follow the procedure below to set up hidden folders,

  1. Open the Photos app on your Mac.
  2. Select Photos from your Mac’s status bar.
    Photos icon in status bar
  3. Click on Settings.
    Photos settings
  4. Enable Use Touch ID or password. Exit the dialog box.
    Enable use Touch ID for passwords
  5. Open the Finder app and drag and drop the required media files into the Photos app. Alternatively, you can copy and paste the files too.
    Add media files to Photos app
  6. Once imported, select the files to be hidden by dragging your cursor over them.
    Select files to be hidden
  7. Right-click on the selected files and select Hide Photos.
    Right-click on selected files
  8. Click on Hide.
    Hide photos
  9. The photos will now be hidden and placed inside a separate folder named Hidden. The said folder won’t be shown by default.
    Hidden Photos album
  10. Select View from your Mac’s status bar to show the hidden folder.
    View icon in status bar
  11. Click on Show Hidden Photo Album. The folder will now appear in the side panel, which can be accessed using your Mac’s password or Touch ID.
    Show hidden album

Using Third-Party Apps

Encrypto

Encrypto is a free encryption application from MacPaw. Since Encrypto also runs on Windows, files encrypted with Encrypto can be accessed on both platforms. Encrypto also allows you to share files using the same 256-bit AES encryption standard, so you don’t lose anything in that regard either. There are no subscription tiers or ads, although the app is beautifully designed and easy to use. It doesn’t get any better than this. To use the app after the initial setup:

  1. Install and open Encrypto using Spotlight Search (command + space) or Launchpad.
  2. Drag the folder or file to be encrypted into the application.
    Drag files into Encrypto
  3. Enter a strong password, and optionally a hint too. Select Encrypt afterward.
    Enter password for encryption
  4. Wait for the app to finish encrypting the folder, after which you can share or save the file as required.
    Share or save the encrypted file

Folder Lock

Folder Lock is a freemium application for encrypting files. It can encrypt existing folders, create encrypted folders from scratch and decrypt encrypted folders created by the app. The app is well thought out and works as intended. It’s free to use, but a Pro version removes all feature restrictions and removes ads. You can try the pro version before deciding whether to buy it or not. Here’s what you need to do after setting up the app for the first time:

  1. Install and open Folder Lock using Spotlight Search (command + space) or Launchpad.
  2. Select Encryption from the left panel to encrypt an already-present folder. To create a fresh new encrypted folder, click on New Folder instead.
    Select Encryption from left pane
  3. Click on the folder icon to select a folder from your device’s internal storage. Alternatively, you can drag and drop the required file.
    Drag and drop files into Folder Lock
  4. You’ll be given a Recovery Key to save. This will help you decrypt the encrypted folder if you forget the password. Select Save and save the key somewhere safe.
    Save recovery key
  5. Set a strong password and re-enter it to confirm your selection.
    Enter password for Folder Lock
  6. Select Encrypt to and choose the location where you wish to save the encrypted file.
    Encrypt using Folder Lock
  7. Wait for the app to finish the encryption.
    Encrypted folder created using Folder Lock

Password Protect Folders on Mac Effectively

This pretty much sums up the ways in which you can protect folders on the Mac. It’s best to stick to the built- in tools like Terminal and Disk Utility to lock folders on your Mac, as they’re pretty easy to set up and work like a charm. You can lock every common file type, be it images, PDFs, word files, etc., using Apple’s suite of first-party applications – Preview, Photos, Pages, Notes Numbers, and Keynote. You can’t go wrong with third-party offerings like Encrypto and Folder Lock – they are free and work admirably.

FAQs about Password Protecting Mac Folders and Apps

1. Does macOS have an in-built file-locker?

Unfortunately, macOS does not have built-in file/folder protection, but you can set it up with official software such as Disk Utility and Terminal. In addition, first-party apps such as Pages, Notes, Numbers and Keynote have their own password protection functions to encrypt the respective file types.

2. Is the hidden album of the Photos app locally accessible?

No, the hidden album can only be accessed via the Photos app on your iPhone, iPad or Mac. Images or videos imported into the hidden album will even remain accessible locally on your Mac, so you will need to delete the original files after hiding them with the Photos app.

3. What is the Preview app used for?

The Preview app is macOS’ default file viewing application. It can be used to view various file types, including PDFs, images, videos, and more. One of the features of the Preview app includes the ability to lock PDFs, which can be done easily by heading to FileEdit Permissions > Enable Require Password To Open Document.

4. Can third-party apps be used to lock folders natively?

Yes, third-party apps such as Encrypto and Folder Lock are specifically designed to encrypt folders on board. They work miraculously and lock the desired folders behind a password layer. Best of all, both of these applications are free, with only Finder Lock offering an additional Pro version for more extras.

5. Are locked folders deletable?

Dismally, locked folders can be deleted easily, even without requiring you to enter the password. So, it’s best to be careful and not accidentally delete the locked folder. Also, keep your Mac away from kids or strangers, as they may delete your locked folders containing sensitive files.

6. Which first-party apps can be used to lock files?

Apple’s first-party offerings, like Pages (alternative to Microsoft Word), Keynote (alternative to Microsoft PowerPoint), Numbers (alternative to Microsoft Excel), Notes (default note-taking app on macOS), Photos (photo library), and Preview (default file-viewing application), have the option to encrypt files locally using passwords and Touch ID.

Was this article helpful?
YesNo