Protect PDF Online

Protect your PDF documents with password encryption. Set a password to prevent unauthorized access and configure document permissions.

Your PDF and password are processed locally in your browser. Files are not uploaded to our servers.

Why password-protect PDF files & how encryption works

PDF files frequently carry sensitive records such as contracts, IDs, financial statements, and private reports. Password encryption scrambles the document's content streams and strings using standard cryptographic ciphers (like AES-256) so viewers cannot display the file without the opening password. Pairing AES encryption with a long, unique passphrase significantly improves confidentiality when sharing or archiving files.

1

Upload PDF

Select or drop an unencrypted PDF from your device.

2

Create password

Enter a strong passphrase or generate one with your browser CSPRNG.

3

Confirm password

Re-enter your password to prevent typos that could lock you out.

4

Set permissions

Optionally adjust printing, copying, editing, and owner password settings.

5

Click Protect PDF

Doxily encrypts your document inside a local QPDF WebAssembly worker.

6

Verify encryption

The output is checked to confirm AES encryption and password access.

7

Download PDF

Save your protected PDF and store your password safely.

Implemented Protect PDF Features

  • Password-Protected PDF: Requires an opening password before standard PDF viewers can render the document.
  • AES Encryption: Uses AES-256 (PDF 2.0 / AESv3) by default, with AES-128 (AESv2) available for older compatibility.
  • Password Strength Indicator: Evaluates length and character variety (weak, medium, strong) to guide safer passphrases.
  • Strong Password Generator: Creates random passwords locally via crypto.getRandomValues with one-click copy.
  • Document Permission Settings: Configures printing, text/image extraction, editing, annotations, forms, and page assembly flags, plus optional separate owner password.
  • Protected PDF Download: Validates output encryption before downloading.

Local Privacy & Permission Limitations

  • Local Browser Processing: Files and passwords stay inside your browser memory and Web Worker; nothing is uploaded or stored on Doxily servers.
  • Open Password vs. Permission Flags: An opening password encrypts the document streams. Permission flags (printing, copying, editing) depend on PDF readers honoring standard PDF security flags—some viewers may not enforce restrictions identically, and permission flags are not unbypassable DRM.
  • No Password Recovery: Doxily cannot recover forgotten passwords. Always save your password securely.
  • Signature Note: Encrypting rewrites PDF structure, so existing cryptographic signatures may no longer validate afterward.

Frequently Asked Questions