Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. PDF Tools
  3. PDF Password Protector
Add to favorites

PDF Password Protector

Encrypt a PDF with AES-256, and check the result

PDFs never leave your deviceMore pdf toolsJump to full guide

Initializing in your browser…

You might also like

PDF Watermark Adder

Stamp a mark where the page really is, anchored or tiled

PDF Signature Tool

Draw, type or upload a signature and place it on the page a reader sees, at a width you can state in inches, on one page or every page. Transparent, so it does not hide the line you are signing on.

PDF Merger

Join PDFs into one document, with a bookmark for each file

PDF Password Protector: a worked example

A payslip PDF must be encrypted before emailing it, and the recipient should be able to print it but not copy from it.

Input

payslip.pdf · AES-256 · preset "Read and print"
What PDF Password Protector produces

Output

V 5 R 6 /AESV3, /P -1340; refused with no password, opened with it, 4 pages and 19 characters read back

The permissions are written into the file as the /P entry by ISO 32000-1 table 22, so poppler reads them back as print:yes copy:no change:no addNotes:no, and the four presets give four different values. After writing, the tool re-opens its own output with a different implementation and reports what happened, so "this file is protected" is a measurement on the produced bytes rather than a claim. Everything happens in the browser and the password is never stored. Permissions are a request to a cooperating reader; the password is what keeps the document closed.

About the PDF Password Protector

Encrypt a PDF so it cannot be opened without a password, and choose what a reader who has the password may then do with it. Three ciphers are offered and named: AES-256 (the current standard, and the default), AES-128, and RC4 128-bit for a reader too old to know either. Eight permissions are written into the file as the /P entry, and the page shows the exact value it is about to write. After it writes the file, the tool opens it again with a different reader and tells you what happened: whether a reader with no password was refused, whether the password worked, and how many pages and characters came back. Everything happens in your browser and nothing here stores the password.

Working with your PDF

  1. 1Upload the PDF. The tool says whether it is already encrypted, because an encrypted file cannot be encrypted again.
  2. 2Type a password, or press the refresh icon to generate one from the platform's random source. The meter shows its strength in bits and names a predictable shape if it finds one.
  3. 3Choose the cipher. AES-256 is the default and is what you want unless the file has to open in a very old reader.
  4. 4Set what a reader may do, with the eight switches or one of the four presets. The /P value the file will hold is shown as you change them.
  5. 5Optionally turn on a separate owner password, which grants full control without being the reading password.
  6. 6Encrypt, read the verification report, and download. Keep the password somewhere safe: there is no recovery.

Key features

  • AES-256 (ISO 32000-2, V5 R6), AES-128 (V4 R4, /AESV2) and RC4 128-bit (V2 R3), each named with the readers it opens in
  • Eight permission bits written into the file by ISO 32000-1 table 22, with the /P value shown before it is written
  • Four presets that produce four genuinely different /P values
  • A separate owner password, which grants full control without being the reading password
  • The output read back with a different implementation, and the result reported: refused without a password, opened with it, pages and characters counted
  • The /Encrypt entries the file actually holds shown after writing: V, R, key length, crypt filter and P
  • Titles, bookmark labels and dates encrypted as strings, so they come back as themselves
  • A strength meter that gives a bit count and names a predictable shape rather than ticking boxes
  • Passwords generated from the platform's cryptographic random source
  • Everything in your browser: the file and the password never leave it

Common scenarios

  • Sending a document to one person

    Encrypt with a password you send by another route. Without it the file cannot be opened at all, whatever the permissions say.

  • A read-and-print copy

    Allow printing and screen reader access and nothing else, so a cooperating viewer does not offer copy or edit.

  • Keeping control of a template

    Set a separate owner password so you can change the permissions later without handing out the password readers use.

  • Meeting a requirement to encrypt at rest

    AES-256 is the current standard handler and is what a policy asking for strong PDF encryption usually means.

Tips & best practices

  • Choose AES-256 unless you know the file has to open in something older than Acrobat X. RC4 is there for compatibility and is not a security choice.
  • The strength meter shows a bit count AND names a predictable shape when it finds one. "Password1!" is 66 bits of arithmetic and a few thousand guesses in practice, and the meter says so.
  • Use the generator if you have nowhere in particular to keep a password from. It draws from the platform's cryptographic random source rather than Math.random.
  • Nothing here stores your password and there is no recovery. Put it in a password manager before you close the tab.
  • Set a separate owner password if you want to be able to change the permissions later without handing out the reading password.
  • Encrypt last in a chain of tools. Nothing that has to read the file, including every other tool here, can open an encrypted PDF.
  • Permissions restrict a cooperating reader. If the content genuinely must not be copied, do not put it in a PDF you hand out.

Examples

  • Read and print, nothing else

    The "Read and print" preset writes /P -1340, and poppler reads it back as print:yes copy:no change:no addNotes:no. Four presets give four different /P values.

  • A file that checks itself

    After writing, the tool re-opens the output with pdfjs: refused with no password, opened with the password, four pages and the text intact. That report is on the page.

  • Bookmarks that survive

    A document with four bookmarks and a title comes back with all five strings readable after decryption, because a string is encrypted to bytes and stored as a hex string rather than as the text of its own hex.

How it works

A password on a PDF is the standard security handler of ISO 32000, and it has three parts that a tool can get wrong independently.

**The cipher.** Three are offered and each is named on the page rather than described in general terms. AES-256 is the default: it is the V5 revision 6 handler of ISO 32000-2 clause 7.6.4.3, whose key derivation is SHA-256, SHA-384 and SHA-512 with a hardened hash that repeats at least 64 rounds, and it opens in Acrobat X and every current reader. AES-128 is the V4 revision 4 handler with an /AESV2 crypt filter, which reaches back to Acrobat 7 but derives its key with MD5. RC4 128-bit is the old V2 revision 3 handler, offered only for a reader too old to know anything else; RC4 was REMOVED from PDF 2.0 and should not be chosen without a reason.

**The permission bits.** Eight capabilities are written into the /P entry by ISO 32000-1 table 22: printing, high resolution printing, copying, changing the content, commenting, filling in forms, rearranging pages and screen reader access. Each has its own bit, and /P is a SIGNED 32-bit integer with bits 7, 8 and 13 to 32 reserved and set, which is why "allow everything" is -4 rather than 0 or -1. The page shows the /P value it is about to write, and the four presets produce four genuinely different values.

**Two passwords, two roles.** The user password opens the document. The owner password grants full control and can change the permissions later without knowing the reading password. Leaving the owner password unset makes the two the same, which is the ordinary case.

And then the part that is usually only asserted: the tool reads its own output back. After writing the file it re-opens it with pdfjs, which is a different implementation that knows nothing about the code that produced it, and reports three things: that a reader with no password could not open it, that the password did open it, and how many pages and characters came back. The /Encrypt entries actually written are shown alongside. So "this file is protected" is a measurement on the produced bytes rather than a claim.

One thing is said plainly rather than implied: permissions are a request, not a lock. A reader that has the password holds the decryption key, so the bits are honoured by well behaved software and ignored by anything that chooses not to. The password is what keeps a document closed.

Frequently asked questions

Which encryption does this actually use?

Whichever of the three you pick, and the page names it. AES-256 by default, which is the V5 revision 6 handler of ISO 32000-2 with a SHA-2 based key derivation. AES-128 is the V4 revision 4 handler with an /AESV2 crypt filter. RC4 128-bit is the old V2 revision 3 handler, offered only for compatibility with readers older than Acrobat 7.

Do the permission switches really do anything?

They are written into the file as the /P entry, and the page shows you the exact value before you press anything. Whether a given reader honours them is up to that reader: a reader with the password holds the decryption key, so permissions are a request to well behaved software rather than a lock. The password is the part that keeps a document closed.

How do I know the file is really protected?

The tool opens the output again with a different implementation and reports what happened: whether a reader with no password was refused, whether yours worked, and how many pages and characters came back. That report is on the page after every run.

What if I lose the password?

The document cannot be opened. Nothing here stores it, nothing is sent anywhere, and there is no recovery path. Put it in a password manager first.

What is the difference between the two passwords?

The user password opens the document. The owner password grants full control, including changing the permissions, without being the password readers need. If you set only one, both roles use it.

Can I remove a password with this tool?

No. This adds encryption; it does not remove it. An already encrypted file is recognised and refused rather than producing something that cannot be opened.

Do bookmarks and the document title survive?

Yes. They are strings, and a string is encrypted to bytes and stored as a hex string object, which is what the specification means. Storing the TEXT of the hex instead is a common mistake that destroys every title in the document.

Related tools and how they differ

  • PDF Watermark Adder: A watermark marks a document; a password restricts who can open it. They answer different questions and are often used together.
  • PDF Merger: Encrypt last. A merger cannot read an encrypted file, so join the documents first and protect the result.

Private by design

PDF parsing and editing happen in your browser. Documents, and everything inside them, are never uploaded or stored remotely.