Password Protect a PDF: A Practical Guide
Emailing a contract, sharing medical records, sending financial statements — sometimes a PDF needs a lock. Done right, PDF encryption is genuinely strong. Done wrong — a weak password, or the wrong kind of password — it's decoration.
This guide covers the two password types, which tools to use, and how to share the password without defeating the purpose.
Try it free: Compress PDF
Before sharing sensitive PDFs, strip their metadata — free.
Open Compress PDFThe two password types (this matters)
PDFs support two passwords with very different strength. The open password (also called user password) encrypts the file — without it, the content is mathematically inaccessible. The permissions password (owner password) merely asks reader software to restrict printing, copying or editing.
The trap: permissions passwords are enforced by the honor system. Plenty of free tools ignore them completely. Use an open password for real confidentiality; treat permissions passwords as a polite request, nothing more.
How to add a password (free methods)
- Microsoft Word: File > Info > Protect Document > Encrypt with Password, then export to PDF — the encryption carries over
- LibreOffice: File > Export as PDF > Security tab — set passwords and choose AES-256
- Preview on Mac: File > Export as PDF, enable encryption and enter a password
- Adobe Acrobat: Tools > Protect > Encrypt with Password for the most options
Always choose AES-256 when offered — older RC4 encryption is crackable with modest effort.
Make the password actually strong
Encryption is only as strong as the password. 'Invoice2026' falls to dictionary attacks in seconds. Generate a long random password with a password manager — 16+ characters — and never reuse one across documents.
Share the password through a different channel than the file: if the PDF goes by email, send the password by text or call. Sending both in the same email is locking the door and taping the key to it.
Removing protection (when you own the file)
If you know the password and want to remove it — say, for archiving — open the PDF, enter the password, then save/export without security settings (in Acrobat: Protect > Remove Security). Only do this with files you own or are authorized to unlock.
Forgot the password to your own file? There's no legitimate 'recover' button — that's the point of encryption. Some tools attempt brute force, which only works on weak passwords, underscoring why yours shouldn't be one.
Passwords aren't the whole story
An encrypted PDF sent as a permanent email attachment still lives forever in inboxes. For sensitive documents, combine encryption with expiring share links, confirm recipient addresses, and strip metadata before sending.
What encryption can't do
Encryption protects the file in transit and at rest — nothing more. It can't stop the recipient from forwarding it, screenshotting it, or (with the password) printing it. It doesn't expire, it doesn't watermark, and it doesn't tell you who opened it.
For those needs, layer accordingly: expiring share links for time-bounding, visible watermarks with the recipient's name to discourage forwarding, and DRM platforms for the rare cases that truly need them. A password is one layer — make it the right layer for your actual threat.
Related guides
Settings and sharing: a working routine that holds up
Knowing the two password types is the theory. This is the practice — the settings choices and sharing routine that keep protected files both secure and openable by the person they're meant for.
Choose the encryption level with the recipient's software in mind. AES-256 is the right default and every current reader supports it, but it has one compatibility footnote: the strongest variant of AES-256 (sometimes labelled revision 6) can defeat very old reader software. If a recipient reports that a correct password is rejected, an ancient reader is the likeliest cause — have them update, or re-encrypt at AES-128, which remains meaningfully strong with a long random password and opens almost anywhere. Never fall back to RC4: its weaknesses are practical, not theoretical.
Understand what happens when both passwords are set. Many tools let you define an open password and a permissions password on the same file. Opening with the open password gives whatever access the permissions allow; opening with the permissions password in a full editor typically grants full control, including removing security. Set the permissions password to something different from the open password — if they're identical, most software treats the file as owner-unlocked, quietly defeating the restrictions you thought you'd applied.
Run the sharing routine the same way every time:
- Generate the password in a password manager — never invent one at the keyboard, where patterns creep in — and save the entry under the document's name so future-you can find it.
- Encrypt a copy, never your only copy. Keep the unencrypted master in your own controlled storage; an encrypted file with a forgotten password is indistinguishable from a lost file.
- Verify before sending: open the encrypted copy in a different reader than the one that created it, confirm it prompts for a password, and check Document Properties → Security shows the encryption level you chose.
- Send file and password by different channels — file by email, password by messaging app or call — and tell the recipient what the file is through the password channel too, so the attachment isn't a mystery object.
- For a group of related documents, protect each file individually even if they share a password, so you can re-send or revoke one without disturbing the rest.
Batch work deserves one caution. Applying one password to fifty files is efficient, and password reuse across documents is normally a sin — but context matters. These files share a recipient and a sensitivity level, so a single strong password for the set is a reasonable trade; what you must not do is reuse that password for a different recipient or a more sensitive set later. When the set changes audience, the password changes.
And a final verification habit for the receiving side of your own workflow: when someone sends you a protected file, note where the password arrived from. If file and password ever turn up in the same message, the sender has theatre, not security — worth a polite word if the documents are yours.
One practical problem deserves honesty: friction. A password on a file you open once, to send or archive, costs nothing. A password on a reference document you open six times a day trains you to store an unprotected copy somewhere convenient — quietly recreating the exposure you were avoiding. Match the layer to the usage. Files that live and work on your own machine are usually better protected by the machine itself — your account login and full-disk encryption — with per-file passwords reserved for files that leave your control. When you do type a password often, paste it from the password manager rather than typing: PDF passwords are case-sensitive, and the commonest cause of a 'correct password rejected' panic is a phone keyboard helpfully capitalising the first letter or substituting a smart apostrophe. For teams, solve the orphan problem in advance — passwords held by exactly one person become a business continuity risk the day that person is unreachable. A shared vault in the team's password manager, where a second named person can retrieve document passwords under the same access rules as the files themselves, keeps protection from ever becoming a lockout.
Frequently asked questions
How do I password protect a PDF for free?
Use Word's Encrypt with Password before exporting to PDF, LibreOffice's PDF Security tab, or Preview's encrypted export on Mac — all free and all offer real AES encryption.
What's the difference between open and permissions passwords?
An open password encrypts the file — content is inaccessible without it. A permissions password only requests that readers restrict printing/editing, and many tools ignore it. Use open passwords for real security.
Can a password-protected PDF be cracked?
With AES-256 and a strong random password, no — not practically. Weak passwords fall to dictionary attacks quickly, and old RC4 encryption is breakable regardless of password.
I forgot my PDF password. Can I recover it?
There's no built-in recovery — that's by design. Brute-force tools only succeed against weak passwords. Your best hope is remembering it or finding where you stored it.
Private by design: SwiftPDF tools run entirely in your browser — your files never leave your device.