We stand with Ukraine to help keep people safe. Join us

Tags Mac Security

How to Password Protect Folders and Files on Mac

If you’re serious about safeguarding your sensitive information, password protection on your files and folders is the most sensible way to go. Think of it this way: if you let someone use your Mac, how can you be sure they aren’t looking through your private files? Your device and all the files on your hard drive can also get stolen. You can also rely on Clario to provide all-around 24/7 digital protection.

Table of contents

If you’re serious about safeguarding sensitive information, password protection on your files and folders is the most sensible way. Think of it this way: if you let someone use your Mac or your computer gets stolen, how can you be sure someone else isn’t looking through your private files?

 

Read on to learn about the macOS password protection features you need to use to stay safe, including how to put a password on a folder on a Mac.

How to password-protect a folder on Mac

One of the most effective ways to password-protect a folder on Mac is to first turn your folder into a disk image file (.dmg) and then lock it. You can use this method to create secure archives of files and folders or even entire disks.

 

Follow these steps to create a password-protected folder on Mac:

  1. Find or create a folder you need to encrypt and add the relevant files to it.
  2. Open Finder and go to Applications > Utilities > Disk Utility.
  3. From the menu bar, select File > New Image > Image From Folder.
  4. Once the folder window opens, choose the folder you want to protect with a password.
  5. Within the pop-up window that appears, you’ll see menus for both Encryption and Image Format.
  6. Select the level of encryption you want to implement (128-bit or 256-bit AES Encryption).
  7. Add a password to your folder on Mac.
  8. Click the menu next to Image Format and select Read/Write.
  9. Click Done and exit the window.
How to password-protect your folder using Disk Utility.
Step 1.  Finder > Applications > Utilities > Disk Utility
A Disk Utility window depicting how to password-protect your folder.
Step 2. File > New Image > Image From Folder
A Mac window depicting a folder chosen to be password-protected
Step 3. Choose the folder you want to protect with a password
A Mac pop-up window depicting a level of encryption and an image format for a folder you want to password-protect.
Step 4. Choose the level of encryption on the folder you want to protect with a password
A Mac window to add a password to your folder on Mac.
Step 5. Add a password to your folder on Mac.

That’s it! You have successfully learned how to lock a folder on Mac, but you’re not quite done yet.

Remember

The original, unencrypted folder is still on your computer. Double-check to confirm you can access the disk image and files inside it. Only now can you go ahead and delete the original folder, leaving only the locked folder on Mac.

How to password-protect files on Mac

While Disk Utility remains the most secure way to password-protect folders on your Mac, there are few alternative methods to password-protect a file on Mac. The best method for you usually depends on the type of file you want to protect. For instance, you can easily add a password to Pages, Numbers, and Keynote documents within these applications:

  1. Open your document in Pages, Numbers, or Keynote.
  2. In your Mac’s menu bar, click File, then Set a Password.
  3. Enter the password you want to use, then verify it.
  4. Add a password hint if you wish.
  5. Click Set Password to confirm.
Keynote shows the file menu with the option to add a password to a document.
Step 1. Open your document in Pages, Numbers, or Keynote.
Keynote shows the window for adding a password to a document. Create and then verify your password, then click Set Password.
Step 2. Enter the password you want to use to protect your document, then verify it.

You can use a similar method to password-protect Microsoft Office documents. First, open your doc in Word, Excel, or PowerPoint, then follow these steps:

  1. Click the Review tab at the top of the screen.
  2. Select Protect, then click Protect Document.
  3. Set a password for opening your document, then click OK.

How to password-protect a PDF on Mac

When we work with sensitive documents, they are often in the form of a PDF, so knowing how to password-protect a PDF on Mac can be incredibly useful. Fortunately, it’s just as simple as protecting other file types—just follow these steps:

  1. Open the PDF file in Preview.
  2. In the menu bar, click File, then Export.
  3. Click the Permissions button.
  4. Check the box next to Require Password to Open Document.
  5. Enter your password, verify it, and click Apply.
Preview shows the file menu with the option to Export a document.
Step 1. In the menu bar, click File, then Export.
Preview shows the option to add a password to an exported document. Click Permissions to continue.
Step 2. Click the Permissions button to add a password to your new document.
Preview shows the option to add a password when exporting a document. Create and verify your password, then click Apply.
Step 3. Enter your password, then verify it before clicking apply.

Remember

Your original PDF file that is not password-protected still exists, so once you have confirmed that the new password-protected version has been saved successfully, delete the old one so that it cannot be viewed by someone else.

How to lock a Mac Note

The Notes app in more recent macOS versions allows you to easily protect your most sensitive notes. Here’s how:

  1. Open the Notes app and select a note you want to lock.
  2. In the menu bar, click File, then select Lock Note.
  3. Select Use Login Password or click Not Now if you want to use a different password.
  4. If you selected Not Now, set your password, then click OK.
Notes shows the File menu with the option to Lock Note. Click this option to protect a note with a password.
Step 1. In the menu bar, click File, then Lock Note
Notes shows the option to lock a note. Create a password then verify it before clicking Set Password.
Step 2. If you opted to create your own password, enter it then click Set Password.

How to password-protect JPG on Mac

The simplest way to password-protect JPG or JPEG photos on MacBook is first to convert them to a PDF and then lock them. You can do all this with the Preview app built into macOS:

  1. Open your JPG file in Preview.
  2. In the menu bar, click File, then select Export as PDF.
  3. Give your file a name, then save it.
  4. Open the new PDF you just created in Preview.
  5. In the menu bar, click File, then select Export.
  6. Click Permissions, then check the box next to Require Password to Open Document.
  7. Enter and verify your password, then click Apply.
Preview shows the File menu with the option to Export as PDF. Select this to turn your document into a PDF with password protection.
Step 1. In the menu bar, click File, then Export as PDF.
Preview shows the save window when exporting to PDF. Give your file a name, then click Save.
Step 2. Give your file a name, then save it.
Preview shows the Export window when saving a new document. Click the Permissions button to add a password to your file.
Step 3. In the menu bar, click File, then Export.
Preview shows the export window with the option to add a password to the file. Create and then verify your password before clicking Apply.
Step 4. Create and verify your password, then click Apply.

Remember

Your original JPG file and the non-protected PDF you created are still saved on your Macintosh. Once you have confirmed that the password-protected version is fine, be sure to delete the original JPG and the non-protected PDF so they can’t be opened.

How to encrypt Mac hard drive

You may already know how encryption protects data, in which case you’ll likely want to use it to keep your most sensitive files out of the reach of others. Using FileVault, you can encrypt a Mac’s hard drive and protect everything it holds.

 

Here’s how to password-protect a hard drive on your Mac:

  1. Click the Apple icon in the menu bar, then select System Preferences.
  2. Select Privacy & Security, then click FileVault.
  3. Click Turn On to enable FileVault, then enter your Mac’s password.
  4. Choose the preferred method of unlocking your disk if you lose your password (iCloud account or recovery key).
  5. Click Continue, then wait for FileVault to encrypt files on Mac.
The Security & Privacy menu on Mac showing the option to enable FileVault. Click Turn on FileVault to continue.
Step 1. Click Turn on FileVault to enable file encryption.
FileVault shows the options for unlocking your encrypted disk. Select the option you prefer, then click Continue.
Step 2. Choose how you want to unlock your encrypted Mac disk.
FileVault shows that it is encrypting all files on the Mac's primary drive.
Step 3. Wait for FileVault to encrypt your files.

Once your Mac encrypts your HDD, expect things to run slower than usual for a little while. After that, everything will return to normal. If you choose to use the recovery key option, be sure to store the key somewhere safe.

Remember

If you lose the recovery key, decrypting your hard drive and accessing its data later will be impossible.

How to encrypt external hard drive on Mac

If you use removable storage devices for keeping sensitive data, they must also be encrypted. Unfortunately, FileVault can’t password-protect your Mac's external drives, but you can use Finder or Disk Utility instead.

Encrypt external drives using Finder

You can use Finder to encrypt a folder on your Mac that’s saved to an external disk or flash drive by following these steps:

  1. Connect the drive you want to encrypt to your Mac.
  2. Open Finder and right-click the drive from the Finder sidebar.
  3. Select Encrypt.
  4. Enter a strong password and a password hint.
  5. Click Encrypt Disk.

Encrypt external drives using Disk Utility

Important

Since this method requires formatting your external drive, you should only use it for new or empty drives. If you want to partition other drives, make sure you copy all the data before starting the encryption process.

  1. Connect the USB thumb drive, SD card, or SSD you want to encrypt to your Mac.
  2. Open Finder and go to Applications > Utilities > Disk Utility.
  3. Select the drive you want to encrypt and click Erase.
  4. In the pop-up window, provide a name and select Mac OS Extended (Journaled, Encrypted) from the Format drop-down list.
  5. Click Erase.
  6. Enter a strong password and a hint if you need one.
  7. Click Choose.

From now on, you’ll need to enter the password every time you restart your Mac and when you connect the USB stick or other portable media.

Encrypt disk images using Disk Utility

  1. Open Disk Utility.
  2. In the menu bar, select File > New Image > Blank Image.
  3. In the pop-up window, complete the following:
    • In the Save As field, enter a name for your disk
    • In the Where list, select a location for your disk
    • In the Name field, enter the name that will appear when you open the image
    • In the Size field, set the maximum size you want the disk image to be
    • In the Format field, choose the disk format you want to use
    • In the Encryption list, select an encryption level (128-bit encryption for large files or 256-bit encryption for super-secret files). Provide a strong password
    • In the Image Format list, select read/write disk image.
  4. Finally, click Save and then Done once the operation is successfully finished.

How to encrypt your Time Machine backups

Easy encryption is one of the big advantages macOS has when it comes to Mac vs. Windows security, but it is up to you to ensure you’re taking advantage of these features since they are not enabled by default. The same can be said for Time Machine backups, so you must protect those, too. Here’s how:

  1. Open System Preferences, then select General > Time Machine.
  2. Click Select Backup Disk.
  3. Choose the disk you want to use, then click Set Up Disk.
  4. Enable Encrypt Backup, then enter and re-enter a password.
The Time Machine menu shows the option to select a backup disk. Click Select Backup Disk to continue.
Step 1. Click Select Backup Disk.
The Time Machine menu shows the option to choose a disk for your backup. Select the disk you want to use, then click Set Up.
Step 2. Choose the disk you want to use, then click Set Up.

5. Click Done.

Conclusion

That’s it. Your Mac folders and files are now strictly for your eyes only but don't forget that password-protecting your Mac files is just one piece of the security puzzle. It’s essential to understand how to change security preferences on Mac at any time to ensure you have the best possible coverage. You should also use additional cybersecurity tools to stay protected.

 

If you’re looking for a simple app that provides far-ranging protection, try Clario. It ensures your identity, network, and file protection across devices.

Keep reading

Most Macs work just fine as long as they’re kept safe.

Get started