How to password protect a PDF, and which of the two passwords protects nothing
You are sending a payslip, a contract or a scan of a passport, and it should not be readable by whoever ends up with the attachment. A PDF can carry two entirely different passwords, they do entirely different things, and one of them is not security at all.
Written · Updated
Open the file in PADLOCK, type a password to open it, and save. The file is encrypted with AES-256 under the handler in the PDF specification, so Acrobat, Preview, Chrome, Firefox and everything else will ask for that password and will not show a word without it. To take a password off, you need the password: type it and save the unlocked copy. Both happen in the tab; the file is not uploaded, and the page works with the network off, which matters more here than anywhere else on this site, because the alternative is handing a stranger both the confidential file and its password.
A PDF can carry two passwords
The owner password protects nothing
This is the part worth knowing before you rely on it. A PDF with only an owner password is not encrypted against being read. It opens in any reader, immediately, with no prompt. The "no printing, no copying" flags are a request, written into the file, that the reader is asked to honour. Acrobat honours them. Plenty of other readers do not, and any program that can read the file at all can ignore them, because the content is right there.
That is why the websites offering to "unlock" or "remove restrictions from" a PDF work instantly and without asking for a password. They are not breaking anything. They are re-saving a file that was never closed. PADLOCK does the same thing and says so in plain words rather than implying a feat: it reports that the file opens without a password, that the lock is the permissions alone, and it takes them off.
An owner password is still worth setting on top of a user password (it stops the casual "print, copy, done"), but on its own it is a label, not a lock.
What the real one does
Set a password to open it and the file is encrypted. PADLOCK writes AES-256 under revision 6, the handler in PDF 2.0: the strings and the streams are encrypted, the keys are derived from your password, and the file carries the standard entries a reader needs to check it. Nothing that reads PDFs has a back door into that, and neither does this page, which is exactly why, if you lose the password, the file is gone. It will say so rather than offer to help.
The strength is the password, not the cipher. AES-256 behind Summer2024 is a guess away. PHRASE makes a passphrase worth the encryption; KEYS keeps it somewhere you will still have it next year.
Sending the password
A locked PDF and its password in the same email is an envelope with the key taped to it. Send the password another way: a text message, a phone call, anything that is not the channel carrying the file. If you are sending to somebody who will need it more than once, KEYRING encrypts to their public key instead, and there is no shared secret to send at all.
What "remove the password" can mean
- You have the password. Then it is straightforward: the file is decrypted and written back without the encryption, and the copy opens anywhere. This is the normal case: a statement your bank locks with your date of birth, a payslip locked with your employee number.
- It only had an owner password. Then there was nothing to remove but the flags, and any tool can do it in a second.
- You do not have the password. Then nothing legitimate will open it. A site that offers to is either doing the owner-password case above and letting you believe otherwise, or it is guessing passwords, on your confidential file, on their server.
The files this will not take
Some PDFs are locked to a certificate rather than a password: only the matching private key opens them, which is how a company issues documents to named people. PADLOCK reads what the file says and tells you that is what you have, rather than failing obscurely. The same goes for a security handler it does not know: it says which one, and leaves the file alone.
Locking is not redacting
A password stops somebody without it from reading the file. It does nothing about what is in the file once they are in. If a paragraph should not be there, take it out with SEAL, which removes the text rather than drawing a black box over it. If the question is what else the file is carrying (the author, the software, earlier versions of the document), X-RAY shows it and STRATA digs out the earlier drafts a PDF saves inside itself.
The short version
| The job | Here | Notes |
|---|---|---|
| Stop anyone without the password reading it | Yes | AES-256, revision 6, the handler in the specification |
| Keep the file off somebody else's server | Yes | Read and rewritten in the tab; works offline |
| Set the print, copy, edit and annotate flags | Yes | Worth doing, but see above about what they are |
| Take a password off a file you have the password for | Yes | Either the open password or the owner one |
| Take the restrictions off an owner-password file | Yes | It opens without a password; the page says so |
| Write the older RC4 or AES-128 locks | Yes | For a reader too old for AES-256 |
| Open a file whose password you do not have | No | Nothing can, and a site that says it can is doing something else |
| Open a certificate-locked PDF | No | Named and explained rather than failed on |
| Recover a password you have forgotten | No | That is what the encryption is for |
Questions people ask about password protecting a PDF
What is the difference between a user password and an owner password on a PDF?
The user password is the one that opens the file, and without it the file is encrypted and unreadable. The owner password only governs the permission flags (printing, copying, editing, annotating), and a file with only an owner password opens with no password at all. If you want a PDF nobody can read, you want the user password.
Can a password-protected PDF be opened without the password?
If it has a real open password, no. It is encrypted with AES, and no tool, this one included, has a way in. If it only had an owner password, then yes, instantly, by anything: the file was never encrypted. That is what the 'unlock any PDF' websites are actually doing.
How strong is PDF encryption?
The cipher is AES-256 under revision 6 of the standard handler, which is not the weak link. Your password is. A short or guessable password behind good encryption is a guessable file. Use a passphrase of several unrelated words.
Is it safe to use an online PDF password remover?
You would be handing a stranger's server both the confidential document and the password to it, at the same time, in one upload. For a bank statement or a contract that is the disclosure you were trying to prevent. A browser-only tool never makes that copy; you can turn the network off and watch it still work.
Will Acrobat, Preview and Chrome open a file locked here?
Yes. The encryption written is the one in the PDF specification rather than a scheme of this site's own, which is checked against a second, independent PDF engine on every build: it must refuse the file without the password and read it with one.
I forgot the password to my PDF. What now?
Whoever made the file can make you another copy, and for a bank or an employer that is the route. Nothing here will guess it, and a site that offers to is running password guesses against your document on its own machine.
Related tools
- PADLOCKPut a password on a PDF, or take one off, on this device.
- PHRASEPassphrases, passwords and recovery phrases.
- KEYRINGMake an age key pair and encrypt files to one.
- SEALRedact a PDF so it stays redacted.
- STRONGBOXMake, or open, a password-protected zip on this device.
- X-RAYRead what a file is hiding.
- Password protect a zip, and what it still gives awayTwo kinds of zip password, one broken since 1994. Why Windows will not open the good kind, and what the file names tell anyone holding the archive.
- A password you can actually rememberPick the words at random from a published list instead of inventing a password yourself.
- A password manager with no account and no cloudWhat a vault is underneath, what you get by having no account, and the four things you give up, starting with sync and ending with recovery.
- Sign a PDF, and which signature you needAn image, an electronic signature with an integrity record, and a certificate-based digital signature are three different things.
- Send a file without it sitting on a serverEncrypt it to the recipient's public key, or hand it over directly between two browsers.
All 11 guides under “Locking it, signing it and handing it over”.
A letter, now and then
An occasional letter when there is something worth reading: the new guides and what changed in the tools. Never more than once a month and nothing else, and you can leave at any time on the unsubscribe page.