How to Password Protect a PDF Online
Protect confidential PDFs with AES-256 encryption in three steps without transmitting your file or passwords over the internet.
Select Your PDF Document
Choose or drag and drop the PDF file you want to encrypt into the browser workspace.
Set Open Password, Owner Password & Permissions
Set an open password, an owner password, or both. If you want anyone to be able to open the PDF, leave the open password blank and set an owner password. Choose which actions to allow in compatible PDF readers.
Encrypt Locally and Download
Apply AES-256 encryption inside your browser and immediately download the password-protected PDF to your computer or phone.
Granular PDF Encryption and Permission Controls
Choose passwords and set usage restrictions for compatible PDF readers, locally in your browser.
AES-256 Cryptographic Security
Protects your PDF using 256-bit Advanced Encryption Standard (AES-256) cipher security recognized across modern desktop and mobile PDF readers.
User Open Password
Set an open password to restrict access to the PDF. For a file anyone can open, leave this field blank and set an owner password to manage permissions.
Optional Owner Password & Permissions
Set an owner password to manage permissions. If you leave it blank, the open password is used for both roles. Copying, printing, and editing restrictions apply in PDF readers that honor them.
Zero Server Upload of Files or Passwords
Both your unencrypted PDF and the passwords you type stay strictly inside your local browser memory and are never sent to any remote server.
How Does the Local PDF Password Protector Work?
CompressFly applies standard PDF AES-256 encryption and permission flags directly inside your web browser using WebAssembly. The tool uses the password settings you choose and requires at least one password. The protected PDF is created on your device for download.
What "in your browser" means
- Plaintext PDFs and passwords are never uploaded to a server
- AES-256 encryption and permission settings are applied locally on your device
- Protected PDF files download directly from your browser
Open Password vs. Owner Password & Permissions: How Should You Configure Them?
The PDF specification supports two distinct password roles plus three granular usage flags. Use the table below to choose the right security combination for your document:
| Security Control | What It Restricts | When to Use It |
|---|---|---|
| Open Password (User Password) | Controls access to the PDF when set. | Sending confidential contracts, bank statements, payroll slips, or medical results via email or chat. |
| Owner Password (Permissions Password) | Locks copying, printing, and editing permission settings unless unlocked with this password. | Set usage restrictions on a PDF anyone can open, or set a separate password for permissions alongside the open password. |
| Allow Copying Toggle | Controls copying text and images in PDF readers that honor permissions. | Disable to limit copy-pasting from proprietary research and legal briefs in compatible readers. |
| Allow Printing Toggle | Controls printing in PDF readers that honor permissions. | Disable for digital-only review drafts and confidential board packets. |
| Allow Editing Toggle | Controls editing, adding, or removing pages in PDF editors that honor permissions. | Disable on finalized invoices, certificates, and executed agreements. |
Set at least one password. If you leave the owner password blank, the open password is used for both roles.
Protect PDF FAQ
What encryption standard does CompressFly use to protect PDF files?
CompressFly encrypts your PDF documents using AES-256 (256-bit Advanced Encryption Standard), providing strong cryptographic protection supported by modern desktop and mobile PDF viewers.
What is the difference between the Open Password and the Owner Password?
An open password restricts access to the PDF. An owner password lets you manage copying, printing, and editing permissions. You can set either password or both. If you leave the owner password blank, the open password is used for both roles.
Can I restrict copying, printing, and editing on a PDF?
Yes. You can set separate permissions for copying, printing, and editing. These restrictions apply in PDF readers that honor them. Before encrypting, use Redact PDF to remove marked content or Flatten PDF to turn form fields and annotations into static page content.
What happens if I forget the password I used to encrypt my PDF?
Because CompressFly applies real AES-256 encryption locally in your browser and never stores your files or passwords on any server, we cannot recover a forgotten password. Always store your password safely or keep a backup copy of your original document in a secure location.
How can I remove the password from a protected PDF later?
If you know the correct password and want to export an unlocked copy that opens directly without a password prompt, use our local Unlock PDF tool.
Can I password protect multiple PDF files at once?
No—this tool encrypts one PDF document at a time so you can choose its passwords and permissions. Once you download your encrypted PDF, you can immediately protect the next document.
Is PDF password protection free and private?
Yes. PDF protection is free, with no added watermarks, no daily limits, and no account signup required. Your PDF and passwords stay in your browser, with no server uploads.