Skip to main content

PDF Password Protector

Add a password to a PDF so it cannot be opened without one. The file is encrypted in your browser and never uploaded.

Drop a PDF here, or Up to 100.00 MB

Anyone opening the document will be asked for this. There is no way to recover it — if you lose it, the file is unreadable.

Asked for twice because a typo here produces a file nobody can open, including you.

Permissions password (optional)

A second password that lifts the restrictions above. Set a different one if recipients should be able to open the document but not change what it permits.

Store the password somewhere safe before you close this page. The encryption is real: there is no recovery path, no backdoor and no copy of the password anywhere. A lost password means a lost document.

Encryption runs locally through a WebAssembly build of qpdf — the PDF is read in a Web Worker on this device and no bytes are sent anywhere. Document content is preserved, though the internal file structure and size may change, since streams are recompressed as the file is rewritten.

About PDF Password Protector

Add password protection to a PDF entirely inside your browser. Choose a password, optionally restrict printing, copying, editing and commenting, and the tool writes an encrypted copy that no reader will open without the password. Encryption runs through a WebAssembly build of qpdf, the long-standing open-source PDF toolkit, executing in a Web Worker on your own device. Most online PDF protection services upload your file to a server, which means handing a confidential document to a third party and trusting them with the password you chose for it. This tool transmits neither. The default is AES-256, the strongest encryption the PDF format defines, with AES-128 available when a document has to open in much older software.

How to Use PDF Password Protector

  1. Drop your PDF onto the upload area, or choose a file from your device.
  2. Type the password readers will need to open the document, then confirm it.
  3. Leave the encryption on AES-256 unless the file must open in very old software.
  4. Clear any of the Allow boxes to restrict printing, copying, editing or commenting.
  5. Select Protect PDF, then download the encrypted copy.

PDF Password Protector FAQ

Is my PDF uploaded to a server?

No. The file is read directly in your browser and encrypted by a WebAssembly module running in a Web Worker on your device. Neither the PDF nor the password is transmitted anywhere, and the worker is terminated as soon as the result is ready.

What happens if I forget the password?

The document becomes unreadable. This is real encryption with no recovery path and no backdoor — nobody, including us, can open the file without the password. Keep the original unprotected copy or store the password in a password manager before you close the page.

Which encryption does this use?

AES-256 by default, which is revision 6 of the PDF standard security handler and the strongest the format defines. AES-128 (revision 4) is offered for documents that must open in readers older than roughly 2009. RC4 and 40-bit encryption are deliberately not offered: they are broken rather than merely dated.

What is the difference between the password and the permissions password?

The first password is required to open the document at all. The permissions password, called the owner password, lifts the restrictions you set. If you do not set a separate one, the open password is used for both — which means anyone who can open the document can also remove the restrictions. Set a different permissions password when recipients should be able to read but not unlock.

Do the printing and copying restrictions actually stop anyone?

They are enforced by the reader, not by the cryptography. Compliant software such as Adobe Acrobat honours them, but the page content is still decrypted once the document is open, so tools that ignore the permission flags can bypass them. Treat restrictions as a clear statement of intent, and the open password as the control that actually protects the file.

Can I protect a PDF that already has a password?

Not directly. qpdf cannot add encryption to a file it cannot read, and silently replacing protection you may not know is there would be worse. Remove the existing password first with the PDF Password Remover, then protect the result here.

Does the whole password get used?

AES-256 hashes the first 127 bytes of the password as UTF-8. AES-128 is far tighter: it uses exactly 32 bytes and encodes them as PDFDocEncoding, so characters outside Latin-1 are mangled. The tool warns you when a password exceeds the limit for the encryption you picked. Readers truncate identically, so the document still opens with the full password you typed.

Does protecting the PDF change its contents?

Document content — text, images, and page structure — is preserved. qpdf rewrites the file with an encryption layer, so the internal file structure and size may change: streams are recompressed and objects can be renumbered. Keep your original until you have checked the protected copy opens as expected.

Does this work offline?

Yes. Once the page and its WebAssembly module have loaded, protecting a file requires no network connection at all.

Is there a file size limit?

Files up to 100 MB are accepted. The limit exists because the PDF is held in browser memory during encryption, and larger files would risk exhausting the tab.