How to Password Protect a PDF on Mac (Preview and More)
Add a password to a PDF on Mac with Preview or the Print dialog, protect many PDFs at once, remove a password, and compress protected files in the right order.
GuideUpdated 8 min read
On this page
To password protect a PDF on a Mac, open it in Preview, choose File ▸ Export…, click Permissions…, turn on the password requirement for opening the document, type your password, and save. From most other apps, use File ▸ Print (⌘P, Command-P), then PDF ▸ Save as PDF ▸ Security Options…. Both methods are free and built in, and both work on one file at a time.
If you need to protect a whole folder of PDFs, or the file also needs to be smaller, read on. The order you do things in matters.
Password protect a PDF in Preview
Preview is the quickest route for a PDF you already have.
- Open the PDF in Preview.
- Choose File ▸ Export….
- Check that Format is set to PDF. The Permissions… button only appears for PDF.
- Click Permissions….
- Turn on the option that requires a password to open the document, then type the password and type it again to verify.
- If Preview asks for an owner password, set one. You'll need the owner password later to change the permissions.
- Confirm the sheet, give the file a new name so you can tell which copy is protected, and click Save.
The Permissions sheet also lets you restrict actions like printing, copying text and changing pages. Those restrictions are separate from the open password. A file with restrictions but no open password still opens for anyone.
Preview has no batch option. If you have 20 PDFs, you repeat these steps 20 times.
Add a password from the Print dialog
This route works from apps that use the standard macOS Print dialog, such as Pages, Safari and Preview. It's useful when you are creating the PDF in the first place.
- In the app, choose File ▸ Print (⌘P).
- Click the PDF menu at the bottom of the Print dialog and choose Save as PDF.
- Click Security Options….
- Select Require password to open document, then enter the password and verify it.
- If you also want to limit copying or printing, select those options and set a password for them.
- Click OK, choose a name and location, and click Save.
The limit here is that this route "prints" the document into a new PDF. If your file has fillable form fields, links or other interactive parts, open the result and check they survived. For an existing PDF where those matter, use the Preview Export route instead.
Protect several PDFs at once
Neither built-in route handles batches. If you regularly send out contracts, statements or reports as protected PDFs, a batch tool saves you from repeating the same dialog for every file.
We make Gizmojar, a file and media toolbox for Mac. Its Add Password tool encrypts a whole batch of PDFs with the same password in one run.
- Open the command bar with ⌃⌥Space (Control-Option-Space), or use the main Gizmojar window.
- Drop your PDFs, or a folder of them, onto it.
- Choose Add Password. Typing "password" in the search field finds it.
- Enter the password in Password: and again in Confirm:. It must be at least 4 characters.
- Press ↵ or click Run.
What you get:
- New files, originals untouched. Each result is saved as
<name> (protected).pdf. A single result goes next to its original. With the default settings, several results go into a dated folder named with the date, time and tool. - One password for everything. Gizmojar sets the same password as both the open password and the owner password. There's no option for separate print or copy restrictions; use Preview if you need those.
- Nothing stored. Gizmojar keeps the password in memory only and never saves it. It's also left out of settings and recipe exports, so keep your own copy somewhere safe.
- All-or-nothing saving. By default, if any file in the batch fails, nothing is saved until you choose Keep (the ones that worked) or Discard. After saving, Undo moves the new files to the Trash.
Two things to watch:
- Your unprotected originals are still there. Once you've checked that the protected copies ask for the password, delete or move the originals if they shouldn't sit next to them.
- Folder drops create a mirror folder. When you drop a folder, results go into
<Folder> (Gizmojar)with the same subfolders. Files that failed are copied in unchanged so the counts match, which means they have no password. Check the folder before you share it.
Add Password can't be automated. It can't be a recipe step (so not a watch folder action either), and it can't run from Shortcuts or a gizmojar:// link. You run it by hand each time. Gizmojar is part of MacSuite; you can try it free for 7 days. The full tool list is in the Gizmojar PDF tools docs.
Compare the methods
| Method | Cost | Files at once | Separate print/copy restrictions | Best for |
|---|---|---|---|---|
| Preview ▸ Export ▸ Permissions | Free, built in | 1 | Yes | Protecting a PDF you already have |
| Print dialog ▸ Security Options | Free, built in | 1 | Yes | Creating a protected PDF from another app |
| Gizmojar ▸ Add Password | Part of MacSuite ($349 one-time, as of November 2026) | Many, including folders | No (one password) | Batches of PDFs with the same password |
Remove a password from a PDF you can open
You need the current password for every method here. None of them bypasses a password you don't know.
In Preview:
- Open the PDF and enter its password.
- Choose File ▸ Export… and click Permissions….
- Turn off the password requirement. If Preview asks for the owner password, enter it.
- Save under a new name, then open the new copy to confirm it no longer asks for a password.
For several files that share a password, in Gizmojar: drop the PDFs, choose Remove Password, enter the password in Current password: and run it. Each unlocked copy is saved as <name> (unlocked).pdf. A wrong password gives "That password doesn't open <file>." The unlocked copy doesn't keep bookmarks (the PDF outline), so check the result if your document relies on them.
Compressing a PDF that has a password
Compress first, then add the password. Encryption should be the last change you make to the file.
Tools that shrink a PDF need to read and rewrite it. Gizmojar's PDF Compress refuses password-protected PDFs and asks you to remove the password first. If you use another tool that does rewrite a protected file, open the result and confirm it still asks for the password before you send it.
If the file is already protected:
- Remove the password (see the section above).
- Compress the unlocked copy. Our guide on how to compress a PDF on Mac covers the options.
- Add the password to the compressed copy.
- Open the final file to check it asks for the password, then delete the intermediate copies.
The same order applies to other changes. Combine PDFs, edit the PDF, reorder pages and shrink it first. Add the password at the end.
Gizmojar recipes can chain PDF steps, but Add Password can't be one of them. Run your recipe first (for example the built-in "PDF under 5 MB"), then run Add Password on the results.
How strong is PDF password protection?
PDFs have two kinds of password, and they protect very different things.
- Open password (user password). The file's contents are encrypted, and a PDF reader can't show the pages without it. This is real protection, and its strength depends mostly on your password. Use a long passphrase, not a short word.
- Permission restrictions (owner password). Limits on printing, copying or editing. The reader app is expected to honor them, but the file still opens for anyone. Treat them as a request, not a lock.
A few practical rules:
- There is no reset. If you forget the open password, neither Preview nor Gizmojar can recover it. Store it in a password manager.
- Send the password separately. If you email a protected PDF, share the password some other way, such as a text message or a call.
- Keep track of the unprotected copy. Every method here makes a new protected file. The original stays readable by anyone with access to your Mac or your backups.
What happens to digitally signed PDFs
A digitally signed PDF carries a certificate signature that shows the file hasn't changed since signing. Adding or removing a password rewrites the file, so the signature is no longer valid afterward.
Gizmojar guards against doing this by accident. Add Password and Remove Password skip certificate-signed PDFs and mark them "Digitally signed: left unchanged". If you really want the change, click Process Anyway, knowing the digital signature will stop being valid.
If a signed document needs a password and the signature must stay valid, ask the person who signed it for a version that's already protected.
A signature you draw or type in Preview, or with Gizmojar's Sign tool, isn't a certificate signature. It's placed on the page as an image. Those PDFs can be password protected like any other.
If it doesn't work
- No Permissions… button in Preview's Export dialog. Make sure you chose File ▸ Export… and set Format to PDF. The button only shows for PDF output.
- The PDF opens without asking for a password. You set only permission restrictions, not an open password. Export again with the open-password option turned on.
- Links or form fields are gone. You probably used the Print dialog, which creates a new PDF from a printout. Use Preview's Export route on the original instead.
- Gizmojar won't run Add Password. The password must be at least 4 characters, and Confirm: must match it. If a file shows "Digitally signed: left unchanged", see the section above.
- Compress fails on the file. It's already protected. Remove the password, compress, then protect it again.
- You forgot the password. A PDF open password can't be recovered. If you still have the unprotected original, protect it again with a new password.
FAQ
Does adding a password change my original PDF? Not if you save under a new name. Preview's Export and the Print dialog create a new file where you save it. Gizmojar always writes a new (protected) file and never overwrites the original.
Can I use different passwords for opening and for printing? Yes, in Preview's Permissions sheet and in the Print dialog's Security Options. Gizmojar's Add Password uses one password for both.
Can I password protect a Pages or Word document as a PDF? Yes. In the app, choose File ▸ Print, then PDF ▸ Save as PDF ▸ Security Options…. If the app shows its own print window instead of the macOS one, save a normal PDF first and protect it in Preview.