Protect PDF

Encrypt and password-protect your PDF documents.

About Protect PDF

Drop in a PDF, type a password, and download an encrypted copy that no reader will open without it. The encryption is AES-128 using the standard PDF security handler, and it is performed by JavaScript in this tab — neither the document nor the password is transmitted anywhere.

How PDF encryption is structured

A PDF is not encrypted as a single blob. The object skeleton stays legible so a reader can find the encryption dictionary and work out what it is being asked for; the payload — every content stream and every string — is encrypted individually with a file key derived from your password. That is why an encrypted PDF still reports its page count and version to tools that cannot read a word of it.

Which cipher gets used is tied to the document version, which is a trap worth knowing about: a file that declares itself PDF 1.4 or 1.5 will be encrypted with RC4 by default. RC4 has been considered unsafe for years. This tool rewrites the header to 1.7 before encrypting so the AESV2 handler is selected every time, regardless of how old the source file claims to be.

Two passwords, one box

The specification defines a user password that grants access and an owner password that grants full rights over the file. Here a single string is written into both slots. The practical effect is that the restrictions below apply to everyone opening the document normally, but they are not a second line of defence against the person you gave the password to, because that same string is the owner password. Treat the permission flags as an instruction to well-behaved software, not as enforcement.

  • Allowed: opening with the password, reading, and printing at full resolution.
  • Denied: changing the document, copying text or graphics, adding or editing annotations, filling in form fields, assembling or extracting pages.
  • Denied: content extraction for accessibility. Compliant readers may refuse to expose the text to a screen reader, so do not use this on documents intended for readers who rely on assistive technology.

Choosing a password that survives an attack

Every practical attack on an AES-128 PDF targets the password, not the cipher, and an attacker with the file can try candidates offline as fast as their hardware allows. Length beats complexity: four or five unrelated words are far harder to break than a short string with a symbol in it, and they are easier to read down a phone line. Two constraints apply. The standard handler encodes passwords as Latin-1, so anything outside that range is rejected with a message rather than silently mangled; and it pads or truncates to exactly 32 bytes, so a passphrase past 32 characters buys you nothing. Somewhere between four words and 32 characters is the sweet spot — check the result with Password Strength Checker if you are unsure.

Where this fits with the other tools

Encrypt last. An encrypted PDF cannot be parsed by Merge PDF, Split PDF, Compress PDF or anything else here, so finish all editing, then protect. If you need to change a protected file later, remove the password with Unlock PDF, make the change, and re-protect. For a document whose disclosure would be genuinely damaging, the stronger option is to encrypt the file as a file with File Encryption Tool and share the passphrase separately — PDF passwords are convenient and standard, but they are a document feature rather than a serious cryptographic container.

AES-128, not legacy RC4

The document header is rewritten as PDF 1.7 before encrypting, which forces the AESV2 cipher. Left alone, an older 1.4 or 1.5 file would be encrypted with RC4, a stream cipher no longer considered adequate.

Encrypted before it ever moves

The PDF is read from disk into this tab, encrypted by JavaScript running on your own machine, and written straight back to your downloads folder. The plaintext file is never transmitted, so there is no window in which an unencrypted copy exists on somebody else.

Permissions set alongside the password

High-resolution printing stays allowed; copying text, editing, annotating, filling forms, assembling pages and content extraction are all switched off in the permission flags written into the file.

Frequently Asked Questions

What encryption does this actually apply?

AES-128 in the standard security handler, the scheme every mainstream reader has supported since Acrobat 7. The library picks its cipher from the document version, so the header is deliberately rewritten to 1.7 first — otherwise a file that declares itself PDF 1.4 would be encrypted with 40- or 128-bit RC4, which is much weaker. Both the page content streams and the embedded strings are encrypted; the file structure stays readable so viewers know what to ask you for.

There is only one password box. Is that the open password or the permissions password?

Both. PDF supports two: a user password that lets you open the document and an owner password that lifts the restrictions. This tool sets them to the same string. That keeps things simple, but be clear about the consequence — anyone you give the password to can also remove the restrictions, because they hold the owner password too. The permission flags stop honest readers, not determined ones.

What will the recipient be able to do?

Open the file with the password, read it, and print it at full resolution. Copying text to the clipboard, editing, adding comments, filling in form fields, extracting or rearranging pages, and content extraction for accessibility are all denied. Note that last one carefully: switching off accessibility extraction can prevent a screen reader from reading the document, so if any recipient may rely on assistive technology, this is the wrong tool for that file.

My password was rejected as containing unsupported characters.

AES-128 in the standard handler encodes passwords as Latin-1, so anything outside that range — Cyrillic, Greek, Chinese, Japanese, emoji — cannot be represented and the attempt stops with that message. Use Latin letters, digits and common punctuation. There is no minimum length, but note that this revision of the standard handler pads or truncates the password to exactly 32 bytes, so only the first 32 characters of a very long passphrase actually count.

Can I add a password to a PDF that already has one?

No, and the tool will tell you so rather than producing a broken file. Remove the existing protection with Unlock PDF first (you need the current password), then encrypt the plain copy here with the new one.

What happens if I lose the password?

The document is unrecoverable. There is no master key, no reset, and no copy of your file anywhere for us to help with — the encryption happened entirely on your machine. Put the password into a password manager before you close the tab, and keep the unencrypted original somewhere safe if the document matters.

Is a password-protected PDF good enough for genuinely sensitive material?

AES-128 itself is sound; the weaknesses are elsewhere. A short or guessable password can be attacked offline at high speed, and because the same string acts as the owner password, permissions offer no additional protection. For material where disclosure would be serious, encrypt the file itself with File Encryption Tool and send the passphrase over a different channel, rather than relying on the PDF layer alone.

Does encrypting change the document or its size?

The visible content is identical — nothing is re-rendered and no image is re-encoded. Size grows very slightly because encrypted streams pad to the cipher block size. Any existing digital signature is invalidated, since the byte layout it covered has changed, so sign after encrypting rather than before. The result downloads as protected-yourfile.pdf and opens in Acrobat, Preview, Chrome, Edge and mobile readers with a password prompt.