Add a password to a PDF you own. Real AES-128 or AES-256 encryption, permission controls, and a password strength meter. Runs entirely in your browser — nothing is uploaded.
Add a password and set permissions to protect the file
—
This tool encrypts a PDF with a password and produces a new protected file. Every modern reader — Adobe Acrobat, Preview, Chrome, Firefox, Edge, iOS Files, Android's built-in viewer — will prompt for the password and open the file. The encryption is real: AES-256 or AES-128, the standard algorithms built into the PDF specification.
Everything runs in your browser using WebAssembly. Your PDF and your password are read into memory, used to derive an encryption key, and written back to disk by your own device. No PDF is ever sent to any server, and your password is never transmitted, logged or retained.
Adding a password to a document you own — a bank statement, an insurance policy, a tax return, a signed contract — is a normal part of information hygiene. Adding a password to someone else's document without permission is not.
Some jurisdictions treat unauthorised encryption of another person's file as a form of interference with their property. Some employers treat it as a violation of acceptable-use policies. The tool doesn't check any of this; it just runs. Use your judgement.
PDFs support two different passwords, and they control different things:
| Password | What it controls | Who needs it |
|---|---|---|
| User password | Required to open the file at all. Without it, the reader shows a password prompt and refuses to display content. | Everyone who opens the file |
| Owner password | Required to change permissions, remove the password, or edit restricted parts. | Only the person who originally set the password |
If you only set a user password, this tool generates a random owner password that you never see. That means nobody — including you — can later change the permissions without the file being re-created. For most documents, that's fine. If you want to keep control over permissions, set an owner password too.
-protected appended to the filename.The four permission controls let you decide what a reader can do with the file once it's open:
| Permission | Controls | When to disable |
|---|---|---|
| Allow printing | Whether the file can be sent to a printer or a PDF-to-image tool. | Confidential documents that shouldn't be on paper. |
| Allow copying text | Whether text can be selected and copied. | Documents where quote leakage is a concern. |
| Allow editing | Whether the content can be modified by a PDF editor. | Contracts and signed documents. |
| Allow annotations | Whether comments, highlights and digital signatures can be added. | Rarely. Most workflows need this on. |
Permissions are advisory — they're a standard part of the PDF format, and well-behaved readers honour them. But a determined user with specialised tools can bypass them. If you need a guarantee that content can't be extracted, use full-disk encryption or don't share the file at all.
Both are part of the PDF standard and both are strong enough that no practical attack exists against them. The differences are practical, not security-critical:
Both modes produce files that open with a password prompt in every modern reader. Both are unaffected by the security of the underlying password itself — a weak password is weak regardless of AES strength.
Encryption is only as good as the password. Three rules matter:
Common weak passwords to avoid: dates of birth, pet names, phone numbers, single dictionary words, and anything under 10 characters. Those can be brute-forced in minutes.
The tool uses qpdf compiled to WebAssembly. qpdf is a command-line tool used by archivists, libraries and law firms for PDF transformations, and its encryption code is well-audited. It implements the standard algorithms defined in the PDF specification:
Text stays selectable, images stay embedded at full quality, form fields stay editable (if you allow editing), links and bookmarks keep working. The file is encrypted in place, not re-rendered.
Every operation happens in your browser. The PDF is read into memory, encrypted, and written back to disk by your own device. Your password is used to derive an encryption key inside the browser and never leaves it. No PDF and no password is ever sent to any server, logged, or retained.
The only network requests the page makes are for the WebAssembly library and the fonts. Both are loaded from your own site and public CDNs when the page first opens. After that, the tool works entirely offline.
This makes the tool safe for the most sensitive documents you have: bank statements, tax returns, medical records, ID scans, legal filings, personal correspondence.
Being honest about limits is more useful than pretending they don't exist. This tool does not:
Yes. This tool uses qpdf compiled to WebAssembly, which implements the standard PDF encryption algorithms. AES-256 and AES-128 modes produce files that Adobe Acrobat, Preview, Chrome and every other PDF reader recognises and prompts for a password.
You can, but you shouldn't. Adding a password to someone else's document without permission may violate copyright or contractual terms. Only protect files you own or have the right to modify.
The user password is required to open the file at all. The owner password is required to change permissions, remove the password or edit restricted parts. If you only set a user password, the tool generates a random owner password and you can't change permissions later without it.
There is no recovery. Real AES encryption cannot be reversed without the password. If you lose both the user and owner passwords, the file is permanently locked. Store your password in a password manager before you close the tool.
AES-256 for anything sensitive — financial records, medical documents, legal filings. AES-128 only for older readers that don't support AES-256, which is rare today.
PDF permissions are enforced by the reader, not by the encryption itself. Well-behaved readers like Adobe Acrobat honour them. Determined users with specialised tools can bypass them. Treat permissions as a deterrent, not a guarantee.
Yes. AES-256 and AES-128 are part of the PDF standard. Every modern reader — Adobe Acrobat, Preview, Chrome, Firefox, Edge, Foxit, Sumatra, iOS Files, Android's built-in reader — will prompt for the password and open the file.
No. Everything happens in your browser. Your PDF and your password never leave your device.
No. The password is used to derive the encryption key inside your browser. It is never transmitted, logged or retained.
No. If a PDF is already encrypted, remove the existing password first with the Remove PDF Password tool, then protect it again with the new password.
Yes. Tap the drop zone to select a PDF from Files or Downloads, enter the password, and download the protected file directly to your device.
Yes. After the page loads once, the tool works entirely offline.
Yes, if you know the password. Use the Remove PDF Password tool with the user password to strip the protection.
In most cases they are preserved. The tool encrypts the PDF in place without re-rendering pages, so text stays selectable, form fields stay editable (if you allow editing), and links keep working.
This tool handles encryption. For everything else, these tools work the same way — free, in your browser, no upload.