How to Password Protect a PDF File
Learn how to add password encryption to PDF files. Understand permission controls, the encryption process, and important trade-offs to consider.
Why Password Protect a PDF?
Adding a password to a PDF restricts who can open or interact with the document:
- Sensitive reports — Limit access to authorized recipients
- Legal documents — Protect contracts and agreements during transit
- Personal files — Secure tax returns, medical records, or ID copies
- Controlled sharing — Set who can print, copy, or modify
How It Works (Important Trade-offs)
PDF Worker's Protect PDF tool uses a render-and-rebuild approach:
- Each page is rendered to a high-quality image (JPEG at 92% quality, ~144 DPI)
- The images are assembled into a new PDF with encryption applied
- The encrypted PDF requires a password to open
What this means for your output:
- Strong encryption — The PDF is genuinely password-protected
- Visual quality is good — 92% JPEG at 144 DPI looks sharp for most documents
- Text becomes image-based — You can no longer select, search, or copy text from the protected PDF
- File size may change — Image-heavy PDFs may get larger; text-heavy PDFs may also grow
This trade-off exists because browser-based JavaScript cannot apply encryption to the original PDF structure directly. The render-and-rebuild approach is the only way to achieve real encryption in the browser without uploading your file.
Password Types
| Type | Purpose |
|---|---|
| User password | Required to open the PDF |
| Owner password | Controls editing/permission settings |
You can set either or both. If you only set a user password, anyone with it gets full access. Adding an owner password lets you restrict actions even for people who can open the file.
Permission Controls
When setting an owner password, you can toggle:
- Printing — Allow or block printing the document
- Copying — Allow or block selecting and copying content
- Modifying — Allow or block editing the document
How to Protect a PDF
- Go to PDF Worker's Protect PDF tool
- Upload your PDF (up to 100 MB)
- Set a user password and/or owner password
- Configure permissions (print, copy, modify)
- Click "Protect PDF" and download the encrypted file
Your password is processed entirely in your browser — it is never sent to any server.
Tips
- Use strong passwords — At least 8 characters with mixed case, numbers, and symbols
- Save the password — There is no recovery mechanism if you forget it
- Keep the original — Since the output is image-based, save your unprotected source file
- Consider watermarking first — Add a visible watermark before encrypting for an extra layer of deterrence
- For lossless protection, consider desktop tools like Adobe Acrobat that can encrypt without re-rendering
Protect Now
Try PDF Worker's free PDF protector. Encryption happens entirely in your browser — your file and password never leave your device.