Finderlock logoFinderlock

Finderlock

File protection that lives in Finder.

Sign in
All posts
mac securityfile encryptionpassword protectmacosfinderlock

How to Password Protect a File on Mac: Pages, Word, Excel, PDF and More

How to password protect a file on Mac: use built-in app passwords for Pages, Word, Excel and PDF, or encrypt any other file with a disk image or Finderlock.

10 min read

The method depends on the file type. Pages, Numbers, Keynote, Word, Excel and PDF each have their own password option. Any other file (images, videos, text files, archives) needs to be wrapped in something encrypted, such as an encrypted disk image, an encrypted zip, or an app like Finderlock.

This guide covers all three routes, what each protects, and where each falls short.

First, a note on Finder

Finder has no right-click "Set Password" or "Encrypt" option for a single file. If you right-click a file and choose Compress, you get a zip that is not password protected. Apple's built-in tools can do this job, but you have to reach them through other apps or Disk Utility, which is why the steps below differ by file type.

There is also a difference between a password that blocks opening and one that encrypts the contents. A good password feature does both. Some features only ask nicely, and anyone with the right tool can bypass them. That distinction matters in every route below.

Route 1: Use the app's own password feature

If the file was made in an app that supports passwords, this is the quickest option. The file stays in its normal format and opens in the same app. The strength depends entirely on the encryption that app uses.

Pages, Numbers and Keynote

  1. Open the document.
  2. Choose File > Set Password.
  3. Enter a password, repeat it, and add a hint if you want one.
  4. Leave "Remember this password in my keychain" off unless you are happy for the document to open without a prompt on this Mac.
  5. Click Set Password, then save the document.

Note that the hint is visible to anyone who opens the file, so do not put the password in it.

Microsoft Word and Excel for Mac

Menu names vary between Office versions, so look for the equivalent if yours differ.

  1. Open the document or workbook.
  2. Try File > Passwords. In some versions the option is under Review > Protect Document (Word) or Review > Protect Workbook (Excel).
  3. Set a password to open. Some versions also offer a password to modify.
  4. Confirm the password and save the file.

Two cautions. First, a "password to modify", and protecting a single sheet or the document structure, restricts editing. It is not the same as encrypting the file, so do not treat it as confidentiality. Second, the strength of a password to open depends on the file format and Office version. Very old formats such as legacy .doc and .xls use older protection that is considered weak, so save as a current format (.docx, .xlsx) before setting the password. If the file is sensitive and you are unsure what your version does, add a second layer from Route 2 or 3.

PDF

Preview can encrypt a PDF when you export it:

  1. Open the PDF in Preview.
  2. Choose File > Export (not Export as PDF).
  3. Tick Encrypt and enter a password twice.
  4. Save under a new name, then check that the new copy asks for the password.

The full walkthrough, including what the permissions options do, is in how to password protect a PDF on Mac.

Where app passwords work and fail

They do well for single documents you share by email, because the recipient only needs the same app. They fall short in three ways: they only exist for some file types, each app uses different (and sometimes undocumented) protection, and the password is only checked when the file is opened in that app. They do nothing for the thumbnail, file name or Spotlight metadata in some cases, and nothing for the dozens of file types with no password feature.

Route 2: Put any file inside an encrypted container

For images, videos, plain text, spreadsheets without a password feature, or anything else, wrap the file in an encrypted container. macOS gives you three manual ways.

Option A: Encrypted disk image (Disk Utility)

A disk image is a virtual drive stored in one file. With encryption on, you must enter the password to mount it.

  1. Put the files you want to protect in a folder.
  2. Open Disk Utility and choose File > New Image > Image from Folder.
  3. Select the folder.
  4. Set Encryption to 256-bit AES and enter a password.
  5. Set Image Format to read/write if you want to add files later, or read-only if not.
  6. Save, then double-click the .dmg to check it asks for the password.

The same thing from Terminal:

hdiutil create -encryption AES-256 -srcfolder ~/Documents/Private -volname Private ~/Desktop/Private.dmg

This prompts for a passphrase. It does not touch the original folder.

Warning: the original files are still there, unencrypted, after you create the image. Only delete them once you have mounted the image and confirmed that you can open every file. Also remember that a normal delete does not erase data from the disk.

Disk images are strong but clumsy for a single file: you mount, copy in, eject, and keep the original somewhere safe. The trade-offs are compared in how to password protect a folder on Mac.

Option B: Encrypted zip

Zip is the most portable choice, since Windows and Linux users can open it too. But Finder's Compress command cannot set a password, and the common Terminal flag zip -e uses a legacy scheme that is weak against modern cracking tools. A zip is only worth sending if it uses AES encryption and a long password, and that needs a third-party tool. We explain the options and how to pick a password that holds up in how to password protect a zip file on Mac.

Option C: Terminal encryption

If you are comfortable in Terminal, you can encrypt a single file with command-line tools. This gives you a standard encrypted file with no extra apps, but you manage the passphrase and the original file yourself, and a typo in a flag can leave you with something you cannot decrypt. Read how to encrypt a file on Mac with Terminal before trying it on anything you cannot replace.

Route 3: Right-click and protect with Finderlock

The manual routes work, but they involve extra steps for every file. Finderlock is a Mac app that adds this to Finder directly.

  1. Install Finderlock from finderlock.com. It needs macOS 13.5 or later. The Finder right-click menu and badges need macOS 14; on 13.5 you can use the menu bar app and dashboard instead.
  2. Right-click a file (or folder) in Finder and choose Protect.
  3. Choose a password for that item, or Touch ID on paid plans.
  4. The file is encrypted into a .secured container using AES-256-GCM through Apple's CryptoKit. The key is derived from your password with PBKDF2-HMAC-SHA256 (150,000 iterations and a random 32-byte salt). Folders are archived first and sealed in independent 4 MB chunks.
  5. A placeholder file stays at the original location. Double-click it to unlock without opening the main app window, and use Lock from the right-click menu to seal it again.

Per-item passwords are stored in the macOS Keychain. You can also set an app-wide master password, which opens a 5-minute session. Items can auto-lock on inactivity or sleep, and Finderlock can detect when the app that opened a file quits so the file locks again. Pro adds smart rules such as logout, user switching, screen saver and system lock.

Two limits are worth knowing. Finderlock is a separate app, so anyone you send a .secured file to needs it too. If you just need to email one document to a colleague, an app password or encrypted PDF is simpler. And as with any encryption, if you lose the password and have no backup, the contents are gone. Finderlock can back up encrypted containers to iCloud and Google Drive, with a recovery tool that uses your master password. Everything runs locally; the only network use is the license check, optional opt-in analytics, updates and backups you choose. More detail is on the security page.

The free plan covers 3 protected items, which is enough to try it on your most sensitive files.

Comparing the methods

Method Works for Strength Effort
Pages, Numbers, Keynote password Those documents only Depends on Apple's implementation for that app Low: File > Set Password
Word and Excel password to open Office documents Varies by version and format; weak for very old formats Low, but check your format
Preview PDF encryption PDFs only Good for sharing; check the settings Low
Encrypted disk image (Disk Utility) Any file or folder Strong when AES-256 is chosen Medium: create, mount, eject
Encrypted zip Any file or folder Depends on the tool; Terminal zip -e is weak Medium, higher for AES
Terminal encryption Any single file Strong if done correctly High; easy to get wrong
Finderlock Any file or folder AES-256-GCM, PBKDF2 key derivation Low: right-click, Protect

Which route should you pick?

  • One document you will send to someone: use the app's password, or an encrypted PDF. Share the password through a different channel than the file.
  • A file type with no password option: use an encrypted disk image, or Finderlock if you do this often.
  • Sending to a Windows user: an AES-encrypted zip is the most compatible option.
  • Files that stay on your Mac: if the concern is a stolen laptop, FileVault already encrypts the whole disk. Per-file protection adds value when someone can use your unlocked Mac, or when you share it. See the FileVault alternative page for how the two fit together.

Whatever you choose, test it. Close the file, reopen it, enter the password, and confirm the content is intact before you delete any unprotected original. Use a password you do not use elsewhere, ideally a long passphrase from a password manager.

FAQ

Can I password protect a file on Mac without any software?

Yes, with limits. Pages, Numbers, Keynote and Preview (for PDFs) have password options built in, and Disk Utility can create an encrypted disk image for any file. Finder itself has no single-file password option.

How do I password protect a Word or Excel document on Mac?

Open the file and look under File > Passwords, or Review > Protect in some versions. Set a password to open, not just a password to modify. Menu names differ by Office version.

Is a password on a Word or Excel file secure?

It depends on the version and file format. Current formats use stronger encryption than very old ones, and editing restrictions are not encryption at all. For sensitive files, save in a current format and consider adding an encrypted container.

How do I password protect a photo or video on Mac?

Images and videos have no password feature of their own. Put them in an encrypted disk image or encrypted zip, or protect them with an app such as Finderlock. The Photos app can lock some albums, which is a separate feature from encrypting files on disk.

What happens if I forget the password?

For properly encrypted files, nothing can recover the content without it. Keep the password in a password manager and keep a backup of the protected file.

Next step

Pick the file you most want to protect and match it to the table above. If it is a Pages, Word, Excel or PDF file, set the app password now. If it is anything else, try an encrypted disk image, or install Finderlock and protect it from the right-click menu. The free plan includes 3 protected items. For wider comparisons, see best Mac encryption apps.