Your files never leave your device
Back to all tools

Lock a PDF with a password

Choose a password and download a locked copy. The file and the password never leave your device.

Note: if you forget the password, it cannot be recovered, not even by us. The file and the password never leave your device, so we have no way to open the file for you. Keep the password somewhere safe.

How it works

  1. Drop a PDF. The tool checks that the file is sound and that it is not locked yet.
  2. Choose a password and type it twice. This way you make sure there is no typing mistake.
  3. Download a locked copy. The original file stays as it was, with no password.

When this helps, and what to know

It is a good idea to protect a file before you send it by email or in a chat app: a contract, a medical document, a form with personal details. Whoever receives the file needs a password to open it. It is best to give them the password in another way, such as a phone call.

A forgotten password cannot be recovered, not even by us. The file and the password never leave your device, so we have no way to open the file for you. Keep the password somewhere safe, and keep the original file too.

The file is encrypted with AES-256, the strongest encryption that PDF supports. Without the password, the text inside cannot be read.

The tool protects opening the file: everyone who wants to open it needs a password. Once the file is open, there are no restrictions on printing, copying or editing.

After locking, open the file once with the password to make sure everything is fine. This encryption is supported by modern PDF apps, but we have not tested every app.

The password must be at least 4 characters, and at most 127 bytes. With English letters and digits that means 127 characters. At least 8 characters, with letters and numbers, is recommended.

A file that is already locked with a password has to be opened first: remove the old password with Remove a password from a PDF, and then lock it again.

Why here

  • The file and the password never leave your device. The locking runs in your browser, and the page itself blocks any request to an outside server. The password is cleared from the field after the locking and is not saved anywhere. Want to check? Open the page, wait a few seconds, then disconnect the internet. The tool keeps working.
  • It works on a phone and on a computer, with nothing to install.
  • Free, no sign-up and no daily limit.

Frequently asked questions

How do I protect a PDF with a password?

Drop the file into the tool, choose a password, type it again, and press "Lock and download". You get a copy that can only be opened with the password.

I forgot the password. Can it be recovered?

No. The password never leaves your device, so we do not have it, and we have no way to open the file. Keep the password somewhere safe, and keep the original file too.

Which encryption is used here?

AES-256, the strongest encryption that PDF supports. Without the password, the text inside the file cannot be read.

Can I block only printing or copying, with no password to open?

No. The tool protects opening the file: everyone who wants to open it needs a password.

What is the maximum length of the password?

At least 4 characters, and up to 127 bytes. With English letters and digits this means 127 characters. At least 8 characters is recommended.

My file is already locked with a password. What do I do?

Remove the password first with Remove a password from a PDF, and then lock it again with a new password.

Are the file or the password sent to a server?

No. The locking runs in your browser, and the page itself blocks any request to an outside server. The password is not saved anywhere. You can open the page, wait a few seconds, then disconnect the internet to check.