Protect PDF With Password: Free and Private

Use this tool to protect pdf with password before you share private files. Set an open password, and choose whether people can print, copy or edit. The file is locked in your browser, so it never leaves your device.

Protect PDF

Encrypt your PDF so it needs a password to open.

or drop a PDF here
There is no way to recover a forgotten password, so store it safely. Editing and copying limits are only honored by PDF readers that respect them; the password itself is what protects the file.
Your PDF is processed inside your browser and is never uploaded. Works on desktop and mobile.

How to use the Protect PDF tool

  1. Click Select PDF file or drop a PDF onto the box.
  2. Type a password twice. Use a long one (12 or more characters) for anything sensitive. Optionally ask readers to block editing and copying.
  3. Press Protect PDF and download the encrypted file. Test it by opening it before you delete the original.

How it works

The tool uses @cantoo/pdf-lib, a maintained version of pdf-lib with encryption support, to encrypt the PDF with AES-256 using your password, so the content cannot be read without it. If you choose to block editing and copying, the permission flags are set and a random owner password is used, so the limits cannot be lifted with your open password. Everything happens in your browser.

Example

Protecting tax-return.pdf with a 14-character password gives tax-return-protected.pdf. Adobe Acrobat, Chrome, Edge, macOS Preview and other modern readers ask for the password before showing any page.

Frequently asked questions

How strong is the protection?

The file is encrypted with AES-256, the strongest standard PDF encryption. In practice, the strength depends on your password, so use a long one that is hard to guess.

What if I forget the password?

It cannot be recovered, by us or by this tool. Keep the original PDF or store the password in a password manager.

Do all PDF readers support it?

Modern readers do. Very old readers from before about 2008 may not open AES-256 files.

Is my PDF or password uploaded?

No. The encryption runs in your browser, so neither the file nor the password leaves your device.

See also: Word to PDF, JPG to PDF.

Lock a PDF

How to use it

  1. Open your PDF.
  2. Set a password.
  3. Pick permissions.
  4. Download the locked file.

More questions

What if I forget the password?

It can't be recovered, so store it safely.

How strong should the password be?

Long and random works best; try the password generator.

Is my file uploaded?

No. It runs in your browser, so your file stays on your device.

Related tools: Unlock PDF, Password Generator, Redact PDF.