everyday mac tools

Password protect Pages, Numbers and Keynote files on a Mac

· 7 min read

To password protect a Pages document on a Mac, open it and choose File, Set Password. Type the password twice, add a hint, tick Open with Touch ID if your Mac has it, and click Set Password. Numbers and Keynote use exactly the same command, so the same steps protect a spreadsheet or a presentation.

From then on the file is encrypted, and the app asks for the password (or your fingerprint) before it shows anything, on this Mac or any other device. What catches people out is what happens when the document is exported, shared or simply left open.

How to password protect a Pages document on a Mac

  1. Open the document in Pages, the spreadsheet in Numbers or the presentation in Keynote.
  2. Choose File, Set Password.
  3. Type the password in Password, then again in Verify.
  4. Fill in Password Hint, which the dialog marks as recommended. Anyone who tries to open the file can see the hint, so write something that reminds you and means nothing to anyone else.
  5. If your Mac has Touch ID, tick Open with Touch ID.
  6. Click Set Password.

The app rewrites the file with encryption. On a very large document it warns that this can take a few minutes; let it finish before you close the file.

To change the password, choose File, Change Password, type the old password and then the new one twice. The same dialog has a Remove Password button, which asks for the current password before it takes the protection off.

Then test it. Close the document and open it again from Finder. You should see a password prompt, not a page.

Touch ID, the hint and the keychain

Touch ID is a shortcut, not a second lock. With Open with Touch ID ticked, a fingerprint opens the document on this Mac instead of typing, but the password is still the real key and still works. After too many failed fingerprint attempts the app insists on the password. The option needs a fingerprint set up in System Settings, Touch ID & Password.

The hint is visible to anyone. “The usual one plus the street” is a hint. “blue42” is the password in disguise.

Think before letting the keychain remember it. When you type a document’s password, the prompt may offer to remember it in your keychain. On a Mac that only you use, that is a convenience. On a Mac where someone else might sit down at your logged-in account, it means the keychain can open the document for them.

There is no recovery. Apple cannot reset a document password. Save it in a password manager, such as the Passwords app on macOS Sequoia or later, at the moment you set it.

On iPhone, iPad and in shared documents

The password is part of the file, so it goes wherever the file goes: iCloud Drive, AirDrop, an email attachment. Pages, Numbers and Keynote on iPhone and iPad ask for it when you open the document, and Face ID or Touch ID can be used there too. To set a password on those devices, open the document, tap the More button (three dots) and look for Set Password.

Collaboration adds two rules. If you share a protected document through iCloud, the invitation link does not open it; the app warns that you and every participant will need the password. And setting, changing or removing the password on a shared document needs an internet connection. Participants are told when someone sets or changes it.

What exports, templates and copies keep

A document password protects that file. Every export is a new file, and the export dialog decides whether the new file is protected.

  • PDF, Word, Excel and PowerPoint. Choose File, Export To and the format. The dialog has its own Require password to open checkbox. If the document has a password, the box starts ticked and the copy gets the same one; click Change Password to give the copy a different password without touching the original’s. Untick it and the copy has no password at all.
  • Formats that cannot carry a password. Pages exports to EPUB, RTF and plain text; Numbers to CSV and TSV; Keynote to images, movies, animated GIFs and HTML. None of these can be protected, and the dialog says so. Treat each as an open copy.
  • PDF passwords. A PDF password may only use printable ASCII characters, so a password with accented letters or emoji that works on the document will be refused for the PDF.
  • Templates. Save as Template drops the password, and documents made from the template are unprotected. The app warns you first.
  • Send a Copy. Sharing a copy from the Share menu offers the same password checkbox as Export To.
  • Printing. File, Print, then Save as PDF from the PDF menu makes an unprotected PDF unless you set a password in Security Options.

If you are sending the file to someone who uses Word, exporting with the checkbox ticked produces an encrypted .docx they can open in Word with the password. Password protect a Word document on a Mac explains what that encryption covers.

Numbers and Keynote extras

Numbers has no per-sheet password. The whole spreadsheet is protected or it is not. Arrange, Lock only stops an object being moved by accident; it is not security. If you open an Excel workbook whose sheets were protected, Numbers does not keep that sheet protection and lists the change among the import warnings.

Keynote has a kiosk password. Keynote, Settings, Slideshow includes an option to require a password to exit a show, for a presentation running unattended at a stand. It stops someone leaving the slideshow on that Mac and does nothing to the file.

Where a document password falls short

It only protects a closed document. A Pages file left open on an unlocked Mac is readable by whoever sits down. Lock the screen whenever you step away; require a password immediately after a Mac sleeps covers the setting that makes that stick.

The name still shows, in Finder, in Recents and in any Open Recent menu, so give sensitive documents plain names.

Earlier copies are unchanged. A Time Machine backup from last week, an attachment you already sent and an export you made before setting the password are all still open.

It works one document at a time, and only on iWork files. A folder of Pages documents, PDFs and scans needs a different approach. How to password protect a folder on a Mac compares the ways to lock the folder instead. One is Hushbox, which locks any file or folder where it sits from the Finder right-click menu, opens it with Touch ID, and locks it again when the screen locks, the Mac sleeps or after an idle time you choose, asking first if an app has unsaved work. It hides contents, not names, and it does not replace FileVault.

Questions

Can I password protect a Pages document on iPhone? Yes. In the open document, tap the More button and choose Set Password. The password is stored in the file, so it applies on your Mac as well.

What happens if I forget the password to a Pages document? Nobody can recover it, including Apple. Try the hint. If you ticked Open with Touch ID, try your fingerprint on that Mac, and if the document opens, copy its contents into a new document straight away. Otherwise look for an unprotected copy in Time Machine or your sent mail.

Does exporting a password-protected Pages file to PDF keep the password? Only if Require password to open stays ticked in the export dialog. It starts ticked when the document has a password, but one click removes it, and formats such as RTF, plain text and EPUB never carry one.

Is a Pages password real encryption? Yes. Without the password the file’s contents cannot be read, in Pages or anywhere else. The file name is not encrypted.