Password-protect a PDF
Lock your PDF with AES-256 encryption and set print, copy and edit permissions. Your password never leaves your device.
or drop it here · it never leaves your device
Processed in your browser. Your files are never uploaded. Check it yourself
How to password-protect a PDF
Adding an open password means nobody can read the PDF without it, which is useful when emailing payslips, medical letters, tax returns or anything else that might be forwarded to the wrong person or left in a shared folder. Because the encryption runs in your browser, neither the document nor the password is ever sent to a server, so you aren’t trusting a website with the very thing you’re trying to protect.
- 1
Choose the PDF you want to lock
Press Choose a PDF or drop one file onto the panel. Protect works on one document at a time, so if you are sending several, combine them first with Merge PDF and lock the single result; the recipient then types one password instead of four.
The tool reads the file’s first bytes to confirm it really is a PDF, counts the pages and draws a blurred preview of page one. If the file already has protection, you find out at this point rather than after you have chosen a password.

- 2
Type the open password twice
Type the password into Open password, then again into Confirm password. The meter under the first box updates with every key press and gives one of five verdicts: Too short, Very weak, Weak, Fair, Good or Strong. When we tested it,
password123was rated Very weak (it is on the built-in list of the most common passwords),Summer2026was Good, and the passphrasemaple-orbit-lantern-42was Strong.Press the eye icon to show the characters while you check for typos. Suggest a strong password fills both boxes with a random password such as
k7Qm-x9Tf-2Rbw-Hp4nand shows it, so you can copy it into your password manager before you go on. The Protect button stays greyed out, with a short reason underneath, until the two entries match.
- 3
Decide whether you need permissions (optional)
The Permissions section is open by default. Use its switches to turn off printing, copying text and images, editing, or filling in forms. Editing includes form filling, so while Editing is on, the forms switch is locked on with the note “Included with editing”.
The restrictions are guarded by a second, permissions password. Leave it blank and we generate a random 256-bit one that is never shown to anyone, which means the restrictions can’t later be lifted with a password. If you want to be able to change them yourself, set your own, and make it different from the open password (the tool won’t accept the same one twice).

- 4
Name the file, protect it and download
The output is named after your file with -protected added; change it in File name if the original name gives too much away. Press Protect PDF (or Enter in the confirm box). Before the result appears, the tool reopens the encrypted copy with your password and checks that it is AES-256; if that check failed you would see an error, not a file.
The result card confirms the method, the page count and the new size, and lists any restrictions you set. Both password boxes are cleared as soon as the job starts. Download the file, then open it once yourself: your PDF reader should ask for the password before showing anything.

- 5
If the PDF already has a password
When the file you choose already needs a password to open, Protect asks for that password first, decrypts the file in memory and then lets you set a new one. You don’t need to run Unlock PDF separately. If the file only has restrictions (it opens without a password but blocks printing or copying, say), Protect keeps those restrictions switched off in the Permissions panel and tells you so; loosen them only if you own the file or have permission to change it.

Protect PDF features
- AES-256 encryption, the strongest the PDF format offers
- Open password with a live strength hint
- Suggest a strong password in one click
- Permission switches for printing, copying, editing and form filling, open by default so you see them
- Separate permissions password, or a long random one if you leave it blank
- Encryption checked before you download
How PDF encryption works in your browser
Encryption runs on your device using qpdf, a long-established open-source PDF library, compiled to run in the browser. Your file and password stay in this tab.
The PDF is encrypted with AES-256, the strongest method the PDF standard offers and one that current PDF readers support. Before handing you the file, we check that it really is encrypted and opens with your password.
You can also choose what people may do once it’s open: printing, copying text and images, editing, and filling in forms. These permissions are protected by a separate permissions password. Leave that blank and we set a long random one nobody sees, so the restrictions can’t be lifted later. Bear in mind that permissions are honoured by compliant readers only; the open password is what keeps the content private.
How to prove your file never left your device: a two-minute Network-tab and offline test you can run on this tool.
Sending a payslip by email
Open payslip-october.pdf and type a passphrase such as maple-orbit-lantern-42; the strength hint confirms it’s a good choice. Confirm it, leave permissions as they are, and download payslip-october-protected.pdf. Email the file, then send the password by a different route, such as a text message or phone call. That way, someone who only sees the email can’t open the attachment.
Good to know
- A phrase of three or four random words is both strong and memorable. Very common passwords are flagged as you type.
- We never see your password, so we can’t recover it. Store it in a password manager.
- Adding a PDF that already has a password? You’re asked for the existing one first, then you set the new one. No separate trip to Unlock PDF is needed.
- Want to mark a document visibly rather than lock it? Add a watermark.
Who password-protects PDFs, and what works for each
The mechanics are the same for everyone, but the sensible choice of password, permissions and file name depends on what you are sending and to whom.
HR and payroll teams
Payslips, P60s, offer letters, salary reviews and disciplinary paperwork are the classic case. Give each employee their own password rather than one shared by the whole office, and avoid anything printed on the document itself: a National Insurance number or date of birth sits right there on a payslip and in the HR system, so it adds little. If you send documents to the same person every month, agree a passphrase once, in person, and keep using it for that person only. Keep file names neutral (payslip-2026-10.pdf rather than the employee’s full name and salary band), because the file name travels unencrypted.
Accountants and bookkeepers
Draft accounts, tax computations and copies of HMRC correspondence often go back and forth with a client several times. One strong passphrase per client, stored in your practice’s password manager, saves everyone from hunting for “the password from March”. If you want the client to review but not alter figures, switch off Editing; just remember that permissions only bind readers that respect them, so they are a signal, not a guarantee.
Landlords and letting agents
Tenant references, guarantor forms and deposit paperwork carry bank details, salaries and identity documents. Under UK data protection law organisations are expected to use appropriate security for personal data, and the Information Commissioner’s Office lists encryption among the measures to consider. Locking the PDF before it goes to a referencing company, a co-landlord or a solicitor is a quick, proportionate step. Merge a tenant’s documents into one bundle first so there is only one password to share.
Students and applicants
Accommodation offices, placement providers and visa agents sometimes ask for passport scans, bank statements or proof of funding by email. If the recipient agrees, lock the bundle and give them the password by phone or message. Check first that their system accepts encrypted files: some upload portals reject them, in which case upload the unlocked file through the portal instead of emailing it.
Legal and professional services
Draft contracts, witness statements and settlement figures are often protected for transit. Many firms have their own policies or secure portals, and those take priority; where email is the agreed route, an AES-256 PDF with the password sent separately is a sensible baseline. If the document will be signed with a certificate-based digital signature, see the note on signatures in Limits below.
Personal paperwork
Scans of a passport or driving licence, medical letters and pension statements kept in a cloud folder are safer locked. If the folder is ever shared by mistake, or the account is compromised, the files are still unreadable without the password. Keep the unencrypted original somewhere offline if losing access would be a problem.
Protecting a PDF on Windows, Mac, iPhone, Android and Chromebook
Protect PDF runs in any current browser, so the steps above are the same on every device. What differs is where the file comes from and where the locked copy lands, and whether your device has its own built-in option.
| Device | Using Protect PDF | Built-in alternative |
|---|---|---|
| Windows 10 and 11 | Open this page in Edge, Chrome or Firefox. The locked copy goes to your Downloads folder. | Windows itself has no “add a password to this PDF” option. Microsoft Word can encrypt a PDF it creates (Save As → PDF → Options → Encrypt the document with a password), which suits documents you wrote in Word. |
| Mac | Safari, Chrome or Firefox. The copy goes to Downloads. | Preview can add a password when you export a PDF; the option sits in the Export dialog and its wording differs between macOS versions. |
| iPhone and iPad | In Safari, tap Choose a PDF and pick the file from Files. The locked copy is saved to the Downloads folder in Files (or wherever Safari is set to save). | Apple’s Pages app can set a password when exporting its own documents to PDF; for a PDF you already have, there is no obvious system-wide option. |
| Android | In Chrome, tap Choose a PDF; the file picker can reach Downloads, Drive and other storage. The copy appears in Downloads. | No built-in option in Android itself; some manufacturers’ file apps or office apps add one. |
| Chromebook | Works in Chrome like any desktop. The copy is saved to Downloads in the Files app. | ChromeOS has no built-in PDF encryption; Chrome’s “Save as PDF” print option doesn’t add a password. |
On phones, very large scans take longer and use more memory than on a laptop, but encryption is light work compared with, say, OCR: our 23.7 MB, 8-page test scan took about two seconds on a laptop. If a phone struggles, close other tabs and try again, or lock the file on a computer.
Protect PDF compared with Preview, Word, LibreOffice and Acrobat
There are good desktop options, and if you already use one of them there is no need to switch. The table sets out the practical differences as fairly as we can; check the current version of each app for details, because menus change.
| Protect PDF (this page) | Preview (Mac) | Microsoft Word | LibreOffice | Adobe Acrobat Pro | |
|---|---|---|---|---|---|
| Works on a PDF you already have | Yes | Yes | Only by converting the PDF into a Word document first, which can change the layout | Only via Draw, which can change the layout | Yes |
| Cost | Free | Included with macOS | Part of Microsoft 365 / Office | Free, open source | Paid subscription |
| Encryption method shown | AES-256, checked before download | Not stated in the dialog | Not stated in the dialog | Set by the app | Selectable, AES-256 available |
| Permission controls | Printing, copying, editing, form filling, optional permissions password | Some, depending on macOS version | No | Yes, with a separate permissions password | Detailed |
| Where the file is processed | In your browser, on your device | On your device | On your device | On your device | On your device (desktop app) |
| Needs installing | No | No (Mac only) | Yes | Yes | Yes |
Where we think this page is most useful: you are on a shared or work computer where you can’t install software, on a Chromebook, iPhone or Android phone with no built-in option, or you want the method spelled out rather than hidden. Where a desktop app is the better choice: you need certificate-based encryption for specific recipients, batch processing of hundreds of files, or protection applied as part of a document workflow your organisation already runs.
One method we don’t recommend is “printing” a document to a new PDF in the hope of protecting it: print-to-PDF in Windows, macOS and ChromeOS creates an ordinary, unencrypted file.
What happens to file size and how long it takes: measured results
We ran Protect on four real public documents (a US tax form, a UK tax return, a 130-page government policy document and a 23.7 MB image-only scan) using the same build you are using, in Chromium on an 8-core Windows laptop. Times are from pressing Protect to the result appearing, after the encryption engine had loaded once.
| Document | Pages | Before | After | Change | Time |
|---|---|---|---|---|---|
| IRS Form W-9 (fillable) | 6 | 140,815 bytes | 128,999 bytes | −8.4% | about 1 s |
| HMRC SA100 tax return, with copying and editing restricted | 10 | 1,356,263 bytes | 907,602 bytes | −33% | about 2.4 s |
| National Planning Policy Framework | 130 | 1,269,644 bytes | 1,287,554 bytes | +1.4% | about 1.1 s |
| Image-only archive scan | 8 | 23,709,404 bytes | 23,711,270 bytes | +1,866 bytes | about 2.1 s |
Why does the size move at all? Encryption itself adds only a few hundred bytes of key information. The bigger swings come from the fact that qpdf writes a fresh copy of the file’s structure: it keeps only the objects the document actually refers to and repacks the rest, so a file that was edited and re-saved many times can come out noticeably smaller, as the SA100 did. Pages, images and fonts are not re-compressed or resampled, so nothing looks different once the file is opened.
The first time you protect a file on a device, the browser also downloads the encryption engine, a 1.3 MB WebAssembly file served from our own site. After that it is cached, and the first run in our test (with the download from a local server) took about 1.5 seconds rather than 1.
If size matters, compress before you protect, not after: Compress PDF can open a locked file if you give it the password, but its output is not encrypted, so you would have to protect it again.
Limits worth knowing before you send the file
- One file at a time. There is no batch mode. For a pack of documents, merge them first and protect the result once.
- Short passwords are allowed, with a warning. The tool won’t stop you using a very short password, but the meter will say Too short or Very weak. Someone who has the file can try guesses offline as fast as their computer allows, with no lockout, so length really matters.
- Certificate-based digital signatures. Encrypting rewrites the file, and a cryptographic signature is tied to the exact bytes it signed, so an existing digital signature will show as broken afterwards. Protect the document before it is digitally signed, or ask the signer to send a protected copy. Visual signatures (an image of a signature, as made by Sign PDF) are just part of the page and are unaffected.
- Password-based encryption only. There is no option to encrypt for specific people’s digital certificates. That needs a desktop PDF editor or an organisation’s secure email system.
- Size depends on your device. There is no upload limit, because there is no upload. In our tests a 23.7 MB scan took about two seconds; files of hundreds of megabytes depend on how much memory your browser can use, which is less on phones.
- The file name and the email are not encrypted. Only the PDF’s contents (including its title and author information) are locked.
Where your password goes, and what the encryption protects
Because this tool exists to protect confidential documents, it is worth being exact about what happens to both the document and the password.
The document
The PDF is read into this browser tab’s memory. Encryption is done by qpdf, a long-established open-source PDF library, compiled to WebAssembly and run in a background worker on your device. The locked copy is handed to your browser’s downloads. No request carries the file anywhere; you can confirm that with the Network-tab and offline test. During a protect you would see one extra request the first time, for the qpdf engine file itself, coming from our site to you.
The password
- The password boxes have autocomplete and spellcheck switched off, have no form name and aren’t inside a form, so nothing can be submitted and browser “enhanced spellcheck” services don’t receive what you type when the characters are shown.
- When you press Protect, the password is passed to the worker for that one job and the boxes are cleared. The worker drops its copy when the job ends, and the passwords are also cleared if you leave the page.
- Nothing is stored, logged or put in the page address. qpdf’s own console messages are captured in memory and never printed, because some qpdf messages can contain password text.
- Suggest a strong password uses your browser’s cryptographic random number generator to pick 16 characters from a 54-character alphabet that leaves out look-alikes such as 0/O and 1/l: roughly 90 bits of randomness.
- When you leave the permissions password blank, the tool generates a random 256-bit value for it, uses it once and discards it.
What AES-256 protects against, and what it doesn’t
The file is encrypted with AES using a 256-bit key, in the newest scheme the PDF standard defines (security handler revision 6). Text, images, fonts, form data and the document’s metadata are all encrypted. That protects the contents if the email goes to the wrong person, if a laptop or phone is lost, or if a shared folder is opened up by mistake.
It does not protect against a weak password, against a recipient who opens the file and forwards the contents, or against anyone who learns the password. Strength meters, ours included, can only estimate; a passphrase of several random words is the reliable choice. And because nobody but you ever sees the password, nobody can recover it for you, us included.
Accessibility: using the tool, and opening the locked file
- Keyboard. Every control is reachable with Tab. Pressing Enter in the confirm box starts the job once the passwords match. Permission toggles are standard checkboxes announced as switches.
- Screen readers. The strength verdict is linked to the password box, the match message is announced politely, and the Caps Lock warning is attached to the field it applies to. When you use Suggest a strong password, the page announces that a password has been filled in and is now visible, so you know to save it.
- Show password. The eye button has a clear label (“Show password” / “Hide password”) and reports whether it is pressed, which helps if you are checking a long passphrase character by character.
- For your recipients. Even when you switch off copying, the locked file still allows text extraction for accessibility (we checked this with qpdf on our output), so compliant readers can pass the text to a screen reader. Blind and partially sighted recipients can open the file in the same way as anyone else: their PDF reader asks for the password in a standard dialog.
Protect PDF: troubleshooting
- “Enter a password to continue.” and the Protect button is greyed out
- Type something into Open password. The note under the button always says what is still missing.
- “The two passwords don’t match yet.”
- The confirm box differs from the first one. Press the eye icon to show both and compare them, or clear the confirm box and type it again.
- “The permissions password must be different from the open password.”
- Choose a different permissions password, or leave it blank so a random one is generated.
- “This PDF is password-protected” when you add a file
- The file already has an open password. Enter it to continue; the file is decrypted in memory and you can then set a new password. If you don’t know it, ask whoever sent the file.
- “Incorrect password. Check Caps Lock and try again.”
- The existing password you typed didn’t open the file. Check Caps Lock, the keyboard layout and any leading or trailing spaces, then retry; there is no limit on attempts.
- “That file isn’t a PDF”
- The file doesn’t start like a PDF. A Word document or image renamed to .pdf isn’t converted by renaming; export it as a PDF from the app that made it.
- “This PDF looks damaged”
- qpdf couldn’t read the file’s structure. Open it in a PDF reader and save a fresh copy (or print it to PDF), then protect that copy.
- The recipient says the file opens without asking for a password
- They may have been sent the original rather than the -protected copy. Open the file you sent yourself to check.
- The recipient’s reader says it can’t open the file
- AES-256 is supported by current PDF readers, including those built into browsers and phones. A reader that is many years old may not support it; ask them to open the file in a browser or update their reader.
Glossary
- Open password (user password)
- The password needed to view the document at all. It is what actually encrypts the contents.
- Permissions password (owner password)
- A second password that controls printing, copying, editing and form filling. It doesn’t stop anyone opening the file.
- AES-256
- The Advanced Encryption Standard with a 256-bit key; the strongest encryption the PDF format defines.
- Revision 6 (R6)
- The newest PDF security handler, used for AES-256 in the PDF 2.0 standard. Our tool checks every output is R6 before you download it.
- Passphrase
- A password made of several words, such as
maple-orbit-lantern-42. Long, easy to type and easy to read out over the phone. - qpdf
- An open-source library for reading and rewriting PDF files, used here to encrypt and check the output.
- WebAssembly
- A format that lets compiled programs such as qpdf run inside a web browser at near-native speed, on your own device.
- Metadata
- Information stored inside a PDF about the document, such as its title, author and creating software. It is encrypted along with the content.
Related tools and guides
Protect PDF: frequently asked questions
How do I password-protect a PDF for free?
Choose the file above, type a password twice and press Protect PDF. It’s free, with no sign-up, and the file is encrypted on your own device.
Can you password-protect a PDF without Adobe?
Yes. Any tool that writes standard PDF encryption will do. This one uses AES-256, which Adobe Acrobat and Reader, browser viewers and phone apps all open.
How do I protect a PDF from editing or copying?
Open Permissions, switch off Editing and/or Copying text & images, then protect the file. Compliant readers will block those actions; treat them as a strong signal rather than a guarantee.
Can I stop editing without making people type a password to open it?
Not with this tool: it always sets an open password, because that is what protects the content. Restrictions on their own are only honoured by readers that choose to respect them.
How do I password-protect a PDF on a Mac?
Use this page in Safari, Chrome or Firefox, or use Preview’s export option, which can add a password (the wording varies between macOS versions).
Can you password-protect a PDF on an iPhone?
Yes. Open this page in Safari, tap Choose a PDF, pick the file from Files, set the password and download. The locked copy is saved to Files.
How do I password-protect a PDF on Windows?
Windows has no built-in option for existing PDFs. Open this page in Edge, Chrome or Firefox; the locked copy goes to your Downloads folder.
Can you password-protect a PDF after signing it?
A visual signature (an image of your signature) is unaffected. A certificate-based digital signature will show as broken, because encryption rewrites the file. Protect first, then sign, if a digital signature is involved.
Can I password-protect a PDF in Google Drive or Microsoft Edge?
Neither offers a button to add a password to an existing PDF as far as we know; Drive controls access through sharing settings instead. You can open this page in Edge, or protect the file here and then upload the locked copy to Drive.
How secure is a password-protected PDF?
With AES-256 the contents can’t be read without the password, so the real question is how guessable your password is. A passphrase of several random words is very hard to guess; a date of birth or a name is not.
What if I forget the password?
It can’t be recovered. We never see it, and strong encryption has no back door. Keep the unprotected original somewhere safe or store the password in a password manager.
How do I turn a protected PDF back into a normal PDF?
Use Unlock PDF with the password you set. It saves a copy that opens without one.
Page updated · By the PDFMagpie team