Home › Guides › How to protect or unlock a PDF with a password
How to protect or unlock a PDF with a password
Keep sensitive documents private, and open files you are allowed to open
When to protect a PDF
Protection fits a contract, payslip or medical letter that only one person should read; a document you want read but not printed or copied; and an archive copy stored on a shared drive. A password that opens the file is the strongest control this site offers. The print and copy settings are much weaker.
Step by step
- Open Protect PDF and add one or more PDFs. Several files are encrypted one after another with the same password, and the results come back in one zip.
- Type a password in Password to open the PDF, then type it again in Confirm password.
- Under What people can do once it's open, tick or untick the boxes. Print and Copy text are ticked by default. Edit or annotate is not ticked.
- Press Process. A single file gives name-protected.pdf, where name is the original file name.
Check the result
Open name-protected.pdf in a PDF reader. It should ask for the password before showing any page. Open it with the password and check that every page displays. If you ticked Print or Copy text, test those too. Some readers ignore those settings, so do not rely on them.
What the encryption does
The tool writes the standard PDF security handler with a 128-bit RC4 key. RC4 is an older cipher, and this tool does not write the newer AES encryption. The page creates a random owner password and does not show it to you, so the print and copy settings cannot be changed later from a PDF reader. The password itself is not sent anywhere; the encryption is applied in your browser. Text and images are encrypted, not redrawn, so the content does not change in this step.
Messages you may see
- "Type a password to protect this PDF with." The password box is empty.
- "The two passwords do not match. Re-type them and try again." The two entries differ.
- "This PDF is already password-protected. Use Unlock PDF first, then encrypt the unlocked copy." The file is already protected. Unlock it first, then protect the copy.
Limits and warnings
- There is no password recovery. Keep the password somewhere safe before you share the file.
- Anyone with the open password can remove the protection with Unlock PDF. Protection stops people who do not have the password; it does not stop people who do.
- The password is only as strong as you make it. Use a long password with several words, not a short one.
- Edits, signatures and watermarks should come first. Finish them, then protect the file.
Common mistakes and fixes
- The file was protected by mistake. Use Unlock PDF with the password, then work on the unlocked copy.
- The file needs a smaller size before sending. Compress first with Compress PDF, then protect the result.
- You want to sign before locking. Use Sign PDF first. A signature added later would need the unlocked file.
Common questions
What if I forget the password? The tool cannot recover it, and there is no reset. Unlock PDF also needs the password.
Are my files uploaded? No. The encryption runs in your browser. The PDF libraries are loaded from a public CDN when the tool is first used.
Are the print and copy settings reliable? They are settings that standard PDF viewers are expected to respect. They are not a strong lock. The password that opens the file is the real protection.
More help: all FirePDF guides. Try the tool: Protect PDF.
