PDF download Download Article
Encrypt your private files and folders with our user-friendly guide
PDF download Download Article

Do you have a file or folder on your Mac that you’d like to keep safe from prying eyes? There are several easy ways to encrypt files on a Mac, using either your computer’s built-in security features or third-party software. In this article, we’ll show you how to password protect entire folders or individual files using a variety of different methods.

Quick Steps for Password-Protecting Files on a Mac

  1. Create a new folder and place the files you want to protect inside.
  2. Open Disk Utility .
  3. Go to File > New Image > Image from Folder .
  4. Browse for your folder and click Choose .
  5. Select an encryption type, enter a password, and click Choose .
  6. Click Save > Done .
  7. Double-click your encrypted DMG file and enter the password to open it.
Section 1 of 5:

Password Protecting a Folder with Disk Utility

PDF download Download Article
  1. 1
    Place the files you want to encrypt in a folder. To create a new folder, right-click or Ctrl -click the desktop or a blank area in the Finder, then select New Folder from the pop-up menu. Click the new folder to select it, then click the default name of the folder and type in whatever name you like. Drag and drop or copy and paste the file(s) you want to encrypt into the folder.
    • This method allows you to turn the folder into a password-protected disk image, or DMG file. You can only open these types of files on a Mac.
  2. 2
    Open Disk Utility. You can either do this by finding it in Finder > Applications > Utilities or by searching for disk utility with the Spotlight Search tool in the menu bar at the top of the screen.
    Advertisement
  3. 3
    Select New Image from the File menu. At the top of the screen, click File and hover over New Image . A menu will pop out.
  4. 4
    Click Image from Folder . This will open a Finder window where you can browse for your folder.
  5. 5
    Select your folder and click Choose . A new window will open with options for saving your DMG file.
  6. 6
    Choose the level of encryption you want in the Encryption menu. Click the dropdown next to the Encryption header and select an option. Either option will work, but Apple recommends 256-bit AES encryption .
    • You can also use this window to set other options, such as the name and location of the encrypted folder and whether the folder is compressed, read only, read/write, etc. Selecting compressed for the folder type will create a simple encrypted archive with your files inside.
  7. 7
    Enter a password when prompted. A window will pop up asking you to enter a password as soon as you choose an encryption type. Type in the password, enter it again in the Verify field, then click Choose .
  8. 8
    Click Save . The encrypted folder will be saved in the location you specified. It may take a few seconds for the process to complete. Click Done once the status window tells you the operation was successful.
  9. 9
    Double-click the DMG and enter the password to open it. Your encrypted folder will look like a regular DMG file, which resembles an image of a hard drive. Double-click it, then enter your password when prompted. You’ll also have the option to add the password to your Mac’s keychain so you can easily look it up if you forget it.
  10. Advertisement
Section 2 of 5:

Adding Passwords to Pages, Numbers, and Keynote Docs

PDF download Download Article
  1. 1
    Open the file you want to password protect. Several of your Mac’s built-in apps have a feature that lets you password protect individual documents. You can do this in apps like Pages, Numbers, Keynote, and Notes. The basic process is the same for most of these apps. To get started, launch the app and open the file you want to lock with a password. [1]
  2. 2
    Open the File menu and select Set Password . A new window will open.
  3. 3
    Enter and verify your desired password. In the window that opens, type in the password you want to use, then enter it again in the Verify field. If you want, you can also enter a password hint. Click Set Password when you’re done.
    • If you don’t want to type in the password every time you open the file, check the box next to Open with Touch ID .
    • Next time you try to open the document, you’ll be prompted to enter your password (or use Touch ID, if you have that option enabled).
    • To change a document password, open the document and select File > Change Password . You can also remove the password from the Change Password menu.
  4. 4
    Use the Lock Note option to password protect a Note. Notes work a little differently from other Apple files. To password protect a Note, open the Note, then go to File > Lock Note . You can either choose to use the login password for your Mac user account, or create a new password just for that Note.
  5. Advertisement
Section 3 of 5:

Using Terminal to Create an Encrypted ZIP File

PDF download Download Article
  1. 1
    Create a folder on your desktop and place the files you want to encrypt inside. You’ll be turning this folder into an encrypted ZIP file with Terminal, your Mac’s command line interface. [2]
  2. 2
    Open the Terminal. You can find this in Applications > Utilities or search for it with the Spotlight Search tool in the menu bar at the top of the screen.
  3. 3
    Enter the command zip -er YOURFILENAME.zip , followed by a space. Replace “YOURFILENAME” with whatever you want to call your encrypted zip file. Don’t press Return yet –instead, enter a space after the command.
  4. 4
    Drag and drop your folder into the Terminal window and press Return . You should see a path to the folder appear in Terminal after the command you entered. Press Return to execute the command.
  5. 5
    Type in your desired password for the encrypted folder. After you type it, press Return . When prompted to verify, retype the password and press Return again. You won’t be able to see the password you typed in the Terminal window. Depending on how much data you are trying to compress, the process may take a few moments to complete.
    • By default, the file you create will appear in Macintosh HD > Users > [your username] .
    • To open the file, double-click on it and enter the password when prompted, then click OK .
  6. Advertisement
Section 4 of 5:

Third Party Options

PDF download Download Article
  1. 1
    Download a third-party file encryption app. There are tons of apps on the market that will encrypt your files and folders for you in a few simple clicks. Some of these are free, while others cost a small amount or offer additional features for a fee. A few options you can find in the App Store include Encrypto , Privaulty , and SNote .
  2. 2
    Create encrypted ZIP files with FossZip. FossZip is a file extraction and compression app that works with a wide variety of compression formats, including ZIP and RAR. It allows you to create password-protected ZIP files without the hassle of using the Terminal. It isn’t free–the Mac version currently costs $19.95–but there is a free trial option so you can try it out before you commit.
  3. 3
    Add encryption to documents using built-in app features. Some third-party apps, like most of the programs in the Microsoft 365 suite, have their own encryption features you can use. You’ll need to check the documentation for the individual app to find out how to encrypt files.
    • For example, to encrypt a Word document, you’d open the doc and click the Review tab, then click Protect > Protect Document . From there, you have a variety of options, such as setting separate passwords for opening or modifying the document, or for specific types of changes (such as comments or tracked changes). When you’ve set your password(s), click OK . [3]
  4. Advertisement
Section 5 of 5:

Frequently Asked Questions

PDF download Download Article
  1. 1
    How do I put a lock on a file on Mac? There are several ways to lock or password protect a file on a Mac. You can place your files in a password-protected folder using Disk Utility or Terminal , or password-protect individual documents using the built-in security features of the app where you created them .
  2. 2
    How do I password protect Word files on Mac? Open the file in Word and go to Review (in the ribbon menu at the top of the document window) > Protect > Protect Document . Choose which actions you want to lock with a password (e.g., opening or editing the document), set your password(s), and click OK .
  3. 3
    Where can I find my passwords on Mac? When you password-protect a file on Mac, sometimes you have the option of storing the password in your keychain. To access your stored passwords, click the Spotlight Search icon at the top of your screen and type in passwords . Open the Passwords app from the search results and enter the same password you use to log into your Mac. You can now browse or search for the password you want.
  4. 4
    How can I password protect my photos? To keep your photos private, you can either save the image files in an encrypted folder using one of the methods above, or store them in a hidden folder in the Photos app.
    • To hide a photo, open it in Photos, right-click or Ctrl -click the photo, and select Hide 1 Photo from the menu that pops up. You can also Shift -click several photos to select them all, then right-click or Ctrl -click the group and select Hide [number] Photos .
    • To see your hidden photos, go to Utilities > Hidden in the left sidebar. You might need to select Show Hidden Photo Album from the View menu at the top of the screen to see it. Click View Album and enter your Mac’s user password or use Touch ID when prompted.
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How I can open the utility disk and see the hidden information?
    Community Answer
    After hitting "eject," the disk image you created goes away. To reopen it, find that .dmg file that was created, and it will request you to enter the password. Then the disk image will reappear.
  • Question
    If I later move this map to an external source, USB or other hard-drive, will the map and files still be coded?
    Community Answer
    Yes, they will. It works the same as a zip file. The only downside is that you can only open it on Macs. For Windows you will need additional software.
  • Question
    Why was another "operating drive" icon created on my desktop that I can't get rid of?
    Community Answer
    The only reason for this would be that the computer recognized another drive, maybe a time machine backup drive? If not, this could be an SSD or a flash drive, or an SD card that may be in your computer. If this is the system drive duplicated, this would be a partition issue. To view the drives on a Mac, go to Spotlight (the search icon in the top right corner) then search for the app titled "Disk Utility." Here you can view all the drives you have active, and also preform first aid and corrections if a drive is improperly partitioned. If this is a time machine drive, navigate to the Time Machine app to manage these preferences.
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 525,962 times.

      Reader Success Stories

      • Mac User

        May 26, 2021

        "I followed the article's instructions and created a password-protected folder. After deleting the original ..." more
      Share your story

      Is this article up to date?

      Advertisement