Password-protect a PDF

Put a password on a PDF before you email it or store it somewhere shared. The file is encrypted with AES-256 and opens only with the password; you can also ask PDF readers to block printing, copying or changes. Your PDF and its password stay in your browser and are never uploaded.

  • Free
  • No sign-up
  • Nothing uploaded
Loading the tool…
  • AES-256 encryption
  • A password to open the file
  • Limit printing, copying and changes
  • Nothing uploaded, password not kept

How to password-protect a PDF

Four steps, start to finish.

  1. 1

    Open your PDF

    Choose, drop or paste a PDF up to 100 MB.

  2. 2

    Set a password

    Type the password the PDF will open with, then type it again to be sure of it.

  3. 3

    Add limits if you want

    Turn on Limit what readers can do, and choose whether printing, copying and changes are allowed.

  4. 4

    Download

    Choose Protect and download. Your original file is left as it was.

What the password does

A protected PDF is encrypted: its text, pictures and pages are scrambled with a key that only the password unlocks. Anyone who opens it is asked for the password, and without it a PDF reader shows nothing at all. The file name, its size and the fact that it is a PDF can still be seen, so don't put anything private in the name.

The encryption is AES-256, the strongest the PDF standard defines. Current PDF readers open it, including Adobe Acrobat Reader and the PDF viewers built into Chrome, Edge and Firefox. Very old readers, from before about 2010, may not.

Choosing a password

The password is the only thing between the file and anyone who gets a copy, and a copy can be tried against guess after guess by a computer, with nothing to stop it. Short words, names and dates fall quickly. A long password of random characters, or a passphrase of several random words, holds out far longer; the password generator makes either.

Keep the password somewhere safe. Nobody can open the file without it, us included: the password isn't stored or sent anywhere, so there is no way to recover it. Keep the unprotected original as well if you might need it.

Limits on printing, copying and changes

Turn on Limit what readers can do to choose what someone who has opened the PDF may do with it: print it, copy its text and pictures, and change it (edit it, comment on it, fill in its forms, or add and remove pages). Printing stays allowed and the rest is blocked until you change the switches.

These limits are a request to PDF readers. Adobe Acrobat Reader honours them and greys out the blocked commands, but not every reader does: Firefox's built-in viewer, for one, ignores them unless set otherwise. They are not part of the encryption, and software that ignores them can still print or copy a file it can open. Treat them as a polite fence, not a lock. The password to open the file is the real protection.

The limits are guarded by a second, owner password, which the tool makes up at random and doesn't show or keep, so the limits can't be lifted in a reader that honours them. To remove them later, open the file in Unlock PDF with the password you set.

Before you protect a PDF

  • Finish your changes first. Once a PDF is protected, the other tools here can't open it until it is unlocked. Edit, sign, compress or merge it before you add the password.
  • A digital signature stops verifying. Protecting rewrites the whole file, so a certificate-based signature inside it no longer matches. A signature drawn or typed with Sign PDF is part of the page and stays.
  • A PDF that already needs a password has to be unlocked with that password first. A PDF that opens without one but has limits gets the new password and the limits you choose here.

Your PDF is protected by your browser, on your own device: the file and its password are never uploaded, and there is no account, watermark or daily limit. The tool runs on qpdf, which the page downloads from this site the first time it is needed (licences). A PDF that is slightly damaged is repaired first, and the tool tells you when it does.

Updated

Protect PDF: common questions

What people ask before they use it.

How do I put a password on a PDF?

Open it here, type the password twice, and choose Protect and download. The new copy opens only with that password.

How strong is the encryption?

AES-256, the strongest the PDF standard defines. How safe the file is depends mostly on how long and random the password is.

I forgot the password. Can you recover it?

No. The password isn't stored or sent anywhere, and the file can't be opened without it. Keep it somewhere safe.

Can I stop people printing or copying my PDF?

You can ask PDF readers to block them. Adobe Acrobat Reader does, but some readers ignore the limits and can still print or copy a file they can open, so don't rely on them alone.

Will it open on a phone?

Yes, in current PDF readers and browsers on phones and computers. It asks for the password before showing anything.

Is my PDF or my password uploaded?

No. Both stay in your browser, on your device, and the password isn't kept after the download.