Password-protect PDF

Lock a document so it asks for a password when opened. Neither the file nor the password leaves this browser.

No upload

Drop a PDF here

Pick one file and its page count is read. The file is not sent anywhere.

How to password-protect a PDF

  1. 1

    Choose a PDF

    Drop the file you want to lock.

  2. 2

    Set a password

    Type the same password twice. Turn off the permissions if you also want to block printing or copying.

  3. 3

    Take the locked file

    From now on the file needs the password to open.

Before you lock it

Forget it and nobody gets in

This is AES-256, so there is no way to recover the contents without the password. That includes us. The password never reaches us, so there is nothing we could do even if we wanted to.

For anything important, write the password down somewhere safe and keep the original file rather than deleting it.

Open password versus owner password

The open password is what someone needs to view the document. For most purposes that alone is enough.

The owner password unlocks printing and editing restrictions. Leave it blank and it matches the open password. Note that permission restrictions are a rule viewers agree to honour, and some programs ignore them. If you need a hard block, use the open password.

Common questions

Is the password sent to a server?+

No. The encryption engine (qpdf) runs as WebAssembly inside your browser, and the password you type is used there and then discarded.

What encryption is used?+

AES-256, the PDF 2.0 standard, and the strongest of the widely supported options.

Can I re-protect a file that is already locked?+

Not directly. If the file already has a password, the tool stops and asks you to remove it first. Clear the existing password with Remove PDF password, then set a new one here.

Does it work on a phone?+

Yes. The first run downloads about a megabyte of encryption engine, so there may be a short wait.