How to Protect a PDF with a Password
A guide to password-protecting PDFs — covering AES-256 encryption, browser-based tools, Adobe Acrobat, macOS Preview, and password best practices.
Why Password-Protect a PDF?
Sending a contract by email, sharing financial reports through a cloud link, or attaching medical records to a support ticket — these are everyday actions that expose sensitive documents to unintended readers. Email gets forwarded. Cloud links get shared. Downloads sit in browser caches on shared computers. Password protection adds a barrier that keeps your document readable only by people who have the key.
PDF encryption is particularly useful because the protection travels with the file. Unlike a password-protected ZIP archive where the files are exposed once extracted, a password-protected PDF remains encrypted at rest. Even if someone copies it, moves it, or backs it up, they still need the password to open it.
Two Types of PDF Passwords
The PDF specification supports two distinct password levels:
- User password (open password). Required to open and view the document. Without it, the file displays nothing — the content is encrypted.
- Owner password (permissions password). Controls what an authorized viewer can do — printing, copying text, editing, or extracting pages. The document opens without this password, but certain actions are restricted.
How to Add a Password to a PDF
1. Browser-Based Encryption
FileKit's PDF Protect tool adds AES-256 encryption directly in your browser. Upload your PDF, set a password, and download the protected file. The original file is never sent to a server — encryption happens locally using the pdf-lib library.
2. Adobe Acrobat
File → Properties → Security → Password Security. Acrobat offers granular control: separate user and owner passwords, AES-128 or AES-256 encryption, and individual permission toggles.
3. Command Line with qpdf
qpdf --encrypt user-pass owner-pass 256 -- input.pdf protected.pdfChoosing a Strong Password
- Minimum 12 characters — longer is better
- Mix character types — letters, numbers, symbols
- Use a passphrase — "correct-horse-battery-staple" is strong and memorable
- Never reuse passwords — unique per document
Share the password through a different channel than the document. If you email the PDF, send the password via SMS or a messaging app.
Encryption Standards Compared
- RC4 40-bit — Legacy, effectively broken, avoid unless required for old software
- RC4 128-bit — Outdated cipher, adequate for low-sensitivity documents
- AES-128 — Modern and secure for most purposes
- AES-256 — Strongest available, recommended for all sensitive documents
Common Workflows
Emailing Contracts
Protect with a user password, email the file, then text the recipient the password. Combine with watermarking to trace leaked copies.
Cloud Storage
Password protection adds a second layer on top of cloud permissions. Even if someone gains access to the shared folder, they still need the password.
Removing Protection Later
Use FileKit's PDF Unlock tool with the current password to remove encryption. You cannot remove protection without knowing the password.
Frequently Asked Questions
- Can someone crack a password-protected PDF? With AES-256 and a strong 12+ character password, brute-force cracking is computationally infeasible with current technology. Weak passwords (under 8 characters, dictionary words) can be cracked in hours.
- Does protection affect file size? Minimally. Encryption adds a small overhead (typically under 1%) to the file size.
- Can I protect a PDF on my phone? Yes — browser-based tools like FileKit work on any device with a modern browser, including iOS and Android.