How to Password Protect a PDF File



I once sent a tax document to my accountant over email. No password, no encryption, just a raw PDF floating through the internet like a postcard anyone could read. It worked out fine — but looking back, that was dumb. Email gets intercepted. Inboxes get hacked. Laptops get stolen.
If you're sending anything with personal info, financial data, or confidential business stuff, you should be locking your PDFs down. It takes about 30 seconds and it's one of those "why wasn't I doing this already" habits.
Let's go through how PDF passwords actually work, the different ways to add one, and some mistakes people make that basically defeat the whole point.
✏️ Edit your PDF for free — no signup required
Fill forms, add signatures, merge files, and more — right in your browser.
Open Free Editor →How PDF Passwords Work (The Short Version)
PDFs support two types of passwords, and they do very different things:
Open password (user password): This one blocks anyone from even viewing the file. Try to open the PDF and you get a password prompt. No password, no access. This is what most people mean when they say "password protect a PDF."
Permissions password (owner password): This one lets people open and read the file, but restricts what they can do with it — like printing, copying text, or editing. It's more of a suggestion than a lock, honestly. There are free tools everywhere that strip permissions passwords in seconds.
For actual security, you want the open password. That's the one that encrypts the file contents.
When you set an open password, the PDF gets encrypted using either AES-128 or AES-256, depending on the tool. AES-256 is the same encryption standard banks use. Without the password, the file is gibberish — nobody's reading it, not even if they have direct access to the file.
Method 1: Use an Online PDF Tool
The fastest way to password protect a PDF is with an online tool. No software to install, works on any device.
With OnlyDocs, you can encrypt a PDF right in your browser:
- Go to onlydocs.net and upload your PDF
- Open the security options
- Set your password
- Export the encrypted file
The file gets processed in your browser, so it never sits on someone else's server. That matters when you're dealing with sensitive documents — you don't want your tax returns hanging out on a random company's infrastructure.
This works great for one-off files. If you're doing this regularly with dozens of files, you might want a desktop option.
Method 2: Using Preview on Mac
If you're on a Mac, you already have a password protection tool built in. Preview — the app you probably use to look at images — handles this surprisingly well.
- Open your PDF in Preview
- Go to File → Export as PDF (not just "Export" — the PDF-specific option)
- Click "Permissions" at the bottom
- Check "Require password to open document"
- Enter your password and confirm
- Save
One thing that trips people up: if you just do File → Export, you get different options. You need the "Export as PDF" option specifically to see the encryption settings. Apple buries it a little.
Method 3: Using Microsoft Word (Yes, Really)
Word can save files as encrypted PDFs. It's not the most intuitive workflow, but it gets the job done if you're already working in Word.
- Open your document (or open the PDF in Word — it'll convert it)
- File → Save As → choose PDF format
- Click "Options" in the save dialog
- Check "Encrypt the document with a password"
- Enter your password
Fair warning: converting a PDF through Word can mess up the formatting. Tables shift, fonts change, images move around. If your layout matters, this isn't ideal. It works best when you're starting from a Word document in the first place.
Method 4: Command Line with qpdf (Free, Fast)
For the technically inclined, qpdf is a free command-line tool that handles PDF encryption without breaking a sweat. It's available on Mac (via Homebrew), Linux, and Windows.
Install it:
brew install qpdf # Mac
sudo apt install qpdf # Ubuntu/Debian
Encrypt a file:
qpdf --encrypt yourpassword "" 256 -- input.pdf output.pdf
That gives you AES-256 encryption with an open password. The empty string "" means no separate owner password. You can batch-process hundreds of files with a simple shell loop, which is where this really shines over GUI tools.
What Makes a Good PDF Password
This is where people sabotage themselves. They go through the effort of encrypting a file, then set the password to "password123" or their dog's name.
A few ground rules:
Length matters more than complexity. "correct-horse-battery-staple" is a better password than "X#9kL" because it's longer. Modern cracking tools can chew through short passwords regardless of how many special characters you throw in.
Don't reuse passwords. If you use the same password for every PDF you send, a single leak compromises everything. For important documents, generate a unique password each time.
Share the password separately. This sounds obvious but people do it constantly — they email a PDF and put the password in the same email. If someone compromises that email thread, they have both the lock and the key. Send the password via text, Signal, a phone call, anything that's a different channel from the file itself.
Write it down somewhere. PDF encryption is not recoverable. There's no "forgot password" button. If you lose the password, that file is gone. Keep a password manager or at minimum a secure note with your PDF passwords.
The Permissions Password Problem
Earlier I mentioned permissions passwords are basically useless for real security. Here's why.
A permissions password tells the PDF reader "don't let the user print/copy/edit this." But the PDF reader is software running on the user's machine. The user can just... use different software. Tools like qpdf can strip permissions passwords instantly:
qpdf --decrypt locked.pdf unlocked.pdf
No password needed. The file contents were never encrypted — the restriction was just a flag in the file metadata. It's like putting a "Do Not Enter" sign on an unlocked door.
If someone sends you a PDF with printing disabled and you need to print it, now you know. And if you're trying to protect your own documents, don't rely on permissions alone. Use an open password for anything that actually matters.
When You Don't Need a Password
Not every PDF needs encryption. If you're sharing a recipe collection, a public report, or your kid's school permission slip, adding a password just creates friction for no benefit.
Password protection makes sense for:
- Tax documents, W-2s, 1099s
- Contracts with confidential terms
- Medical records
- Financial statements
- Anything with Social Security numbers, bank details, or login credentials
- Legal documents during negotiation
For everything else, skip it. You'll just end up fielding "what's the password?" messages.
A Note on "PDF Security" Services
There are sites that charge monthly fees for "PDF security solutions." Most of them are doing exactly what the free methods above do — applying AES encryption with a password. Some add DRM-style controls (view limits, expiration dates, screenshot blocking), but these are easily circumvented and add complexity that usually isn't worth it.
For 99% of use cases, a strong open password with AES-256 encryption is all you need. Save your money.
The 30-Second Version
If you just want the quickest path:
- Go to onlydocs.net
- Upload your PDF
- Set a strong password (12+ characters, not something guessable)
- Download the encrypted file
- Send the file one way, the password another way
That's it. Your document is now encrypted with the same standard that protects classified government data. Not bad for half a minute of work.
Stop sending naked PDFs. Your future self (and your accountant) will thank you.
✏️ Try OnlyDocs Free — Edit, sign, and merge PDFs right in your browser. No signup required.
Open Editor →