How to Password Protect a PDF Online
Published September 1, 2026 · 4 min read
Most "free PDF password" sites online quietly upload your document to a server to do the encryption — which is exactly the kind of thing you don't want when the file is a contract, a tax return, or an ID scan. This tool takes a different approach: it runs qpdf, the same open-source engine many desktop PDF tools are built on, compiled to WebAssembly and executed locally in your browser. The encryption itself never leaves your machine.
Try Protect PDFSteps
- 1
Open the Protect PDF tool
Go to the PDF password protector.
- 2
Upload your PDF
Choose the PDF file you want to lock. It's read into your browser's memory — nothing is sent anywhere.
- 3
Set a user password
This is the password someone will need to open and read the file. Optionally set a separate owner password to also restrict printing or editing.
- 4
Encrypt and download
The tool applies real 256-bit AES encryption and gives you back a new, password-protected PDF to download.
Frequently asked questions
256-bit AES, applied via qpdf — the same standard used by professional PDF software, not a cosmetic "open password" gate.
Yes — use the companion Unlock PDF tool with the correct password to produce an unprotected copy.
There's no recovery option, by design: since the file and password never reach a server, no one — including AnyTool Studio — has a way to reverse the encryption. Keep your password somewhere safe before you close the tab.
Because the whole process runs client-side, this works the same whether you're protecting a one-page invoice or a confidential 200-page report — the file's contents are never exposed to a network in either case.

