What does protecting a PDF with a password do?
Protecting a PDF with a password encrypts the file so that it cannot be opened without that password. It is the right move when you are about to send a payslip, a contract, a medical report or a tax return by e-mail or chat and want only the intended person to read it, even if the message ends up in the wrong inbox.
This tool encrypts with AES-256 (the PDF 2.0, revision 6 scheme), the strongest encryption the PDF format offers. You type the password to open the file, repeat it to avoid typos, and choose three permissions: Allow printing, Allow copying text and images and Allow editing and assembling pages. Everything runs in your browser with pdf-lib. The PDF and the password are not uploaded, there is no account and no server-side limit.
An important distinction the page itself states: the open password is what really protects the content. The permission switches (no printing, no copying, no editing) are flags that most readers honour, but a program that ignores them can still use the content once the file is open, so they are a courtesy and not a guarantee. If your goal is only to discourage reuse of a document you are sharing, a watermark may fit better; to remove a password later, use remove PDF password.
How to put a password on a PDF
- Open the page. A 2-page example is loaded; drop your own PDF anywhere on the page or click Choose a file.
- Type the Password to open the PDF and repeat it in Repeat the password. If they differ, the page says "The two passwords are different." and the button stays off.
- Decide the permissions. All three are on by default: Allow printing, Allow copying text and images and Allow editing and assembling pages. Turn off the ones you want restricted.
- Read the warning: write the password down. There is no way to recover it, not even for us.
- Click Protect PDF and download. The file is named after the original with
-protectedat the end, for examplepayslip-protected.pdf. Open it once in your own reader to confirm the password is asked. - Send the file, and send the password by a different channel (a phone call or another app), not in the same message.
Examples
A payslip by e-mail
payslip-march.pdf goes to an employee. Password: a phrase of several words that you share by phone, all three permissions on. The employee opens payslip-march-protected.pdf with the password and can print and copy normally. The point is only that a stranger who finds the e-mail cannot read it.
A contract that must not be edited
For a final contract, leave Allow printing on, turn Allow copying text and images off and Allow editing and assembling pages off. The recipient can read and print; readers that respect the flags will block copying and editing. Remember it is a barrier for ordinary use, not a vault.
A read-only document with no printing
A confidential draft that people should only read on screen: printing off, copying off, editing off. Again, a cooperating reader obeys; the real protection is still the open password.
| Option | Effect |
|---|---|
| Open password | Required to open the file (AES-256) |
| Allow printing off | Readers that honour it disable printing |
| Allow copying off | Readers that honour it block copying text and images |
| Allow editing off | Blocks changes, annotations, form filling and page assembly in readers that honour it |
Choose a password you can remember and others cannot guess
Prefer a phrase of 4 unrelated words or a long string over 1234 or a birthday. Length helps more than symbols. Store it in a password manager.
Common errors and how to fix them
- "... is password protected, so it cannot be read. Remove the password first.": the PDF already has a password, so a new one cannot be added over it. Use remove PDF password first, then protect it again with the new password.
- "The two passwords are different.": the confirmation does not match. Retype both.
- "... is damaged or incomplete and could not be read.": the file is corrupt. Open it in a reader and save a fresh copy.
- "... is not the type this tool expects": the file is not a PDF. Convert it first, for example with JPG to PDF.
- "The browser ran out of memory for this file.": a very large file may not fit on a phone. Try on a computer.
- The recipient says the PDF will not open: confirm the password character by character, including capital letters and spaces. Very old readers may not support AES-256, so test with the reader your recipient uses.
Frequently asked questions
Is it free and safe to protect a PDF here?
It is free and needs no account. Nothing is uploaded: encryption happens in your browser, so the password and the file stay on your device.
Which encryption does it use?
AES-256, in the PDF 2.0 scheme (revision 6). It is stronger than the older 128-bit schemes some tools still use.
Can you recover a forgotten password?
No. The password is not stored anywhere, so there is no recovery, not even for us. Keep the original unprotected file in a safe place.
Does the password stop people from printing or copying?
The open password stops opening. The permission switches are honoured by most readers, but they are not a guarantee once the file is open. Treat the open password as the real protection.
Does protecting reduce the quality of the PDF?
No. Pages are not redrawn; the file is encrypted as it is.
Can I protect a PDF on my phone?
Yes, in the browser of Android and iPhone: choose the file, type the password twice and download the result.
Can I change the password later?
Remove it with remove PDF password, which needs the current one, and protect the file again with a new one.