Protect a PDF with a password
FileReshape's Protect PDF tool encrypts a PDF with AES-256 so it only opens with the password you choose, and can also forbid printing, copying or changes. The encryption runs in your browser with qpdf, and neither the file nor the password is uploaded. A forgotten password cannot be recovered, digital signatures in the file stop being valid, and the restrictions are only obeyed by PDF readers that respect them.
Did a file not convert correctly? E-mail [email protected], ideally with a small sample file, and it will be fixed.
Key facts
- Works with: PDF (.pdf).
- Your files are not uploaded: the work is done in your browser, on your own device.
- File size: no fixed limit; very large files are limited by your device's memory.
- Needs a current browser (Chrome, Edge, Firefox or Safari) on a computer, tablet or phone; nothing to install.
- Free to use, with no sign-up.
Why put a password on a PDF
A payslip, a tax return, a medical report or a contract often has to travel by e-mail, sit in a shared folder or go onto a USB stick, and anyone who gets hold of the file can read it. A password on the PDF itself keeps it closed wherever the file ends up: the content is encrypted, and a PDF reader only shows it after the password is typed. This tool uses AES with a 256-bit key, the strongest method in the PDF standard, which current versions of Adobe Acrobat Reader, Apple Preview, Chrome, Edge and Firefox all open. The work is done by qpdf, a widely used open-source PDF program, running as WebAssembly in this page, so the file and the password stay on your device. You can also decide what someone who opens the PDF may do with it: print it, copy text and images out of it, or change it. Send the password by another route than the file, for example by text message or phone when the PDF goes by e-mail, or the lock protects very little.
How to password-protect a PDF
- Drop your PDF in the box, or click to choose it.
- Type a password twice, and untick anything people should not be allowed to do, such as printing.
- Click Protect PDF and download the encrypted copy; your original file is not changed.
What changes when you convert
A forgotten password cannot be recovered
The password is not stored anywhere, not in the file and not on this site, and the content can only be decrypted with it. If it is lost, nobody can open the protected copy, including this tool. Keep your unprotected original, or write the password down in a safe place such as a password manager.
The strength is in the password
AES-256 cannot be broken by trying keys, but a short or common password can be found by trying passwords, and a copy of the file can be attacked at leisure on someone else's computer. Use a long passphrase of several unrelated words, or at least 12 characters with no name, date or dictionary word in it.
Restrictions are a request, not a lock
The password to open the PDF really encrypts the content. Blocking printing, copying or changes works differently: the file only tells the reader what the author allows, and Acrobat, Preview and the browsers obey it, but some programs simply ignore it. Use the restrictions to discourage casual copying, and never to keep something secret from people who can open the file.
The permissions password
When something is blocked, a second password, the permissions password, is the only way to lift the block later. Set one if you might want to, and make it different from the password that opens the file. If you leave it empty, a random one is used and thrown away, and the restrictions stay in that copy for good.
Digital signatures and old readers
Encrypting rewrites the whole file, so a digital signature in it is no longer valid; protect the PDF before it is signed, not after. AES-256 has been part of PDF readers for well over a decade, but very old programs or some simple viewers built into printers and e-readers may not open the file at all.
About the formats
PDF (Portable Document Format) was created by Adobe in 1993 and has been an ISO standard since 2008. A PDF looks the same on every device, which is why it is used for contracts, invoices, forms, manuals and scanned documents.
- A page can hold text, vector graphics and images, each placed exactly.
- Scanned documents are usually one image per page.
- A PDF can be protected with a password that is needed to open or edit it.
Frequently asked questions
Is my PDF or my password uploaded?
No. qpdf runs inside this web page on your own device, and the password is only used there to encrypt the file. Nothing is sent to a server, and the password is not saved.
How do I remove the password again?
Open the protected PDF with Unlock PDF on this site and type the password; you get a copy without it. Many PDF editors can do the same, but only if you know the password.
Can I protect several PDFs with the same password?
One file is handled at a time. Merge the PDFs into one file first if they belong together, or protect them one after another with the same password.
Does the password work on phones?
Yes. The PDF readers on iPhone, iPad and Android, and the browsers on them, ask for the password when the file is opened, just as on a computer.