Save a copy of a password-protected PDF that opens without a password, using the password you already know. Works in your browser.
Protect PDF with Password
Add an open password to a PDF with AES-256 encryption, and optionally restrict printing, copying and editing. Works in your browser.
Drag & drop your PDF here
or
One PDF file, up to 100 MB.
What the protection covers
- The open password encrypts the page content, images, attachments and document properties with AES-256. Without it, the file cannot be read.
- Permissions for printing, copying and editing are requests. Well-behaved PDF readers follow them, but other software can ignore them once the file is open.
- Without the password, people can still see the file size and some layout details, such as the number of pages, the page sizes and the dimensions of images.
Password and permissions
Runs entirely in your browser. Your files and text are not uploaded.
How to use Protect PDF with Password
-
Step 1: Add your PDF
Drag and drop a PDF or choose it from your device. You see its size and page count.
-
Step 2: Choose a password
Type the open password twice. To limit printing, copying or editing, turn on restrictions and set a different owner password.
-
Step 3: Protect and download
Press “Protect PDF”, download the protected copy and check that it opens with your password.
How the protection works
The tool uses the standard PDF password protection with AES-256, the method that the PDF 2.0 standard recommends. A random 256-bit key encrypts the page content, images, fonts, attachments and document properties such as the title and author, and that key is itself locked with your password. Without the open password, a PDF reader cannot show the pages.
Everything happens in your browser with pdf-lib, a JavaScript PDF library. Before the download is offered, the tool opens the new file with your password, as a reader would, and checks that every page is there. Neither the file nor the password is uploaded.
Open password and owner password
- The open password is needed to open the file. This is the part that actually protects the content.
- The owner password is optional. It lets you restrict printing, copying, editing, form filling and comments, and it is needed later to change those permissions. It must be different from the open password; if both were the same, everyone who can open the file would also have full control.
Permissions are requests, not locks. Adobe Acrobat and many other PDF readers follow them, but some ignore them, and anyone who can open the file can use software that removes them. Use them to discourage casual copying, not to keep content secret. Access for screen readers is always allowed.
Choosing a password
Anyone who has a copy of the file can try passwords on their own computer, as fast as it allows. The encryption is not the weak point; a short or common password is. Length matters more than symbols: three or four unrelated words are easy to remember and hard to guess. Avoid names, dates of birth, mobile numbers and PAN or Aadhaar numbers. The strength meter uses zxcvbn, which recognises common passwords, names, dates and keyboard patterns.
Letters from other scripts, such as Devanagari, work in current PDF apps. Adobe Acrobat changes a few characters before it checks a password, for example full-width letters and invisible joining marks, so the tool warns you when a password contains them.
There is no recovery: if the password is forgotten, nobody can open the file, including us. Keep it in a password manager, and send it separately from the file, for example by phone or text message rather than in the same email.
What changes and what stays visible
The pages are not redrawn, so text, images and links look the same. A few things change:
- Without the password, anyone can still see the file size and some layout details, such as the number of pages, the page sizes and the dimensions of images.
- A digital signature in the original is no longer valid in the protected copy.
- PDF/A forbids encryption, so a PDF/A file loses that label.
Most PDF readers in use today open these files. This AES-256 method needs Adobe Acrobat or Reader X (2010) or later, so very old readers such as Adobe Reader 9 cannot open them.
Limitations
- A forgotten password cannot be recovered or reset by this tool, by us or by anyone else.
- Printing, copying and editing restrictions are only followed by PDF readers that respect them, and other software can remove them.
- PDFs that are already protected with a password or restrictions must be unlocked first.
- Damaged PDFs with parts that cannot be read are refused, because those parts could not be encrypted.
- The file size and some layout details, such as the number of pages, the page sizes and image dimensions, remain visible without the password.
- Digital signatures in the original file are not valid in the protected copy, and a PDF/A file is no longer marked as PDF/A.
- Very old PDF readers, such as Adobe Reader 9 and earlier, cannot open the protected copy.
- Large files take time and memory, because the encryption runs in your browser. A PDF close to 100 MB can take a minute or two on a computer, longer on a phone, and may not fit in a phone's memory.
- ToolHub's Merge PDF and Split PDF cannot use the protected copy until it is unlocked.
Frequently asked questions
Are my PDF and password uploaded anywhere?
No. The file is encrypted by your browser on your own device. The PDF and the password are never sent to our server, and the password fields are cleared when you press “Start over”.
What happens if I forget the password?
The file cannot be opened any more, and nobody can recover the password for you, including us. Keep the original file until you have checked that the protected copy opens, and store the password somewhere safe, such as a password manager.
What is the difference between the open password and the owner password?
The open password is needed to open the file at all. The owner password only controls permissions such as printing and copying, and it is needed to change them later. Someone who opens the file with the owner password has no restrictions.
Can people still print or copy a protected PDF?
Anyone with the open password can, unless you turn on restrictions. Restrictions are followed by Adobe Acrobat and many other readers, but some readers ignore them and other software can remove them, so they are not real protection for the content.
How secure is AES-256 encryption?
The encryption itself is not the weak point. Someone with a copy of the file can try passwords offline, so the protection is only as strong as your password. A long password made of several unrelated words is far harder to guess than a short one with symbols.
Why is my PDF refused?
The message explains why. Usually the file is already protected with a password or owner restrictions: remove that protection with Unlock PDF first, then protect the unlocked copy. Damaged files are refused too, because parts that cannot be read cannot be encrypted; saving a new copy from a PDF app usually fixes that.
Related tools
Combine several PDF files into one document, in the order you choose. The files are merged in your browser and never uploaded.
Extract pages from a PDF, or split it into several files: one per page, every few pages or by your own ranges. Works in your browser.
Make scanned and photo-heavy PDFs smaller by rebuilding pages as compressed JPEG images in your browser.
Count the pages in one or many PDF files at once and see a total with each file’s page size, handy for print cost estimates.