pdf.cihat.dev

Password protect PDF

Lock a PDF with a password so only people who know it can open it. The file is encrypted with AES-256 in your browser and never uploaded, so the password and the document stay on your device.

No PDF at hand?

How to use it

  1. Drop a PDF here or choose one.
  2. Type a Password to open and type it again.
  3. If you also want to stop printing, copying or editing, tick Also limit printing, copying and editing, choose what to allow and set a Permissions password.
  4. Press Protect PDF. The tool opens the new file once with and once without your password to check it, then offers Download protected PDF. The new file name ends in -protected.pdf.

How the PDF is encrypted

The tool uses the encryption defined in the PDF 2.0 standard: AES-256 with a random 256-bit key for the file, and the password turned into that key through SHA-256, SHA-384 and SHA-512 rounds. Every text string and every page stream is encrypted, so without the password the content cannot be read, not just hidden.

Acrobat, Preview on a Mac, Chrome, Edge, Firefox and other current readers open these files. Very old readers from before AES-256 was added to PDF cannot.

Password to open and permissions password

A PDF can carry two passwords that do different things.

PasswordWhat it does
Password to openNeeded to see the file at all. This is what keeps the content private.
Permissions passwordSets limits on printing, copying and editing, and is needed to change or remove them. On its own it does not stop anyone from opening the file.

What limits can and cannot do

Limits are a flag inside the file that Acrobat, Preview and most readers respect: the print button is greyed out, text cannot be selected for copying, and edits are refused. Some programs ignore the flag, and anyone can photograph a screen. Use limits to state your wishes, and a password to open for anything that must stay private.

Choosing a password

A long password is the real protection: four or five unrelated words are stronger than a short word with symbols. Keep it somewhere safe, such as a password manager. There is no reset, here or anywhere else, so a forgotten password means a locked file.

Apple’s PDF engine, used by Preview and by the Files app, does not accept passwords with letters outside A to Z, such as ş, ğ or é. The tool warns you when you type one.

To take the password off later, use Unlock PDF with the same password.

Questions people ask

How do I password protect a PDF for free?

Drop the PDF on this page, type a password twice and press Protect PDF. There is no account, no watermark and no upload.

Is the PDF uploaded to a server?

No. The file is read, encrypted and saved by your browser. The password never leaves your device.

Which encryption is used?

AES-256, the strongest method in the PDF standard (PDF 2.0, security handler revision 6).

How do I stop people from printing or copying a PDF?

Tick Also limit printing, copying and editing, clear Printing or Copying, and set a permissions password. Readers that respect limits will then refuse to print or copy.

Can I password protect a PDF on iPhone?

Yes. Open this page in Safari, choose the PDF from Files, type the password and save the protected copy back to Files.

I forgot the password of a PDF I protected. Can it be recovered?

No. Without the password the content stays encrypted. Keep the original unprotected file if you may need it again.