How to password protect a PDF
- Choose a PDF file or drop it on the box. It opens on your device; nothing is uploaded.
- Type a New password, then type it again so a typing mistake can’t lock you out. Tick Show passwords to check what you typed. The guide under the boxes tells you roughly how strong the password is.
- Press Protect PDF, then Download protected PDF. The file is named after the original with
-protectedadded, such ascontract-protected.pdf, and asks for the password every time it is opened. Your original file stays as it was.
How the protection works
A password-protected PDF isn’t just a PDF with a lock icon: its contents are encrypted. Every page, picture and line of text in the file is scrambled with a key made from your password, using 256-bit AES, the same kind of encryption that banks, messaging apps and disk encryption rely on. A PDF reader that is given the right password unscrambles the file and shows it; without the password, the file is unreadable data, whichever app or computer opens it.
The password you choose both opens the PDF and owns it, so anyone who knows it can also print, copy and edit, just like with the original. Nothing else in the file changes: pages, text, fonts, pictures, links, bookmarks and form fields stay the same, and the file stays close to its original size.
Choosing a good password
Encryption only protects the PDF as well as the password does. Programs that try to break into a PDF guess passwords, starting with common ones, words and names, so a short or familiar password can be found quickly, while a long, unusual one would take far too long to guess.
- Use 12 or more characters. Length counts more than anything else. Four or five random words, like
maple river cloud seventeen, are long, strong and easy to type. - Avoid personal details such as names, birthdays, phone numbers and the file’s own name; those are the first things someone would try.
- Don’t reuse a password you use for email or banking.
- Use the characters on a US keyboard. Letters, numbers, spaces and symbols all work. Letters with accents such as é, or emoji, can’t be used, because Preview and Safari on Mac, iPhone and iPad can’t open a 256-bit PDF whose password has them.
The Password Generator makes strong random passwords and passphrases; it opens in a new tab, so your PDF stays chosen here.
Sending a protected PDF
Send the password a different way from the file. If both are in the same email and that email is forwarded or the mailbox is broken into, the password protects nothing. Text the password, say it on the phone, or agree on it in person. For a document you send often, such as payslips, agree on a password once with the person who receives them.
Some company email systems hold back encrypted attachments, because they can’t scan them for viruses. If a protected PDF doesn’t arrive, share it through a cloud storage link instead.
Changing or removing a password
To change a PDF’s password, choose the PDF here: the tool sees that it already has one and asks for the Current password as well as the new one. The protected copy opens only with the new password.
A PDF that has restrictions, such as no printing or copying, but no password to open it, gets a password here as well; its old restrictions are replaced, so with the new password everything is allowed. To take a password off a PDF instead, use Unlock PDF.
Good to know
- There is no way back without the password. No one, including this site, can open the PDF or reset its password if it is lost. Keep the password in a password manager, or keep an unprotected copy somewhere safe.
- Digital signatures: a PDF signed with a digital certificate is checked against its exact bytes, and encrypting changes them, so the signature will no longer show as valid. Protect the PDF before it is signed, or keep the signed original. A signature drawn or typed on the page, like one added with Sign PDF, is part of the page and stays.
- Very old apps made before 2010, such as Adobe Reader 9, can’t open 256-bit AES PDFs. Every current reader can.
- Large files are encrypted in your browser’s memory, so a very long PDF of scans may be too much for a phone. A computer handles much larger files.
Other ways to add a PDF password
- Preview on a Mac: open the PDF, choose File › Export, tick Encrypt and type a password.
- Microsoft Word for Windows: when you save a document as PDF, choose Options and tick Encrypt the document with a password.
- Adobe Acrobat (paid) has a Protect tool with more options, such as separate passwords for opening and for printing or editing.
Most online tools that do this upload your PDF to their servers first. This one encrypts it in your browser, so the unprotected file and the password stay with you.
On a phone
The tool works in Safari and Chrome on iPhone, iPad and Android. Tap Choose a PDF file and pick it from Files, Google Drive or your downloads. On an iPhone the protected PDF goes to the Files app under Downloads; on Android it is saved to Downloads. Opening it in the Files app, Books or any PDF app asks for the password.
Privacy
PDFs that need a password are usually private ones: contracts, payslips, medical letters and tax papers. That is why this tool never uploads them. The PDF is encrypted by your browser on your device, the password you type is used only for that and is never stored, and when you close the tab both are gone from the page.
PDFs are encrypted with qpdf by Jay Berkenbilt (Apache 2.0 license), built for the browser by qpdf-wasm (ISC license; it also includes libjpeg-turbo and zlib, whose licenses are in the same file).
Frequently asked questions
Is my PDF or password uploaded?
No. Your browser encrypts the PDF on your own device. Neither the file nor the password is sent to this website or anyone else, and the password is cleared from the page as soon as the protected PDF is made.
How secure is a password-protected PDF?
The PDF is encrypted with 256-bit AES, the strongest encryption the PDF format has, so without the password its pages are unreadable data. In practice it is as strong as the password: a short or common one can be guessed by software that tries millions of passwords, so use 12 or more characters, or several random words.
Which apps can open the protected PDF?
Any current PDF reader that supports 256-bit AES: Adobe Acrobat and Reader (version X from 2010 and later), the PDF viewers in Chrome, Edge and Firefox, and Preview and Safari on Mac, iPhone and iPad. Each one asks for the password when the file is opened.
What if I forget the password?
Then the PDF can’t be opened, by this tool or any other: there is no master key and no way to reset it. Keep the password in a password manager, or keep an unprotected copy of the PDF somewhere safe.
Can I change or remove a PDF’s password?
Yes. To change it, choose the PDF here, type its current password and then the new one. To remove the password completely, use Unlock PDF, which saves a copy that opens without one.