How to Password Protect a PDF, and How Strong the Lock Is

Learn the difference between PDF open and owner passwords, how strong each encryption level really is, and how to lock a PDF before emailing it.

Updated September 29, 2026 6 min read

Use the free Protect PDFAdd an open password to a PDF, right in your browser

Emailing a payslip, a medical letter or a customer list as a plain PDF means anyone who gets hold of the message can read the file: a colleague on a shared inbox, someone who receives a mistaken forward, or whoever finds an old laptop. Adding a password is a simple extra layer that makes the file unreadable without the key.

PDF passwords come in two kinds and several strengths, and they are often misunderstood. This guide explains what each password does, how strong different encryption levels are, how to protect a file in your browser, and when a stronger method is the better choice.

Two kinds of PDF password

Open password (user password) Permissions password (owner password)
Needed to Open and view the file at all Change restrictions such as printing or copying
Encrypts the content Yes The file is encrypted, but anyone can open it
Real protection Depends on encryption strength and password quality Weak: restrictions rely on the reader software obeying them

An open password is the one that matters for confidentiality. Without it, the content cannot be decrypted.

A permissions password on its own only asks viewers to respect restrictions, like "no printing". Well-behaved readers comply; other software can ignore the flags. Treat permissions as a courtesy, not a security boundary.

Encryption strength

The PDF format has used several encryption methods over the years:

  • RC4 40-bit: the oldest level (PDF 1.1 to 1.3 era). It can be broken quickly with freely available tools, whatever the password, so it only deters casual opening.
  • RC4 128-bit: longer keys, but RC4 itself has known weaknesses and the PDF 2.0 standard deprecates it.
  • AES 128-bit: introduced with Acrobat 7 (PDF 1.6). Sound, but superseded.
  • AES 256-bit: the current standard (PDF 2.0, "revision 6"), supported by Adobe Acrobat and Reader X or later, all major browsers, macOS Preview and current phone viewers.

With any method, the password itself is often the weakest link. A short, guessable password such as a birth date can be found by automated guessing, regardless of the cipher.

Protect a PDF in your browser

Our Protect PDF tool encrypts the file on your device, so the unprotected document is never uploaded. It encrypts the existing PDF rather than redrawing it, so text stays selectable and searchable, and links, form fields, bookmarks and image quality are kept.

  1. Open Protect PDF and drop your file (up to 100 MB).
  2. Enter a password under Password to open the PDF and repeat it under Confirm password. It must be at least 4 characters, and should use only English letters, digits and common symbols so every PDF reader accepts it. The strength bar gives a quick hint, and the eye button shows what you typed.
  3. Optionally enter an Owner password. It lets you change the permissions later and must differ from the open password. If you leave it empty, a random one is generated.
  4. Leave Encryption on AES-256 (recommended). Pick AES-128 (older readers) only if the recipient still uses Adobe Acrobat or Reader 7, 8 or 9, which cannot open this kind of AES-256 file.
  5. Under Permissions after opening, tick what people with the open password may do: Allow printing, Allow copying text and images, Allow editing pages and content, Allow comments and form filling.
  6. Click Protect PDF. The tool checks that the new file refuses to open without the password and opens with it, then downloads it with -protected in the name.

AES-256 is the strongest method the PDF format offers, so the practical limit is your password. A long random password or passphrase is very hard to guess; a birth date or a single dictionary word is not.

There is no back door: if the open password is lost, the file cannot be opened by you, by us or by anyone else. Keep the password in a password manager and the unprotected original somewhere safe.

If the PDF already has a password, the tool asks you to unlock it first with Unlock PDF.

Alternative methods

qpdf on the command line

The free command-line tool qpdf applies the same AES-256 encryption and is handy for scripts or batches of files:

qpdf --encrypt "OpenPassword" "OwnerPassword" 256 -- input.pdf protected.pdf

It also supports options to restrict printing or modification.

Microsoft Office

When exporting to PDF from Word, Excel or PowerPoint on Windows, the options dialog includes a setting to encrypt the document with a password. This protects the file while keeping text searchable, and it is convenient if the document starts life in Office.

Mac Preview

When you export a PDF from Preview, the export dialog offers encryption or permission settings where you can set a password. Labels vary between macOS versions.

Encrypted archives and secure sharing

For sets of files, a password-protected ZIP using AES encryption, or a secure file-sharing link with expiry and access control, may suit better than individual PDF passwords.

Tips for using PDF passwords well

Send the password separately

Putting the password in the same email as the attachment defeats the purpose. Send it by text message, phone or a separate channel, or agree a pattern in advance with regular recipients.

Use a real password

A random password of 12 or more characters is far harder to guess than a name or date. Password Generator creates one instantly; store it in a password manager.

Keep an unprotected original

There is no way to recover a forgotten password from the file. Keep the original in a secure place so you can re-protect it with a new password if needed.

Finish editing first

Sign, fill and number the document before protecting it. If you need a visible marking as well, add a watermark first; if some content should not be shared at all, Redact PDF removes it before you encrypt.

Frequently asked questions

What is the difference between a user password and an owner password?

The user (open) password is needed to open the file. The owner password controls permissions such as printing and editing, and only works if the reader software enforces it.

Is PDF password protection secure?

It depends on the encryption level and the password. AES-256 with a strong password is robust, and it is what our tool uses by default; 40-bit RC4, still produced by some older software, only keeps out casual readers.

Can I stop people from printing my PDF?

You can turn printing off in the permissions, and most mainstream readers will respect it. Determined users with other software can bypass it, so don't rely on it for secrets.

Yes. The tool encrypts the document as it is, so text, links, form fields and images are unchanged for anyone who enters the password.

What if I forget the password?

You will not be able to open the protected copy, and nobody can recover or reset the password for you, because it is the key to the encryption. Keep the original file somewhere safe, or store the password in a password manager.

Try it now: Protect PDF

Loading tool…