All guides

How to Password-Protect a PDF (and What the Encryption Actually Does)

Add a password to a PDF in your browser and understand the difference between a user password, an owner password, and real AES encryption.

Adding a password to a PDF is the simplest way to keep a document private when you email or store it. But "password protection" hides a few important distinctions that determine how secure your file really is.

User password vs. owner password

For genuine confidentiality you want a user password, which is what actually encrypts the content.

What the encryption is

Modern PDF encryption uses AES, with the key derived from your password. The strength therefore depends almost entirely on the password you choose — a long, unique passphrase is far more important than the algorithm name. A short dictionary word can be brute-forced regardless of the cipher.

How to protect a PDF in PDFelly

  1. Open the Protect PDF tool and add your file.
  2. Type a strong password.
  3. Click Protect and download the encrypted file.

This runs in your browser, so the unprotected file and your password never travel over the network. PDFelly also refuses to hand back a file unless it can confirm the encryption was actually applied — it will never silently save an unprotected copy.

Important cautions

Building a password that actually protects

The encryption on a modern PDF is strong; the password is almost always the weak point. A four-letter word can be brute-forced in moments regardless of the cipher, while a long passphrase of unrelated words is effectively unbreakable. Favour length over complexity, never reuse a password you use elsewhere, and treat the password as the real secret — because it is.

How to share a protected PDF safely

Encrypting a file accomplishes nothing if you email the password in the same message. Send the document one way and the password another — a text message, a phone call, a separate app. For ongoing exchanges with the same person, agree a passphrase scheme in advance so you are not transmitting secrets at all.

What a password does and does not stop

An open password stops someone without it from reading the file. It does not stop someone who has the password from copying, printing or forwarding the content — once they can open it, it is in their hands. Permissions-only protection is weaker still, because many viewers ignore the restrictions. For confidentiality, rely on the open password and a strong passphrase, not on permission flags.

Frequently asked questions

What is the difference between a user and owner password?

A user (open) password is required to view the file and actually encrypts it. An owner password only sets restrictions like no-printing, which many viewers ignore.

Can PDFelly recover a password I forgot?

No. There is no recovery. If you lose the password the encrypted content cannot be read, so always keep a backup of the original.

How strong is the encryption?

PDFelly applies standard AES encryption. Its real-world strength depends on your password — use a long, unique passphrase.

Is my file or password sent anywhere?

No. Encryption happens in your browser; the unprotected file and the password never leave your device.

Choosing between protecting a file and other approaches

A password is the right tool when you need to send or store a specific document so that only intended people can open it. It is not always the best tool, though, and recognising the alternatives saves effort. If your concern is that sensitive passages must never be extracted, the answer is redaction, not a password, because anyone you give the password to can copy the content. If you simply want to mark a document as confidential without truly restricting access, a watermark communicates that more visibly than encryption. If the goal is long-term archiving rather than secrecy, PDF/A matters more than a password. And if you are protecting many files for the same recipient, agree a passphrase scheme once rather than inventing and transmitting a new secret each time. Match the protection to the actual risk: encryption guards against unauthorised opening, and nothing more.

Related guides

Try it now: Protect PDF — free, private, runs entirely in your browser. No upload, no account.