# How to Password Protect a Document on Your Mac

How to put a password on a Pages, Word, Excel, Numbers, or PDF document on a Mac, what each app's built-in password really protects, and how to lock any document.

Updated: 2026-09-04. Source: https://trycloak.app/blog/how-to-lock-a-document-on-mac/

A document with a password is one of the few privacy features Apple and Microsoft built in properly. The trouble is that every app does it differently, the password only travels with that one file, and the document still sits in Finder with its full name on show. Here is how to do it in each app, and how to lock a document of any type in one move.

## Pages, Numbers, and Keynote

1. Open the document.

2. Choose File, Set Password.

3. Enter a password, add a hint if you want, and click Set Password.

From then on the document asks for the password when opened, on Mac, iPhone, and iPad. To turn it off, choose File, Change Password and remove it. There is a checkbox to open with Touch ID, which stores the password in your keychain. That is convenient, and it also means anyone who can unlock your Mac can open the document, so leave it unticked if the point is keeping it from someone who uses your account.

## Microsoft Word, Excel, and PowerPoint

1. Open the document.

2. Choose File, Protect Document (or Protect Workbook, Protect Presentation).

3. Tick “Require a password to open this document” and set the password.

Office uses proper AES encryption for password protected files, so a strong password holds up. The file still opens on Windows with the same password. Forget the password and Microsoft cannot recover it, which is a feature and a risk.

## PDFs

Preview can add a password when you save a copy: File, Export, tick Encrypt, and set a password. Anyone opening the PDF in Preview, Safari, or Acrobat is asked for it. Note that Export makes a new file. The original, unprotected PDF is still there until you delete it.

## The gap in all of these

Three things the built-in passwords do not do:

- **They do not hide the file.** “Divorce agreement.pages” is still readable in Finder, in Spotlight, and in the Recents list. The name alone can be the problem.

- **They cover one file type each.** A folder with a Pages file, two PDFs, a scan, and a spreadsheet needs four different passwords set four different ways.

- **They are only as good as the app.** Text files, Markdown, images, CSV exports, and most other document types have no password option at all.

## Lock any document in one step

For a document of any type, or a folder of mixed documents, lock it in place instead:

1. Open [Cloak](https://trycloak.app) and press + under Locked folders & files.

2. Pick the document, or the folder it lives in.

The document is encrypted with AES-256 and disappears from Finder, Spotlight, and Recents. Press Unlock, confirm with Touch ID or your password, and it is back where it was. The app’s own password, if it has one, still works on top. Two locks, no harm.

If you want to know when someone else has tried, Cloak can photograph anyone who fails to unlock. It is off until you turn it on in Settings.

## Which to use

- **One Pages or Office file** you open often and want protected everywhere it goes: the app’s own password.

- **A PDF you send to someone**: Preview’s export password, then delete the plain original.

- **A document that should not even be visible**, or a folder of mixed documents: lock it in place with Touch ID.

- **Sensitive files that also sync to the cloud**: protect them before they sync, or move them out of the synced folder first.

## Do not forget the copies

Documents leave copies around. Exported PDFs, autosaved versions, email attachments in Downloads, and the original file you protected a copy of. After you lock or password protect a document, search Spotlight for its name and make sure nothing else turns up. Then empty the Trash.

If you want documents of any kind locked with Touch ID and AES-256 without setting passwords app by app, [Cloak](https://trycloak.app) does it locally on your Mac. One-time purchase, no account, no cloud.

---
Cloak locks, hides and encrypts apps, folders and files on your Mac. One-time purchase, no account. https://trycloak.app/
