How to Password Protect a PDF (Encrypt Locally)
When you email a salary slip, a signed contract, or a scanned copy of your PAN card, adding a password is the simplest way to keep prying eyes out. The problem with most online “PDF protect” tools is that they require you to upload the file to a remote server — which defeats the whole purpose of password protection. Your sensitive document now sits on someone else’s drive. Toolzo’s PDF protection works differently: it encrypts the PDF entirely inside your browser. The file never leaves your computer. Here’s how to use it and how to pick a password that actually keeps your PDF safe.
When to password‑protect a PDF
Not every PDF needs encryption, but some definitely do. Salary slips, bank statements, tax returns, academic transcripts, and identity documents contain personal information that can be misused if intercepted. Adding a password ensures that even if an email is forwarded accidentally, the attachment remains unreadable without the secret phrase. Similarly, contracts or offer letters you send to a client or candidate should be encrypted to prevent unauthorised edits.
- Use a strong, unique password — don’t reuse your email or banking password.
- Share the password through a different channel (e.g., SMS or a call) rather than the same email.
- Forget the password? The PDF cannot be recovered; keep a backup of the original unprotected file in a safe, offline place.
Step‑by‑step: add a password to your PDF
- Open the Protect PDF tool. It uses the @cantoo/pdf-lib fork that supports encryption.
- Drag & drop your PDF file onto the upload area, or click to select it. The original file size is displayed.
- Type your password (minimum 4 characters) and confirm it. Click the eye icon to reveal what you’ve typed if you need to double‑check.
- Click Protect PDF. The tool will encrypt the document locally. The output size is shown — usually very close to the original.
- Click Download protected PDF. Open the downloaded file; your PDF reader will immediately ask for the password before displaying any content.
Why in‑browser encryption is crucial
Most free online PDF protection tools work by uploading the file, encrypting it server‑side, and then sending back the protected file. The server can (and sometimes does) keep a copy of your unencrypted file. Our tool leverages the pdf-lib library with encryption support to do the exact same AES‑128 encryption inside your browser’s JavaScript runtime. The entire process is local; your data doesn’t touch any external network.
Frequently Asked Questions
What type of encryption is used?
The tool uses AES‑128 encryption, which is the standard for password‑protected PDFs and is supported by all major PDF readers. It is secure enough for personal and most business documents.
Can I set separate user and owner passwords?
The current version uses a single password for both opening and permissions. If you need advanced owner‑level restrictions (e.g., blocking printing), you may need a full desktop PDF editor.
Can I remove a password from a protected PDF?
Only if you know the password. There is no “remove password” feature built into this tool — you’d need the original password to unlock the file in a reader and then re‑save it without encryption.
Will the protected PDF work on all devices?
Yes. The encryption is standard PDF 2.0 compliant. It works in Adobe Acrobat Reader, Preview (macOS), Foxit, and all major mobile PDF viewers.
Is it free and private?
Yes — the tool runs entirely in your browser, free, with no sign‑up and nothing uploaded to a server.
Try the Protect PDF Tool