How to password-protect a PDF without uploading it
- Open your PDF. Choose the file or drop it anywhere on the page. It is read into your browser's memory and never sent to any server.
- Set a password. Type it twice. The strength meter tells you in plain English whether it would hold — six lowercase letters fall in seconds; a short phrase holds.
- Encrypt and verify. The file is encrypted with AES-256 on your device, then the tool immediately reopens its own output: one check confirms your password opens it, another confirms no password does not.
- Download and store the password. Rename if you like and download. Keep the password somewhere safe — there is no recovery, which is exactly what makes the protection real.
What it does
- AES-256 encryption — the same standard banks and governments use, running in your browser
- Verifies its own output: opens it with your password, confirms it refuses without
- Live password strength meter with plain-English labels, and a match check
- Unlock mode removes the password from a PDF you can already open
- Optional owner password and permission flags, explained honestly
- The file and the password never leave your device
What this tool does
It encrypts a PDF with AES-256 so that opening the file requires a password — and it does the whole job inside your browser. The engine is an open-source pdf-lib fork; your file is read into memory, encrypted on your device, and downloaded back. It also works in reverse: give it a protected PDF and its password, and it produces an unlocked copy.
Proof, not promise
Most tools say "your file is now protected" and leave it there. This one immediately reopens its own output twice: once with your password, expecting success, and once with none, expecting refusal. Both results are shown as checks before you download. If verification ever failed, the tool would tell you not to trust the output — that is the point of running it.
Why no-upload matters more here than anywhere
Think about what you are doing when you use an online "protect PDF" site: you are uploading the exact document you consider sensitive enough to encrypt, plus the password, to a stranger's server. It is the least logical possible place for this job. Client-side encryption removes the contradiction — the secret never exists anywhere but your device.
The password is the protection
AES-256 is not the weak point; your password is. Six lowercase letters fall to a laptop in seconds. A short phrase of unrelated words — correct-battery-lemon — holds for centuries. The live meter under the password field puts this in plain English while you type, and the second field catches typos, because a typo in an encryption password does not produce an error later. It produces a locked file.
Honest limits
There is no password recovery, by design — anyone who could recover it could also break in. Permission flags (no printing, no copying) are honored by reader apps but not enforced by the encryption, so the tool describes them as requests, not guarantees. And if you need the protected file to also be smaller or redacted, do that first — encryption is the last step, not the first.
How to password protect a PDF on Mac
To password protect a PDF on Mac, Preview is enough for the basic case. Open the PDF, choose File → Export…, tick Encrypt, type the password twice and save. Newer versions of macOS also offer File → Edit Permissions…, where you set an open password, an owner password and the usual print and copy flags in one sheet. Either way, keep the original and save the protected copy under a new name.
One thing Preview does not tell you: its encryption strength depends on your macOS version. Older releases wrote 128-bit RC4, which is obsolete; newer ones write AES. You cannot see which you got from the save dialog. This tool always uses AES-256, then reopens its own output twice — once with your password, once without — and shows both checks before you download. It runs in Safari or Chrome on your Mac, and neither the file nor the password leaves it.
Password protect a PDF on iPhone
There is no built-in way to password protect a PDF on iPhone. The Files app can open, mark up and share a PDF, but it has no encrypt option, and Mail and Messages send the file exactly as it is. Most people end up installing an app or uploading the document to a website — and uploading the very file you want to lock, together with its password, is the least sensible place to do this.
This page works in Safari on iPhone. Tap Choose a PDF, pick the file from Files or a recent download, set the password, and the encryption runs on the phone with AES-256. The verification checks run there too. Save the result back to Files or share it into Mail. Nothing is uploaded, and the password exists only on your keyboard and in Safari's memory until you close the tab.
Can you password protect a PDF file — and remove the password later?
Yes, you can password protect a PDF file, and the format gives you two different locks. The open password encrypts the contents: without it, a reader shows a prompt and nothing else, and the data inside is unreadable. The permissions password is different — it carries flags such as no printing or no copying. Those flags are advisory. Well-behaved readers honour them, but the encryption does not enforce them, so treat them as a polite request, not protection. If something must stay private, use an open password.
To remove a password from a PDF you know, switch this tool to Unlock, type the password, and download an unencrypted copy. In Preview on a Mac, open the file with its password, choose File → Export…, leave Encrypt unticked and save. Neither route works on a forgotten password: nothing can unlock a PDF whose password is lost, and a site that claims otherwise is not being straight with you about what encryption means.