Quick answer
Add an opening password with AES-256 encryption, then open the protected copy in a different PDF viewer and check that it asks for the password, refuses a wrong one and opens with yours.
In FreeToolsKit's Password Protect PDF tool:
- Choose an unprotected PDF.
- Type the password twice, using at least 12 characters, and choose Encrypt PDF.
- Choose Download protected PDF. The file is named after the original, with "-protected" added.
The password stops anyone who doesn't have it from opening the file. It doesn't stop much else:
- People who have the password: they can copy, print or save an unlocked copy. The tool sets no print or copy restrictions, and it isn't DRM.
- Guessing: someone who has the file can keep trying passwords on their own computer, so a long, random password matters.
- A forgotten password: there's no recovery, so keep your unprotected original somewhere safe.
Send the password by a different channel from the file, such as a phone call.
The test file used in this guide
To show what to check, this guide uses a two-page A4 payslip made for the test. Every name and figure in it is fictional:
- Page 1: a payslip from "Harbour Lane Bakery Ltd" for the employee "Priya Lindqvist", with a net pay of 1,989.93.
- Page 2: a year-to-date summary for the same employee.
The file, payslip-sample.pdf, is 2,958 bytes and unencrypted, and its text is selectable, so the text can be compared before and after encryption.
Lock the PDF
- Under Choose an unprotected PDF, drag the file in or choose Choose file. The tool accepts one PDF of up to 100 pages and 25 MiB. It then shows the file's name, size and page count. For the sample, it showed "2.9 KB · 2 pages · Unencrypted".
- Under Set the password to open this PDF, type the password in Password to open PDF, then again in Confirm password. It needs at least 12 characters and can be up to 127 bytes. The eye button next to each box shows or hides what you typed.
- Read the note "Remember this password. There is no password recovery". Make sure your unprotected original is saved somewhere safe before you go on.
- Choose Encrypt PDF. A progress list shows each stage, from "Reading PDF" to "Preparing download".
- When Encryption complete appears, choose Download protected PDF.
If something is wrong with the password, the tool says so before it encrypts anything. A 10-character password gave "Use at least 12 characters", and a typo in the second box gave "The passwords don't match." After a successful run, both password boxes were empty, so retype the password if you run it again.
The tool checks the result before it offers the download. In the code, a second PDF library (pdf.js) opens the encrypted file and confirms four things: it refuses to open without a password and with a wrong one, it opens with yours, and the page count, page sizes and the text of the first three pages are unchanged. It also checks that your password isn't stored in readable form. If any check fails, you get "Verification failed, so no download is offered" instead of a file.
Already encrypted files are refused. When the sample's protected copy was added again, the tool showed "This PDF is already encrypted or password-protected. Upload an unprotected original." It can't remove or change a password. To change one, protect your unprotected original again with the new password.
What the test produced
The run took about 2 seconds. The result panel read "Verified: the file refuses to open without a password and with a wrong password, opens with yours, and keeps its pages and text." It listed the protection as "AES-256 (PDF Standard Security Handler, revision 6)".
The download was named payslip-sample-protected.pdf. It was 3,825 bytes, up from 2,958, because encryption adds security data.
The downloaded file was then checked with other PDF software on the same computer:
- Chromium's built-in PDF viewer (version 153): it opened with "Password required" and "This document is password protected. Please enter a password." A wrong password gave "Incorrect password". The right one showed both pages, with the payslip's text and figures as in the original.
- qpdf 11.9.0: without the password it reported "invalid password". With it, it reported revision 6 with AESv3 (AES-256) encryption for the file's streams and strings.
- Poppler (pdfinfo and pdftotext): without the password, or with a wrong one, both gave "Incorrect password". With it, pdfinfo showed 2 pages and "Encrypted: yes", with AES-256. The extracted text was identical to the original's.
- pdf.js, pikepdf and pypdf: all three refused to open the file without the password and with a wrong one, and opened it with the right one.
pdfinfo also showed every permission switched on: "print:yes copy:yes change:yes addNotes:yes". That matches the tool's description: it adds an opening password only.
What could be read without the password. In the raw bytes of the protected file, the names, amounts and document title couldn't be found. The page count and page size could. That's expected: in a PDF, "only strings and streams are encrypted", and the rest of the file's structure isn't (qpdf: PDF Encryption).
This was one small, text-only file, opened on one computer. It shows what to check, not how every viewer behaves.
Check the lock on your own file
- Open the protected copy in another viewer. Don't rely on the tool's own check alone. Open the downloaded file in your browser's built-in PDF viewer or your usual PDF reader. It should ask for a password before it shows any page.
- Try a wrong password. The viewer should refuse it.
- Open it with your password. Check the page count and a few details you know, such as a name or an amount.
- Think about the recipient's app. AES-256 encryption needs a reasonably current viewer. For example, Dartmouth's guidance on Acrobat notes that "Acrobat 7 cannot open a PDF encrypted for Acrobat X and later" (Dartmouth: Encrypt & Password Protect Documents). This guide's test only used the viewers listed above, not Adobe Acrobat Reader or Apple Preview. If the recipient uses a different app, ask them to confirm that the file opens.
AES-256 with revision 6 is the current choice. In the PDF 2.0 standard, revision 6 is "the only value that is not deprecated" (qpdf: PDF Encryption). The Library of Congress summarises PDF 2.0 the same way: "Only AES-256 encryption used in a secure encryption scheme is encouraged" (Library of Congress: PDF 2.0). The tool won't switch to older, weaker encryption to suit an old app.
If you use the command line, qpdf's --show-encryption option reports the encryption settings, and --requires-password with a password checks whether that password opens the file (qpdf: Running qpdf). In this test, --show-encryption showed the revision and AESv3 even without the password.
What the password doesn't stop
- Anyone who has the password. pikepdf's documentation puts it plainly: "Anyone holding the user or owner password can decrypt the document and save an unencrypted copy" (pikepdf: PDF security). In the test, qpdf saved an unencrypted copy of the protected payslip using only its password. A recipient can also print, copy or screenshot the content once it's open.
- Print and copy restrictions. This tool doesn't set them. Where other tools set them, they're only as strong as the viewer: "the security of the restrictions placed on PDF files is solely enforced by the software", and a reader "could be trivially modified to ignore" them (qpdf: PDF Encryption).
- Guessing, without limits. "An attacker who has the file can try passwords as fast as their hardware allows, forever, with no server to rate-limit them" (pikepdf: PDF security). The tool's 12-character minimum is a floor. Use a long random password from Secure Password Generator and keep it in a password manager, or a passphrase of several randomly chosen words. The EFF recommends a six-word passphrase generated with dice from its word list, "for a strength of 77 bits of entropy" (EFF: New Wordlists for Random Passphrases). Words you pick yourself are weaker, because "people aren't very good at making random, unpredictable choices".
- Changes to the content. PDF encryption uses a cipher mode "with no integrity checks", which researchers used to alter encrypted files and make some viewers send out their contents (PDF Insecurity: Breaking PDF Encryption). As pikepdf says, "Encryption in PDF proves nothing about who wrote the content or whether it has been changed."
- A forgotten password. Boise State University notes that "if you lose or forget a password for a PDF file, the file cannot be accessed" (Boise State University: How to Encrypt a PDF Document). The file's encryption key "is generated at random", and the password only protects that key (qpdf: PDF Encryption). FreeToolsKit never sees the password, so there's nothing to reset. The University of Reading recommends that you "retain an unprotected version of the document internally, in a secure, access restricted location" (University of Reading: Encryption of files).
- The file's outline. As the test showed, the page count and page size stay readable without the password.
Send the file and the password separately
If the file and its password travel together, anyone who gets one gets both. The University of Reading says that it's "critically important that the key is not sent by the same method as the attachment", and suggests a phone call or a text message instead (University of Reading: Encryption of files). Boise State goes further: "Do not send passwords via email", but use "phone, encrypted chat, in person" (Boise State University: How to Encrypt a PDF Document).
A second email isn't a separate channel. Some guidance accepts "separate emails" (Dartmouth: Encrypt & Password Protect Documents), but Murray State University warns that sending the password by email, "same email or as a new email", "defeats the purpose" (Murray State University: Secure File Encryption and Sharing Guide). This guide follows the stricter advice.
Signed PDFs: encrypt first, then sign
A PDF with a certificate-based digital signature is refused. For a copy of the sample signed with a test certificate, the tool showed: "This PDF appears to contain a digital signature. Encrypting it may invalidate the signature, so this tool cannot process it. Use an unsigned original."
That's because "A digital signature records the state of the file at the time of signing. Encrypting the document … after you apply a signature changes the bytes in the file, causing the signature to appear invalid." Adobe's order is to apply encryption "before you digitally sign the document" (Adobe: Considerations for the Encryption service).
The test showed both orders, outside the tool:
- Signed, then encrypted with qpdf: Poppler's signature check reported "Digest Mismatch", so the signature no longer verified.
- Encrypted with this tool, then signed: the signature verified ("Signature is Valid"), and the file still asked for the password.
So protect the unsigned original first, then sign the protected copy with signing software that can open an encrypted PDF. This tool doesn't add digital signatures.
A signature drawn with Sign PDF is different: it's an image on the page, not a certificate-based signature. A copy of the sample with a signature image added by Sign PDF's code was accepted and protected normally. For drawing and placing a signature, see how to sign a PDF online.
Before you send it
- Original: your unprotected original is saved somewhere safe and private.
- Lock: the protected copy asks for a password in a different viewer, refuses a wrong one and opens with yours.
- Password: it's long and random, or a passphrase of several random words, and it's stored in your password manager.
- Channel: you'll send the password by phone, text message or in person, not with the file.
- Recipient: their PDF app is reasonably current, or they've confirmed the file opens.

