Protect PDF with Password
Add a password to a PDF in your browser. The encryption happens locally — the password never touches a server.
In your browser—your files never leave your device.
Learn moreRequired to open the PDF.
If set, this password is required to change permissions (print, copy, edit). Leave blank to use the open password for both.
Encrypted with AES-128, the PDF standard. Your password and PDF never leave your browser — encryption happens 100% locally.
About this tool
Password-protecting a PDF used to mean buying Acrobat or trusting a random web upload with your sensitive document and password in plaintext. This page handles it locally: you drop in a PDF, type a password (twice for confirmation), and the page encrypts the file in your browser using pdf-lib's encrypt() method. The encrypted output prompts for the password in any PDF reader — Preview, Adobe Reader, Chrome, Edge, mobile apps. The password is never sent over the network and never stored anywhere. If you forget it, the file is gone — there is no recovery, by cryptographic design. Save the password somewhere safe (a password manager, an encrypted note) before you close the tab. The how-to below covers the basic flow and the FAQ answers what happens to the recipient's experience, why old PDF readers might struggle, and what the tool deliberately does not do.
How to protect pdf with password
-
Drop in your PDF
Single file. The page accepts any standard PDF including ones with content forms, hyperlinks, or embedded images.
-
Type a password (twice)
At least 4 characters. Save it somewhere you will not lose it — there is no recovery option built into PDF encryption.
-
Click Protect
Encryption runs locally via pdf-lib. A 50-page PDF takes about 2-3 seconds to encrypt on a modern laptop.
-
Download the protected file
Opening it in any reader will now prompt for the password. Test it once before sending so you know the protection took correctly.
Why use this tool
You are emailing a signed NDA to someone and the contents are sensitive — putting a password on the file means an intercepted email or a misdelivered attachment cannot be read by accident. You are sharing tax documents with your accountant over a channel you do not fully trust (email, WhatsApp, Slack, a portal that does not have proper access controls). You are sending a payslip, a P60, or an HMRC letter and want the recipient to verify identity (knowledge of the password) before opening it. You are publishing a draft report to a small group and want to keep it off the open internet by making it useless to anyone who happens to find a copy. You are archiving personal documents (identity, financial, medical) to cloud storage and want a second layer of protection in addition to whatever the storage provider does. Encryption is not a substitute for real access control, but for everyday document sharing it raises the bar high enough that casual snooping no longer works.
Features
Browser-side encryption
The password is typed locally, the encryption happens locally in your browser via pdf-lib, and the encrypted PDF is downloaded directly. Open the Network tab to verify nothing related to the password leaves your machine. Most online "protect PDF" tools upload your file and your password in the clear — that is the opposite of what you want when the whole point is protecting a sensitive document.
Standard PDF encryption
pdf-lib uses the standard PDF encryption format. Any modern PDF reader (Preview, Adobe Reader, Chrome, Edge, Firefox, Foxit, mobile apps) will prompt for the password and decrypt correctly. Older readers from before 2017 may not support the latest encryption variants and might prompt to fall back, but that is a tiny minority of installed readers today. The encryption is industry standard, not a custom or proprietary scheme.
Permissions enforced too
The protect action sets standard PDF permission flags: copying disabled, content modification disabled, document assembly disabled, but high-resolution printing allowed and form-filling allowed. So a recipient can open and read the file, fill in any forms, and print, but cannot copy the text out or edit the document. This is the most common permissions profile for shared documents. Adjustable in a future version if there is demand for different combinations.
No size limit and no rate limit
Since the encryption runs in your browser, there is no daily cap, no per-file fee, and no queue. The practical ceiling is browser memory — encrypting a 200MB document takes more RAM than encrypting a 5MB one, but neither is a problem on a modern laptop. Mobile devices can handle PDFs up to about 100MB comfortably before memory becomes the limiting factor.
Privacy & security
This tool runs entirely in your browser. Your files are never uploaded to a server — every step of the process (reading, transforming, downloading) happens on your device using JavaScript and the Web APIs. You can verify this in your browser's network tab: clicking the tool's main action triggers zero requests to our servers. The page itself is served over HTTPS, but once it loads, your data stays put. No accounts, no tracking of file contents, no scanning your inputs.