Security guide

How to Password Protect a PDF: AES 256 and the 15 Character Rule

A PDF password is either real encryption or a polite request, depending on which one you set. This guide shows which is which, and how long it must be.

Putting a password on a PDF, in short

To password protect a PDF here, open it, press Password, choose Lock saved PDF with a password, type a password and save. The new file is encrypted with AES using 256 bit keys, and nothing in it can be read without the password. Use 15 characters or more. The file and the password never leave your browser.

Have the file in front of you? Open your PDF, press Password, and save a locked copy. Open the PDF editor, free and on your own device.

Encryption written here
AES with 256 bit keys (PDF security revision 6)
Who can open the file
Only someone who has the password
Limits on printing or copying
Not set here: any program can ignore them
Password length to aim for
15 characters or more, as NIST advises
Where it happens
In your browser; nothing is uploaded
Cost here
Free, no account

What a PDF password protects, and what it does not

A PDF can be protected in two ways, and only one of them is a lock. The open password encrypts the content of the file: the text, the pictures and the fonts are scrambled with a key that only the password opens. Without it, there is nothing readable to show, copy or print. That is real protection.

The other way is a list of permissions: do not print, do not copy, do not change. Those are requests, not locks. The manual of qpdf, a widely used open source PDF tool, says it plainly: there is fundamentally no way to prevent an application from disregarding the security restrictions on a file, and the security of the restrictions placed on PDF files is solely enforced by the software. Anyone who can open the file can open it in a program that ignores them.

That is why the lock written by this editor is an open password and nothing else. Once a person has the password, they can open, print and copy the file. Setting print and copy limits on top would suggest a protection that does not exist.

You wantA PDF password does it?What to do instead, or as well
Only the right person can read the fileYes, with a long password sent separatelySend the password by another route than the file
A stranger who finds the file cannot read itYesUse a password that is not written on anything stored with the file
The reader cannot print or copy itNo; such limits can be ignoredShare only what they may keep
Part of the file stays hidden from the readerNo; a password opens all of itRedact that part before sending
Nobody can change the document unnoticedNoA certificate based digital signature, which shows any later change

How to password protect a PDF, step by step

These steps use the editor on this site. The file is read from your device, encrypted in your browser and saved back to your downloads. Neither the file nor the password is sent anywhere.

  1. Open the PDF editor and choose your PDF.
  2. Make any other changes first: fill the form, sign, remove pages you do not want to send.
  3. Press the Password button. A window titled Password on save opens.
  4. Choose Lock saved PDF with a password, and type the password in the New PDF password field.
  5. Press Apply to Save, then save the document.
  6. Open the saved file to check it: it should ask for the password, and open with it.

The password field takes the password once, so type it carefully, or paste it from a password manager. The file you started from stays unprotected on your device; keep it somewhere safe in case the password is lost.

How strong the encryption is

The PDF format has offered several ways to encrypt a file over the years: RC4 with 40 bit or 128 bit keys, and AES with 128 bit or 256 bit keys. The qpdf manual says of the old way that with 128 bit encryption the default security handler uses RC4, which is also known to be insecure, and that 256 bit encryption always uses AES.

We checked what this editor writes by locking a test file on 18 November 2026 and reading its encryption record: AES with 256 bit keys, security handler revision 6 (the record says V 5, R 6 and AESV3), the newest method in the PDF standard. The password itself is the weak point, not the cipher, which is why the next section matters more than this one.

MethodKey sizeWhere it stands
RC440 bitRC4, known to be insecure, with a very short key
RC4128 bitStill RC4, so still insecure
AES128 bitA sound cipher, with half the key length of the 256 bit version
AES256 bitThe strongest method in the standard; what this editor writes

Choosing a password that holds

A locked PDF can be attacked in a way a website login cannot. Whoever has a copy of the file can try passwords on their own computer, as fast as it goes, with no limit on attempts and nobody watching. Length is what defends against that.

The United States National Institute of Standards and Technology sets out password rules in its Digital Identity Guidelines (SP 800-63B, revision 4). It requires passwords used on their own to be a minimum of 15 characters in length, says that services should permit a maximum password length of at least 64 characters, and says they shall not impose other composition rules, such as requiring mixtures of different character types. In plain terms: long beats complicated.

  • Use several unrelated words. Four or five ordinary words in a row are long, easy to type and hard to guess.
  • Do not reuse a password from an account. If that account leaks, the file is open too.
  • Avoid what is in the file. A name, a date of birth or an account number printed on the pages is the first thing someone would try.
  • Keep it in a password manager if the file is one you will need to open in a year.

Sending a protected PDF

The protection is only as good as the way the password travels. Put the password and the file in the same email, and anyone who sees the email has both. Send them by different routes instead: the file by email and the password by text message, or the file by a sharing link and the password by phone. For someone you send files to often, agree a password once in person.

Other ways to put a password on a PDF

WhereHow, in the maker's own words
Preview on a MacChoose File, Export; click the Permissions button; select Require Password To Open Document, enter a password and retype it; enter an owner password; click Apply, then Save
Preview on an iPhone (iOS 26)Tap the Actions Menu button next to the filename, then select Lock; enter the same password in the Password and Verify fields; tap Done
Microsoft WordSave as PDF, then More Options and Options; select Encrypt the document with a password; Word opens the Encrypt PDF Document box, where you type and re enter a password

Steps from Apple's Preview guides for Mac and iPhone and from Microsoft's page on saving Office files as PDF, read on 18 November 2026. Those pages do not say which encryption method they use.

When a password is the wrong tool

  • The file goes to many people. One shared password soon reaches people it was not meant for. Send only what each reader needs.
  • Some of it must stay private even from the reader. A password opens everything. Redact first.
  • The file must stay readable for years. A lost password is a lost file. Keep an unprotected copy in a safe place.
  • You only want to stop accidental changes to a filled form. Flattening does that without a password; see how to flatten a PDF.

To take a password off again, see how to remove a password from a PDF.

Frequently asked questions

How do I put a password on a PDF for free?

Open the PDF here, press Password, choose Lock saved PDF with a password, type the password, press Apply to Save, then save. The saved file asks for the password before it opens.

How strong is the protection?

The file is encrypted with AES using 256 bit keys, the strongest method in the PDF standard. What decides how safe it is in practice is the password: a long one cannot be guessed, a short one can.

Can I stop people from printing or copying my PDF?

A PDF can ask for that, but the limits only work in programs that choose to respect them, and anyone who can open the file can use one that does not. If someone must not have the text, do not send it to them.

What happens if I forget the password?

The file cannot be opened, here or anywhere. Keep the unprotected original somewhere safe, or store the password in a password manager.

Can I password protect a PDF on my phone?

Yes. The editor works in a phone browser the same way. On an iPhone with iOS 26, Apple's Preview app can also lock a PDF from its Actions menu.

Is the password sent to your server?

No. The file is encrypted in your browser, and the password is used there only.

How do I send the password to someone?

By a different route from the file: if the file goes by email, send the password by text message or tell them by phone. A password in the same email protects nothing.

Can I change or remove the password later?

Yes. Open the file with its password, press Password, and either lock it with a new password or remove the password, then save.

What to remember

The open password is the only part of PDF protection that is real encryption. The editor here writes it with AES 256, the strongest method in the PDF standard, so the strength of the lock comes down to the password you choose.

  1. Finish the document first: fill, sign, and remove what should not go.
  2. Lock it with 15 characters or more; a few unrelated words work well.
  3. Check the saved file asks for the password and opens with it.
  4. Send the password another way than the file.

Keep an unprotected copy somewhere safe. A lost password is a lost file.

Try it on your own file

Open your PDF, press Password, and save a locked copy. Free, with no account and no watermark. The file stays on your device.

Open the PDF editor