Protect PDF

Status notice: in-browser PDF encryption is currently unavailable; see offline alternatives.

In-Browser PDF Encryption Unavailable

This application uses pdf-lib inside your browser, which does not support writing password-encrypted PDF streams (RC4 or AES). Rather than saving an unencrypted file that looks locked, password encryption has been disabled on this page.

Reliable offline alternatives that apply real AES-256 encryption:
  • qpdf (Windows / macOS / Linux CLI): qpdf --encrypt userpass ownerpass 256 -- input.pdf protected.pdf
  • LibreOffice Writer / Draw (Free desktop app): File → Export As → Export as PDF → Security → Set Passwords.
  • macOS Preview: File → Export → Permissions → Require Password to Open Document.

How to Use Protect PDF

Our browser PDF engine (pdf-lib) cannot write password-encrypted PDF streams. Rather than producing an unencrypted file that looks protected, this page explains how to apply real AES-256 encryption offline.

Step 1

Open the Protect PDF page to review why browser pdf-lib encryption is disabled.

Step 2

For strong AES-256 encryption offline, run the documented qpdf command, LibreOffice Export as PDF Security menu, or macOS Preview permissions dialog.

Step 3

Verify the protected PDF prompts for a password by opening it in a fresh browser window.

How Output Is Calculated or Built

PDF password protection requires writing an encrypted trailer and RC4 or AES content streams. Because pdf-lib only parses unencrypted documents and cannot output encrypted streams, in-browser encryption is intentionally disabled here.

Important Limitations

  • •This web tool does not accept uploads or output password-protected PDFs directly.
  • •Do not rely on browser tricks that only hide or watermark pages; always use an AES-capable tool like qpdf, LibreOffice, or Acrobat.

What Protect PDF Includes

Transparent disclosure instead of fake locking
Exact qpdf CLI AES-256 command
LibreOffice & macOS Preview instructions

Frequently Asked Questions

Frequently Asked Questions

Find quick answers about functionality, security, and usage limits.

Because pdf-lib does not support PDF encryption writing. Disabling the form prevents giving users a false sense of security.

More PDF Tools

View all