Protect PDF

Protect PDF files with an open password and AES-256 encryption, and choose whether readers may print, copy or edit, all inside your browser so the file and the password never leave your device.

PDF to protect

Drop a file here, paste from the clipboard, or choose one

PDF, processed in this tab

Password protection
Runs locally in your browser

About the Protect PDF

The open password is the part that really protects the file. It is applied with AES-256 encryption by default (a 256-bit key, the revision 6 handler from ISO 32000-2), so without the password the pages, text and images cannot be read. If you need to reach a very old viewer, the Encryption menu also offers AES-128 (a 128-bit key, revision 4). You type the password twice to catch typos, and a strength hint tells you when it is short or common. After encrypting, the tool reopens its own output to check that the right password works and that both a wrong password and no password are refused, and only then offers the download. Nothing is recorded: the passwords live in this tab and are not logged or sent anywhere. If you forget the password, nobody can recover the file, including this site, so keep an unprotected original.

The permissions are a separate, weaker layer, and it is worth understanding the difference. You can switch off printing, copying, editing, commenting and page changes. Those flags are instructions stored in the file. Most viewers honour them, but any program that decrypts the file with the open password already holds all the data and may ignore them. Treat them as a deterrent for casual copying. They also only work when a separate owner password is set that differs from the open password, because the owner password is what lifts them; the Generate button creates a random one. Screen reader access is always left on.

Files that are already encrypted are refused with an explanation: remove the old password with Unlock PDF first. Up to 200 MB is accepted. A strong password is easy to make with the Password Generator. Before locking a file you might also want to fix its pages in the PDF Editor or add a signature with Sign PDF.

How to use

  1. Drop the PDF on the pane above or press Open.
  2. Type the open password twice. Choose what readers may do, and set an owner password if you restrict anything.
  3. Press Protect and download PDF.
  4. Open the downloaded file once to confirm that the password is asked for, and keep the original somewhere safe.

Common questions

How strong is the encryption?
AES-256 with the revision 6 key derivation from the PDF 2.0 standard, written by the open source pdf-lib fork in this tab. You can pick AES-128 (128-bit key, revision 4) instead, which very old viewers understand. Strength then depends on the password: a long, random one is far harder to guess than a short word, and the hint under the password box tells you if yours is weak.
Can I forget the password and still get the file back?
No. There is no reset and no copy on a server. Without the password the content cannot be read, so store the password and an unprotected original separately.
Do the print and copy restrictions stop everyone?
No. Well-behaved viewers respect them, but software that opens the file with the password can ignore the flags. They discourage casual copying and nothing more.
Why was my PDF refused as already encrypted?
Adding a second layer on top of existing protection would leave two passwords in play. Unlock the file first, then protect the unlocked copy.
Will every viewer open an AES-256 PDF?
Modern viewers do. The files made here were opened with their password in the Chrome PDF viewer, pdf.js (the engine in Firefox), MuPDF and pypdf. Very old readers from before about 2008 may not support AES-256. Plain ASCII passwords are the safest across programs.