Skip to content

Protect a PDF with a password

Before you email a contract, a tax return or a medical record, put a password on it: without it nobody can open or read it. Choose the PDF, type a password (or generate a strong one) and, if you want, limit what can be done once it is open, such as printing or copying text. The file is encrypted with 256-bit AES in your browser and never uploaded to any server.

Works anywhere in the world, wherever you are.

Protection

Nobody can open or read the PDF without the password. It is encrypted with 256-bit AES, the strongest method in the PDF standard.

Also limit what can be done once it is open

The PDF and the password never leave your device: encryption happens in your browser with qpdf, a free open-source program, and nothing is uploaded to any server. Up to 100 MB.

Protected PDF

Choose a PDF

About this calculator

How to password-protect a PDF

1. Choose the PDF. 2. Keep “Password to open” and type the password twice, or press “Generate a strong password” for a random 16-character one (copy it before you go on). 3. If you also want to limit what can be done with the open document, choose “Yes” under “Also limit what can be done” and pick. 4. Press “Protect PDF” and download the file.

Before handing you the file, the tool checks it: that it does not open without the password, that it opens with it, that it uses 256-bit AES and that it carries exactly the permissions you chose. So you know the file you send is the one you meant.

Send the password through a different channel from the file: if you email the PDF, send the password by text or say it on the phone. If they travel together, whoever intercepts one has both.

Password to open, or restrictions only

With a password to open, the content is encrypted: without the password, the PDF is unreadable to any program. That is real protection, and its strength depends on the password. 256-bit AES is the method of the PDF 2.0 standard (ISO 32000-2); the old ones, RC4 and 128-bit AES, are deprecated. A short or common password can be guessed by trying many, which is why the tool warns under 8 characters: a long phrase or a generated one is better.

“Restrictions only” lets anyone open the PDF, but asks the reader not to allow printing, high-quality printing, copying text and images, editing, commenting, filling in forms or rearranging pages. Acrobat Reader and many readers respect it, but it is a request, not a lock: others ignore it; Firefox's viewer, for one, does not apply it by default. It makes your intent clear on a document anyone may read; it does not keep a secret.

Restrictions come with a permissions password, different from the open password. If you do not type one, a random one you need not keep is made up: to change the permissions later, start from the original or unlock the copy with the open password.

Before you protect: what to keep in mind

Keep the password somewhere safe, such as a password manager. If you forget it, nobody can recover it, not even us, because we never see it: the encryption is designed that way.

If the PDF already had a password, type the current one and the tool replaces it with the new one. If it had restrictions, they are replaced by the ones you choose now. The pages are not touched: text, images, links and forms stay the same, and the file size barely changes.

If the PDF carries a digital signature, encrypting it produces a new file the signature no longer validates. Protect first and sign afterwards, or send the signed original over a secure channel.

Privacy: encryption happens on your device

The PDF and the password never leave your device: encryption is done by qpdf, a free open-source program, inside your browser, with no upload to any server. The password is not saved, not put in the page address and not sent to any analytics.

That is the point: if a document deserves a password, it should not pass through a stranger's server to get one. No sign-up is needed and there is no limit on files.

Important limitations

  • Very old programs that do not know 256-bit AES cannot open the protected file; current readers can.
  • Print, copy and edit restrictions depend on the reader respecting them; they are not encryption of the content.
  • If you forget the open password, the file cannot be recovered.
  • Up to 100 MB per file.

Frequently asked questions

The content is encrypted with 256-bit AES, the current method of the PDF standard. Nobody can read it without the password; the only attack is trying passwords, so a long or random one makes it very hard to open. A 4- or 5-character one, on the other hand, can be guessed.

You can ask for it with “Restrictions only” or “Also limit what can be done”. Common readers respect it, but it is not foolproof: someone with the right tools can get around it. If the content is confidential, use a password to open.

No. Everything happens in your browser. The protected file is made on your device and the password is never saved or sent anywhere.

In current readers, yes: browsers, Acrobat Reader and the usual phone and computer viewers ask for the password and open it. We tested it with pdf.js, the Firefox reader; if the recipient uses a very old program, try it there first.

With this site's Unlock PDF tool: type the password and download a copy that no longer asks for it.

This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.