How to password protect and unlock a PDF
A payslip, a lease or a scan of an ID should not travel as an open file, and a statement you open every month should not make you retype a password each time. This guide covers both jobs, and what a PDF password cannot do.
What a PDF password does and does not do
Protect PDF adds an open password: the file is encrypted with AES-256, so its pages are unreadable until the right password is typed. The encryption happens in your browser on your own device, and neither the file nor the password is sent anywhere. Anyone who has the password can read everything in the file.
The optional restriction setting is a separate thing. It asks viewers not to allow printing, editing or copying text. Most viewers honor that request, but it is a courtesy built into the format, and some programs ignore it. In this tool one password plays both roles: it opens the file, and it is also the one that governs the restrictions.
Think of the password as a lock on an envelope. It keeps out everyone who is not meant to read the file. It cannot show one page to a person and hide another from them, and it cannot stop someone who has opened the file from saving an unprotected copy.
Choose a password you can pass on safely
The tool accepts four characters or more, but four is only the floor. In practice the weak point of an encrypted file is a guessable password, not the encryption. Avoid birthdays, names, the recipient's phone number and anything that appears in the document itself. A string of several unrelated words is easy to read out over the phone and hard to guess, and the Password generator on this site can make either a random character password or a passphrase of random words.
Give each recipient or batch its own password instead of reusing one from elsewhere, so a leak affects only that file. And never put the password in the same message as the file. Send it by a different route, such as a phone call or a text message, so that anyone who intercepts the email holds a locked file and nothing more.
How to protect a PDF, step by step
Open Protect PDF and work through the steps below. It handles one PDF at a time.
- Click ‘Choose a file’, or drop the PDF onto the page.
- Type the password in ‘Password (at least 4 characters)’ and again in ‘Repeat password’. ‘Show’ reveals what you typed so you can check it, and ‘Hide’ covers it again.
- Tick ‘Also block printing, editing and copying’ only if you want those limits as well.
- Click ‘Protect PDF’, then ‘Download’. The new file has -protected added to its name.
Test the result before you send it
Open the downloaded file in the viewer you normally use. Check that it asks for the password, that your password works, and that the pages look right. Then decide what to do with the original. It is still on your disk without any protection, so either store it somewhere safe on purpose or delete it, but do not leave it in the folder you are about to share from.
To change the password on a file that is already protected, unlock it first and then protect it again. If you add a file that already carries a password, the tool warns you and asks you to remove that password first.
Should you tick the restriction box?
The box blocks printing, editing and copying together; you cannot pick just one. That is the first thing to weigh. A form you want the recipient to print and sign becomes awkward if printing is blocked, while a contract you want to stay as written suits the box well, because ordinary viewers will then refuse edits.
The second thing is how much it is worth. Compliance is up to each program, so the box deters casual copying and accidental changes, not a determined person. If a sentence or a number must not leave your hands, do not rely on the box; take it out of the file instead, as described below. When confidentiality is the goal, the open password does the real work.
Unlocking a PDF you are allowed to open
Unlock PDF removes a password you already know. Choose the file with ‘Choose a file’, type the password into ‘This PDF's password’, click ‘Unlock PDF’, then ‘Download’. The copy has -unlocked added to its name and keeps the same pages, text and images; only the encryption is gone. That suits a statement locked with a date of birth, or a file you need to merge, compress or watermark, because those tools cannot read a locked file.
If the tool answers ‘That password isn't right. Check capital letters and spaces.’, look at the usual causes: capital letters, a space copied along with the password, a keyboard set to another language, or a format chosen by the sender, such as a date written year first instead of day first. When a PDF opens without any password but refuses to print or copy, leave the password box empty and click ‘Unlock PDF’ to save a copy without those limits. The message ‘This PDF doesn't seem to have a password.’ means the file was not locked in the first place.
Use it only on files that are yours or that you have the right to open. The tool does not guess or bypass passwords, and it gives you no rights over a document that you did not already have. If a sender blocked printing on purpose, ask them before you lift the restriction.
Password or redaction?
A password protects a whole file from people who do not have it. Whoever holds it sees every page, so it cannot hide an account number on page three from the person you sent it to. When part of the content should never reach the reader, remove it first with Redact PDF.
Redact PDF finds personal data such as emails, phone numbers and card numbers, plus any words you type, and marks them; you can drag a box over anything it missed, such as a signature. Pages with marks are rebuilt as pictures, so the covered text is truly gone and not just hidden under a black rectangle. The price is that those pages can no longer be searched or selected, and scanned pages need boxes drawn by hand. Redact first and protect second, so the password guards a file that no longer holds what you wanted to keep private.
Watermark PDF is a different job again. Stamping CONFIDENTIAL or DRAFT across the pages tells readers what the file is, but a PDF editor could remove the stamp, so treat it as a label, not a lock.
A sensible order of work before you send
Tools that read the pages, such as Merge PDF and Compress PDF, cannot open a locked file; they stop with a message asking you to remove the password first. So protect last, after every other change:
- Cut the file down to the pages the reader needs with Split PDF.
- Black out private details with Redact PDF.
- Add a label with Watermark PDF if the file needs one.
- Shrink it with Compress PDF if it is too big to send; mail services set different limits, so check yours.
- Lock it with Protect PDF, using a new password.
- Send the file, give the password by another route, and ask the recipient to confirm it opened.
If the password is lost
This site cannot recover a forgotten password. It does not keep one, and encryption of this kind is not something a trick can undo, which is the whole point of it. Programs that claim to recover any password work by guessing, which tends to succeed only against short or predictable ones.
So plan for the loss before it happens. Keep an unprotected master copy of anything you cannot recreate, in a place you control. Store the password where you keep your other passwords, in a password manager or a note kept apart from the file. If the lost password belongs to a file somebody else sent you, ask the sender, who may have it or can issue a fresh copy.
Questions and answers
How do I change the password on a PDF that is already protected?
Run the file through Unlock PDF with the current password, then through Protect PDF with the new one. Protect PDF asks you to remove an existing password before it adds a new one.
Can I block printing but still allow copying?
Not with this tool. The single setting ‘Also block printing, editing and copying’ switches all three on together. Without it, only the open password is set.
Will every PDF viewer open the protected file?
Most viewers ask for the password and then open the file normally. If one refuses it, a current browser or an up-to-date PDF viewer is the next thing to try.
Does unlocking change the pages or the quality?
No. Only the password is taken away, so pages, text and images stay exactly as they were. It does not make a scan sharper or turn a picture into text.
Can I protect several PDFs at once?
The tool takes one PDF at a time. Repeat the steps for each file, or combine the files into one PDF with Merge PDF first and protect that.
More guides
- How to make a PDF small enough to emailFind out why your PDF is heavy, choose between Basic and Strong, check the smaller copy, and split what is still too large. Done in your browser.
- Combine several PDFs into one documentPlan the order, name your files, drag them into place, merge, then check page count and orientation. Covers photos, bookmarks, passwords and file size.
- How to take pages out of a PDFTake one bill, a chapter or a signature page out of a PDF, or cut it into equal parts. Learn the three modes, how page ranges are typed and what to check.