You can add a password to a PDF for free without installing anything, creating an account, or sending the file to a server. LockerPDF's Protect PDF tool encrypts your PDF with a password you choose, using real AES-256 encryption, and the entire process runs inside your browser tab. This is the same kind of encryption built into current versions of Adobe Acrobat, not a cosmetic lock screen -- once a file is protected this way, it genuinely cannot be opened without the password. Here's exactly how to do it, what the encryption is actually doing, and what to know before you set a password on something important.
What "password protecting" a PDF actually means
It's worth being precise about this, because not every tool that offers to "lock" a PDF does the same thing. Password protecting a PDF the way this tool does it means the file itself is encrypted -- the password requirement is baked into the PDF's internal structure, not layered on top by a website. Open the resulting file in any PDF reader, on any device, and it will ask for the password before showing a single page.
Under the hood, LockerPDF uses a WebAssembly build of qpdf, a long-established open-source PDF encryption tool, running entirely inside your browser tab. That's a deliberate choice: the library most of LockerPDF's other tools rely on can't do PDF encryption at all, so this tool uses a purpose-built engine instead. The practical result for you is the same either way -- a genuinely encrypted PDF, not a gimmick.
Step by step: how to add a password to a PDF
- Go to the Protect PDF tool and drag your PDF into the dropzone, or click it to browse for the file.
- Wait a moment for the page count and thumbnail preview to appear, confirming the file loaded correctly.
- Type a password into the "Password" field, then type it again in "Confirm password" so a typo doesn't lock you out of your own document.
- Click "Protect PDF." Encryption happens right in your browser, usually in a couple of seconds even for longer documents.
- Download the result, saved as
protected.pdf. Open it anywhere to confirm the password prompt appears.
Is my file or password actually private?
Yes. Nothing about this process involves a network request for your file or your password -- both are read, processed, and encrypted locally using WebAssembly running in your browser. You can verify this yourself: open your browser's developer tools, go to the Network tab, and run the tool. You won't see your PDF or password appear in any outgoing request, because there isn't one.
What happens if you forget the password
Be honest with yourself about this before you set one: if you forget the password, the file cannot be recovered by LockerPDF or by anyone else. There's no backdoor, no "forgot password" link, and no support ticket that gets you back in. We never see or store the password you type, which is exactly what makes the encryption real -- but it also means there's nothing to reset if you lose it.
If you think you might need to remove the password later, write it down somewhere reliable, ideally in a password manager, before you close the tab. And keep in mind that a tool that could recover a forgotten password for you would also be a tool that could open the file without your permission -- the two aren't compatible.
Choosing a password that actually protects the file
The tool requires at least four characters, but treat that as a technical floor, not a recommendation. Four characters can be guessed by brute-force software in a trivial amount of time. For a document you actually care about keeping private, use something longer -- ten or more characters, ideally a short phrase rather than a single word, and not a password you've reused somewhere that's already been part of a data breach.
Removing a password later
If you already know the password and just need to open the file freely -- for printing, sharing internally, or archiving without the prompt -- use the Unlock PDF tool. It runs the same encryption engine in reverse: enter the password once, and it removes the encryption entirely, producing a plain PDF. It only works if you know the password; it isn't a password-cracking tool, for the same reason described above.
Signing a document before you encrypt it
If a PDF needs both a signature and a password, do the signing first. Add your signature with the Sign PDF tool, download that result, and then run it through Protect PDF as the last step. Encrypting a file locks its content in place, so it's simpler to finish any edits or signatures before adding the password rather than after.
FAQ
Are my files or passwords uploaded anywhere?
No. Encryption happens in your browser using WebAssembly. Your PDF and the password you choose never leave your device, and you can confirm this yourself by watching the Network tab in your browser's developer tools while you use the tool.
What happens if I forget the password?
The file can't be opened or recovered by us or anyone else -- we never see or store your password. There's no reset option. Keep a copy of the password somewhere safe before you close the tab.
What encryption does this use?
AES-256, the modern standard supported by current versions of Adobe Acrobat and most other PDF readers. It's applied using qpdf, an established open-source encryption tool, not a proprietary or cosmetic locking scheme.
Does adding a password reduce the PDF's quality or file size?
No. Unlike tools that compress a PDF by rasterizing pages into images, this one wraps encryption around your existing document. Text stays selectable and searchable, images stay at their original resolution, and the file size barely changes.
Can I remove the password later?
Yes, as long as you know it. Use the Unlock PDF tool, enter the password, and it produces a plain, unencrypted copy. If you don't know the password, there's no way to recover or bypass it.
Try Protect PDF
Encrypt a PDF with a password so only people who know it can open it.
Open Protect PDF →