Password-protect a PDF

Encrypt a PDF so a reader has to type the password before it opens — with the limits of PDF permissions stated plainly.

Password-protect a PDF

Drop a PDF here

The password work happens on your device

One PDF at a time · max 50 MB

The qpdf engine (1.3 MB) loads only when you press the button.

    No PDF added yet.

    Three steps — nothing to install

    1. Add a PDF

      One file up to 50 MB. The 1.3 MB password engine loads when you press the button, not before.

    2. Set the password

      Choose an open password. The owner password can be generated; permissions are optional.

    3. Download the encrypted copy

      The result asks for the password in any reader. Keep it somewhere you can find again.

    Two passwords, two different jobs

    The open password (also called the user password) is the real gate: a reader asks for it before it will show a page. Without it the file cannot be opened by this tool, by Acrobat or by anything else. There is no recovery and no backdoor, so store it somewhere other than the PDF.

    The owner password controls the permission flags. It matters to readers that choose to respect them. Printing, copying text and editing can each be allowed or refused, and qpdf writes those flags into the encryption dictionary — but plenty of tools ignore them, and a screenshot or a phone camera defeats them. Treat permissions as a request, not a lock.

    AES-256, AES-128 and RC4-40

    AES-256 is the default and the right choice for anything current: every reader released in the last decade supports it, and it is the strongest option PDF allows. AES-128 is there for a reader that cannot handle 256-bit encryption, and RC4-40 is there only for very old software — it is weak by modern standards and should not be used for anything that matters.

    Encryption protects the contents of the file, not its existence or its size. The filename still travels with the email, and the encrypted file is often slightly larger than the original because of the encryption dictionary.

    What this does not do

    It does not redact: a password hides the whole document, and anyone with the password sees everything, including the parts you might wish were gone. Use Redact PDF for that, and remember that redaction rebuilds the pages as images.

    It also does not stop a recipient who has the password from sharing the file, printing it or copying the text — permissions can be ignored. And it does not add a digital signature or prove authorship. If the goal is to prove who sent a document, that is a signing certificate, not encryption.

    Frequently asked questions

    Is my file or password uploaded?No. qpdf runs as WebAssembly in this tab, and neither the file nor the password is sent anywhere.
    What happens if I forget the password?The file cannot be opened. There is no recovery option, by design, in this tool or in any other. Keep the password outside the PDF.
    Can I stop someone printing or copying?You can set those permissions, but they are advisory. Many readers and tools ignore them, so do not rely on them for anything important.
    Which encryption should I choose?AES-256 unless an old reader forces AES-128. RC4-40 is only for legacy software and is weak.
    Why did the engine download 1.3 MB?That is qpdf compiled to WebAssembly. It is loaded only when you press Protect or Unlock, not when the page opens.
    Does it work on an already encrypted PDF?No. Unlock it first with the password you know, then protect the unlocked copy with a new one.