Guide

How to Password Protect PDF Files

Lock your sensitive PDFs with encryption to control who can open, edit, or print them. Here's how to do it on every platform.

7 min read

Two Types of PDF Passwords

PDF supports two distinct types of password protection, and understanding the difference prevents confusion and security mistakes. The document open password (also called the user password) prevents anyone from opening the PDF without entering the password. The file is encrypted — without the password, the contents are unreadable scrambled data. This is genuine security. If you set a strong open password and use AES-256 encryption, the document is protected by the same encryption standard used by banks and governments. The permissions password (also called the owner password) allows the PDF to be opened and viewed by anyone, but restricts what they can do with it — printing, copying text, editing, extracting pages, or filling forms can each be independently allowed or denied. The file is still encrypted, but a viewer key is embedded that allows opening without the owner password. Here's the critical caveat: permissions passwords provide convenience, not security. Numerous free tools can remove permissions restrictions without knowing the owner password. If a person can view the content on their screen, they can capture it — at minimum, by taking a screenshot. Use permissions passwords for polite enforcement (discouraging casual copying) but never as a substitute for the open password when genuine confidentiality is required. For truly sensitive documents — financial records, legal agreements, medical information — always set an open password with AES-256 encryption.

Password Protecting PDF on Windows

Using Adobe Acrobat Pro: 1. Open the PDF in Acrobat Pro. 2. Go to File → Protect Using Password (or Tools → Protect → Encrypt with Password). 3. Choose whether to require a password for viewing (open password) or editing (permissions password), or both. 4. Enter your password. Acrobat rates the password strength — use at least 12 characters with mixed case, numbers, and symbols. 5. Under the encryption options, select "AES-256" — this is the strongest option available. 6. Click OK, then save the file. Using Microsoft Word (for new documents): If you're creating a document from scratch, you can protect it before saving as PDF: 1. Create your document in Word. 2. Go to File → Export → Create PDF/XPS → Options. 3. Check "Encrypt the document with a password." 4. Enter and confirm your password. 5. Click OK and save. Using free tools: PDF24 (free, desktop app) includes a protection feature. Open PDF24, drag your PDF into the protect tool, set your passwords and permissions, and save the protected copy. LibreOffice Draw can open PDFs. Go to File → Properties → Security → Set Passwords. Set the open and/or permissions passwords, then export as PDF with File → Export as PDF, ensuring the security settings carry over.

Password Protecting PDF on Mac

Using Preview (built-in, free): 1. Open the PDF in Preview. 2. Go to File → Export. 3. Check the "Encrypt" checkbox at the bottom of the save dialog. 4. Enter and verify your password. 5. Click Save. Important limitation: Preview uses 128-bit AES encryption, not 256-bit. For most purposes, 128-bit AES is secure — it would take billions of years to brute-force. But if your organization requires AES-256, you'll need Adobe Acrobat Pro or a command-line tool. Preview also only sets an open password — it doesn't support granular permissions (restricting printing, copying, etc.). If you need permissions control, use Adobe Acrobat Pro or a free tool like QPDF. Using the command line (for advanced users): QPDF is a free, open-source command-line tool: qpdf --encrypt user-password owner-password 256 -- input.pdf output.pdf Replace "user-password" with the open password, "owner-password" with the permissions password, and "256" specifies AES-256 encryption. You can add flags like --print=none --modify=none to set specific permission restrictions. Install QPDF via Homebrew: brew install qpdf This method is ideal for automating PDF protection in scripts — for example, a monthly report generation pipeline that automatically encrypts the output.

Password Protecting PDF on Mobile

Mobile platforms have fewer built-in options for PDF encryption, but browser-based tools fill the gap. iOS/iPad: The Files app and most PDF viewers on iOS don't include password protection features. Your options: • Use a browser-based tool like MagicConverters — upload the PDF, set a password, download the protected version. • Use the Adobe Acrobat Reader app (free to view, subscription required for protection features). • Use the Shortcuts app to create an automation that runs a PDF protection script — this requires some technical setup but works offline once configured. Android: Similar limitations. The default PDF viewer and Google Drive don't support adding passwords to PDFs. Options: • Browser-based tools — open Chrome, navigate to a PDF protection tool, upload and protect. • PDF Utilities apps on the Play Store — several free options exist, though quality varies. Look for apps with high ratings and recent updates. For both platforms, the browser-based approach is the most reliable and doesn't require installing additional apps. Open MagicConverters in your mobile browser, upload the PDF, set your password, and download the protected copy. The encryption happens server-side, so your phone's processing power doesn't matter.

Best Practices for PDF Passwords

Use strong passwords. "password123" and "1234" are the first combinations any attacker tries. Use at least 12 characters combining uppercase, lowercase, numbers, and symbols. A passphrase like "correct-horse-battery-staple" is both strong and memorable. Use a password manager. If you're protecting PDFs regularly, you'll accumulate passwords quickly. Store them in a password manager (Bitwarden is free and excellent, 1Password and LastPass are popular paid options) rather than in a text file or sticky note. Always use AES-256 when available. Older PDF encryption methods (40-bit RC4, 128-bit RC4) have known vulnerabilities and can be cracked relatively quickly. AES-256 is the current standard and is not practically breakable with existing technology. Distribute passwords through a separate channel. If you email a password-protected PDF, don't include the password in the same email. Send it via text message, phone call, or a separate email. If an attacker intercepts the email, they shouldn't get both the file and the password. Test before sending. Open the protected PDF on a different device (or in a different app) and verify the password prompt appears and works correctly. Occasionally, encryption settings don't take effect properly due to software bugs. Keep an unprotected copy for yourself. Store the original, unencrypted version in a secure location (encrypted hard drive, password manager's file storage). If you forget the password, there is no recovery method for a properly encrypted PDF — the encryption is real.
password protect pdfencrypt pdfsecure pdfpdf passwordlock pdf filepdf encryption

Related Articles