Locking a PDF with a password: what to know before you do it
To password protect a PDF, choose a long password, encrypt the file with it, save a copy, and then try to open that copy to make sure the lock works. You can do this in your browser with our protect PDF tool, with Preview on a Mac, or with Adobe Acrobat. Your file is not uploaded when you use our tool.
A password is only as good as the password itself and the way it is shared. This guide covers the two kinds of PDF passwords, how to pick a strong one, why older encryption is a problem, and the mistakes that leave a locked file easy to open.
Open password or permissions password?
A PDF can carry two kinds of protection. An open password stops anyone from viewing the file until they type it. Adobe describes this kind as one that encrypts the file so unauthorized people cannot read it. A permissions password limits actions such as editing, copying, or printing.
If your goal is privacy, you want an open password, and that is the only kind our tool sets. Restrictions are much weaker. The qpdf documentation explains that an owner password enforces nothing by itself. It only tells the viewer whether to apply the limits, and any software that can read the file could be built to ignore them. Treat permissions as a request to honest people, not as security.
| Goal | Right choice | Why |
|---|---|---|
| Keep strangers from reading the file | Open password | The contents are encrypted until the password is entered |
| Discourage printing or editing | Permissions password (not set by our tool) | Depends on the viewer honoring the limits |
| Hide only a few details | Redaction instead | Deleting the content works better than locking the whole file |
How to protect a PDF with our tool
Everything happens in your browser, so the PDF stays on your device while it is encrypted.
- Open the protect PDF tool and choose the file you want to lock.
- Type a password that is long and unique in New password, then again in Type it again. It needs at least 6 characters; 12 or more, or four random words, is much safer.
- Press Protect PDF. The tool encrypts the copy with AES 256-bit, then reopens it to check that it refuses no password and a wrong one and opens with yours. Download the new file. Your original is not changed, so it stays unlocked.
- Open the new file in a PDF viewer and confirm that it asks for the password. Try the password once to make sure you typed it correctly.
- Store the password in a password manager before you close the page.
Other ways to lock a PDF
Our tool is not the only option. If you prefer software you already have, these two methods come from the makers' own help pages.
On a Mac, Apple's Preview guide says to open the PDF, choose File, then Export, click Permissions, and select Require Password To Open Document. You then enter and confirm the password and click Save. Apple adds that you can enter an owner password in the same window, which controls permission changes later.
In Adobe Acrobat, you go to Tools, then Protect, then choose to encrypt the file with a password, set the password, click OK, and save.
How to pick a strong password
Adobe recommends passwords of 10 to 12 characters that mix random words or phrases with letters, numbers, and special characters, and says to avoid common words and personal details. It also warns that password protection should not be your only defense.
NIST, the U.S. standards agency, takes a slightly different angle in its digital identity guidelines: length is a primary factor in password strength, and passphrases are often an effective way to build a longer password. NIST also advises against forcing complicated composition rules and recommends allowing spaces so people can write phrases.
- Use a passphrase of several unrelated words rather than one clever word.
- Do not use names, birthdays, addresses, or the file name.
- Use a different password for every locked file that matters.
- Do not send the password in the same email as the file. Send it by another channel, such as a phone call or a text message.
Encryption strength: why the method matters
Encryption is the math that scrambles the file, and PDFs have used several kinds over the years. The PDF software company PDFlib labels the older RC4 methods, both 40-bit and 128-bit, as weak and says they should not be used. RC4 was deprecated in PDF 2.0. qpdf's documentation says that 256-bit PDF encryption always uses AES and is the secure option, and that AES is the only secure choice for the standard security handler.
In practice, if a tool lets you choose, pick AES-256. Our protect tool always uses AES 256-bit, so very old PDF readers made before that method existed cannot open the copy. A strong password cannot make up for a broken method, and a modern method cannot make up for a short, guessable password. Both parts matter.
Mistakes that leave a locked file exposed
- Keeping an unlocked original in a shared folder or email thread.
- Using only a permissions password and expecting privacy.
- Forgetting the password. The locked copy cannot be opened without it, and nobody can recover it for you, including us, so keep it in a safe place.
- Locking a file that already has a password. Unlock it first, then protect it again. A digital signature in the file stops being valid once the copy is encrypted.
- Skipping the test. Always open the final file and confirm that it asks for the password.
If you ever need the plain version back, you can remove the password from a PDF you own with the password in hand. And if you are deciding where to process a sensitive file, see are online PDF tools safe for sensitive documents.
Questions people also ask
How do I put a password on a PDF without Acrobat?
You can use a browser tool like ours, or Preview on a Mac. In Preview, export the PDF, click Permissions, and require a password to open the document. No Acrobat license is needed.
Can someone open a password-protected PDF without the password?
With a strong password and modern encryption, that is very hard. Weak passwords and old encryption methods are the real risk, and Adobe notes that short, simple passwords are easier to crack with password-cracking tools.
What happens if I forget the password I set?
The locked copy cannot be opened anymore. Nobody can recover the password, including us, so save it in a password manager and keep an unlocked original somewhere safe.
Is a permissions password enough to protect a private document?
No. A permissions password only asks the viewer to limit actions like printing and copying. For privacy you need an open password so the file is encrypted until someone enters it.
Should I email the password with the PDF?
It is safer not to. If someone gets the message, they get both the file and the key. Share the password by a different channel, such as a phone call.