N

Runs in your browser · nothing is uploaded

Password Protect PDF

Password protect a PDF before you email or share it. The file is encrypted with AES-256 on your device, so it can't be opened without the password — and you can limit printing, copying and editing too.

How it works

Protecting a PDF

  1. Choose the PDF. It's read on your device, and the engine checks whether it's already encrypted — if it is, you're asked for its current password first.
  2. Type the open password twice. A strength hint shows how easy it would be to guess.
  3. Optionally limit printing, copying and editing, and set a separate permissions password.
  4. Press Protect PDF. QPDF (Apache-2.0), compiled to WebAssembly, rewrites the file with AES-256 in a background worker, so large files don't freeze the page.
  5. Before you can download it, the result is checked: it must refuse to open without a password, open with yours, and carry the permissions you chose. It's saved as name-protected.pdf.

Open password vs permissions

  • The open password is real encryption. Every page, image and string in the file is encrypted with AES-256. Without the password the contents can't be read.
  • Permissions are honoured, not enforced. Printing, copying and editing limits are flags that well-behaved readers respect. Someone who can open the file and is determined to ignore them can find software that does.
  • The permissions password lets you lift or change the limits later in an editor such as Acrobat. Left blank, a random one is used.
  • Choose a long password. Anyone with the file can try guesses offline as fast as their hardware allows. Four or more random words, or 12+ random characters, is a good minimum. The password generator can make one.

Limitations, plainly

Frequently asked questions

Is my PDF or password uploaded anywhere?+

No. The PDF is encrypted in your browser by QPDF running as WebAssembly in a background worker, and the protected copy is saved straight to your device. Your passwords are used only inside that worker, which is shut down as soon as the job finishes; they're cleared from the page afterwards and never stored or sent.

How strong is the encryption?+

The file is encrypted with AES-256, the strongest standard PDF encryption (revision 6, defined in PDF 2.0 and supported by Acrobat X and later and by every current reader). Without the open password the pages, text and images can't be read. The weak point is the password itself: anyone who has the file can try guesses offline without limits, so use 12 or more characters, or four or more random words.

What do the printing, copying and editing permissions do?+

They tell PDF readers what to allow once the file is open: printing (full, low resolution or not at all), copying text and images, and editing (none, form filling, comments and forms, or anything). Adobe Acrobat, Preview, browsers and most other readers honour them, but they can't be enforced — the file has to be decrypted to be shown, and software that ignores the flags can print or copy anyway. Treat them as a polite request, and rely on the open password for confidentiality.

What is the permissions password for?+

It's the PDF “owner” password. Entering it in an editor such as Acrobat lifts the restrictions or lets you change the security settings. It must differ from the open password. If you leave it blank, a long random one is used, so nobody can lift the restrictions with a password — keep your unprotected original if you might need changes later.

I forgot the password. Can you recover it?+

No. Nothing is stored anywhere, and AES-256 can't be bypassed — only guessing the password would work, which this site doesn't do. Keep the password in a password manager, and keep an unprotected original somewhere safe.

Can I change the password of a PDF that's already protected?+

Yes. Open it here, enter its current password, then set the new password and permissions. The old encryption is replaced. To remove the password entirely, use Unlock PDF.

Will the PDF look different afterwards?+

No. QPDF rewrites the same pages, fonts, images, links, bookmarks and form fields — it only adds encryption. The file size usually changes by a few kilobytes. Digital signatures in the original become invalid, because any re-save changes the signed bytes.

How long can the password be, and can it use accented letters or emoji?+

Up to 127 bytes: that's 127 plain letters, digits and symbols, while accented letters and emoji take 2–4 bytes each. Non-English characters work in modern readers, but some older apps can't type or accept them, so plain characters are safest for a file you send to others. Line breaks and tabs aren't allowed.

How do I open a password-protected PDF?+

Open it as usual in Adobe Acrobat Reader, Apple Preview, a browser such as Chrome, Edge, Firefox or Safari, or another current PDF reader — it asks for the open password. PDF passwords are case-sensitive.

Can I restrict printing or copying without an open password?+

Not with this tool — it always sets an open password. Restrictions on their own can't be enforced, because the file has to open without a password, and many free apps ignore them. If you mainly want to discourage copying, a visible watermark is often more effective.

Is it safe to email a password-protected PDF?+

The contents are protected by AES-256, so the file itself can travel by email. Send the password a different way — by text message, phone or a chat app — not in the same email, and choose one that's hard to guess.