Made on Earth Donate

Why your statements arrive as password-locked PDFs, and how to remove a password you already know

10 November 2026 · 11 min read · by Varun Agrawal

The tool this post is aboutRemove PDF PasswordRemove the password from a PDF you have the password for, or strip the restrictions that block printing, copying or editing.

Every month the same email arrives: your bank statement, attached as a PDF, with a line saying the password is your date of birth followed by the first four letters of your name. You type it in to read the file. You type it in again a week later to check a payment. Then you try to upload the statement to a loan or visa portal and it is rejected as "password protected" or "invalid". Or your accountant asks for twelve months of statements and you realise each one has to travel with a note explaining how to open it.

A second, quieter version of the problem: a PDF form or report opens without any prompt, but Print is greyed out, or you can't select a sentence to copy it. Nobody gave you a password, so you don't have one to type.

Both are PDF encryption, and they are far more different than they look. This post explains how PDF passwords work, why the second kind is barely a lock at all, what the usual workarounds quietly throw away, and how Remove PDF Password makes an unlocked copy without touching the pages.

Two passwords, two very different locks

PDF has had encryption since the mid-1990s. The scheme almost every file uses is the standard security handler, and its settings live in a small dictionary that the file's trailer points to, named /Encrypt. That dictionary can describe two passwords:

  • The user password, also called the open password. Without it, the file's contents can't be decrypted at all.
  • The owner password, also called the permissions password. It is meant for the author, and it unlocks the right to change the security settings.

Everything that matters in the file (the page content streams, the fonts and images, the text strings) is encrypted with one file key. The question is how a reader gets that key.

In the older revisions of the scheme, the key is computed by hashing the user password together with values stored in the file: the owner entry, the permission flags and the document's ID. In the current one (revision 6, AES-256, part of PDF 2.0), the key is a random 256-bit value, stored twice in the dictionary: once wrapped under the user password and once under the owner password. Either password unwraps it.

Now the interesting case. If the author sets an owner password but leaves the user password empty, the file is still encrypted, but any reader can derive the key by trying the empty password, which is exactly what PDF readers do first. The document opens without a prompt. What stops you printing or copying is not cryptography but a field of permission flags, the /P value, which the reader checks and promises to obey.

The permission flags

The /P value is a 32-bit number in which particular bits grant particular rights. The ones that matter:

BitWhen it is set, the reader may
3print the document
4modify the contents
5copy or extract text and graphics
6add or change comments, and fill in forms
9fill in existing form fields, even when bit 6 is clear
10extract text for accessibility tools such as screen readers
11assemble the document: insert, rotate or delete pages
12print at full quality rather than a low-resolution version

A file that blocks everything except accessibility extraction carries /P -3392; one that allows everything carries /P -4. The flags are honoured because the PDF specification says conforming readers must honour them, and Acrobat, browsers and phone viewers do. But the content itself is readable by anyone who opens the file, because opening it already required decrypting it.

So which lock do you have? If the PDF asks for a password before showing anything, it has a user password and the content is properly encrypted: the only practical way in is that password. If it opens straight away but blocks printing or copying, it only has an owner password, and the restrictions can be lifted without knowing it.

Why the files arrive locked, and why it gets in the way

The sender's reasoning is sound. Email crosses servers the bank doesn't control and lands in inboxes that get shared, forwarded and synced to phones. Encrypting the attachment with something only the customer knows means a statement sent to the wrong address, or read over someone's shoulder in a mail preview, gives nothing away. The password is built from your own details because the bank needs one you already know without a separate letter.

That reasoning is about the file in transit. Once the statement is on your own disk, the encryption mostly gets in the way of what comes next:

  • Upload portals. Many document upload forms for loans, visas, tax and HR reject encrypted PDFs, because their software can't read the file to check, scan or store its contents.
  • Other PDF software. Merging, splitting, compressing, annotating and importing into accounting software usually need either the password or an unencrypted file, and asking a dozen times for a dozen different passwords is tedious.
  • Search and archives. Desktop search and document management systems often skip encrypted files, so the statement you need in three years doesn't show up when you search for the payee.
  • Printing elsewhere. A print shop's or office printer's software can choke on a file that needs a password, or that forbids printing.

And the encryption on statements is a convenience lock by design. A password made from a birth date and four letters of a name is something a determined person who knows you could guess. It keeps casual eyes off the file; it isn't the thing keeping your finances safe once the file is yours.

The usual workarounds, and what each one costs

Print to PDF

Open the file with its password, choose Print, and pick Microsoft Print to PDF or the Save as PDF destination in your browser or on a Mac. The new file has no password. But it is a new rendering: the pages are redrawn through the print path, and what isn't ink on a page usually doesn't survive. Links stop being clickable, bookmarks disappear, form fields are flattened into plain drawings, and the accessibility tags that screen readers rely on are gone. File sizes can grow or shrink unpredictably. And if the file is restricted from printing, this route is closed anyway.

Acrobat Pro

Adobe's paid editor can remove security in the document's properties. That is a proper removal, but it needs a subscription, and for a restricted file it asks for the owner password, which you were never given.

Password crackers

Tools that promise to "recover" a forgotten open password work by guessing. Against the oldest 40-bit encryption that can succeed by brute force; against a current AES-encrypted file with a decent password it is hopeless. If you have the password, you don't need them, and if you don't, they rarely help.

Screenshots or scans

The last resort, and it shows: text that can't be selected or searched, at screen resolution, often across a dozen separate images.

What decrypting a PDF actually involves

A PDF is a collection of numbered objects (pages, content streams, fonts, images, form fields, the outline) plus a table saying where each one starts. Encryption doesn't scramble the structure. It encrypts the contents of strings and streams inside those objects and adds the /Encrypt dictionary that says how.

So removing encryption doesn't need to render anything. Given the file key, a program can read every object, decrypt its strings and streams, and write the same objects back out in the clear, with a fresh cross-reference table and no /Encrypt entry. The page descriptions, fonts, images, links, bookmarks and form fields are the same bytes they were, just no longer encrypted. That is the difference from print-to-PDF: nothing is redrawn, so nothing is lost.

The program the site uses for this is qpdf, a long-established open-source tool for transforming PDFs structurally. It reads every encryption scheme the standard security handler has used, from the 40-bit RC4 of the 1990s (a key size then dictated by US export rules on cryptography) through 128-bit RC4 and 128-bit AES to the 256-bit AES of current Acrobat and PDF 2.0.

How Remove PDF Password does it

When you choose a PDF on the page, it is sent to the site's server (up to 100 MB) and handled in a few steps.

1. Find out what kind of lock it has

The server first asks qpdf whether the file needs a password to open (qpdf --requires-password). qpdf answers with its exit code: one value for "needs a password", one for "encrypted, but opens without one", and one for "not encrypted". When qpdf can't read the file at all, it says so in an error line, and the page tells you the file couldn't be read as a PDF rather than claiming there was nothing to unlock.

2. Ask for the password only if it is needed

A restricted-only file goes straight to the next step: no password involved. A file with an open password and no password typed gets the message This PDF needs its password to open. Enter it and try again. The password box appears, and because the page sends the file with JavaScript, the PDF you chose stays selected; you type the password and press Unlock without choosing the file again. Either the open password or the owner password works, since both unwrap the same key.

3. Hand the password over privately

The password is written to qpdf's standard input (--password-file=-), not put on its command line. On a server, command lines can be visible to other processes in the system's process list; standard input isn't. It also means passwords with spaces, quotes, a leading dash or an equals sign arrive exactly as typed.

4. Write the decrypted copy

qpdf then runs with --decrypt and writes the unencrypted copy. A file with small structural faults, the kind many PDF generators produce, is repaired as it is read: qpdf finishes with warnings, and the copy is used. A wrong password gets That password did not work. Check it and try again., and no half-written file is kept. A single run is stopped after 60 seconds.

5. Preview, then download

The unlocked copy comes back to your browser, which shows it in a preview, with a status line saying either Password removed or Restrictions removed, so you know which kind of protection the file had. The download is named after the original with -unlocked added. Without JavaScript the same form works as a plain upload, and the unlocked PDF downloads directly.

A worked example

To see both locks side by side, take a one-page PDF and protect it twice with qpdf itself.

File A, restricted only. Encrypted with 256-bit AES, an owner password, an empty user password, and printing, copying and changes all forbidden. Asked about its encryption, qpdf reports revision 6, P = -3392, printing and extraction "not allowed", and, tellingly, "Supplied password is user password" when no password was supplied at all. The empty password opened it.

File B, with an open password. Also 256-bit AES, with the user password 15081990, the kind of date-of-birth password a bank would use, and a separate owner password. Without a password, qpdf reports "Incorrect password supplied". It can still list the encryption settings, which are never encrypted themselves, but not a word of the content.

Through the tool:

FileWhat you typeWhat happens
A, restrictedNothingUnlocked straight away: Restrictions removed.
B, open passwordNothingThe password box appears: This PDF needs its password to open.
B, open password15081991That password did not work. The file stays selected.
B, open password15081990Unlocked: Password removed.
B, open passwordThe owner passwordAlso unlocked: it unwraps the same key.
The original, unprotectedNothingThis PDF has no password or restrictions, so there is nothing to unlock.

Asked about either unlocked copy, qpdf answers "File is not encrypted". The page is the same page, with the same content stream; only the encryption is gone.

What the unlocked copy keeps, and what it can't

Because the objects are copied rather than redrawn, text stays selectable and searchable, images keep their resolution, and bookmarks, links, form fields and their filled-in values stay where they were. A few things are worth knowing before you rely on the copy:

  • Digital signatures break. A signature covers exact byte ranges of the signed file. Rewriting the file, which decryption has to do, changes those bytes, so a viewer will report the signature as invalid in the copy. If the signature matters (a signed contract, a certified certificate), keep the original alongside.
  • Certificate security isn't supported. Some organisations encrypt PDFs for named recipients with digital certificates instead of passwords. Those use a different security handler, and the tool can't open them.
  • Security, not content. A watermark printed into the page, a scanned page that is only an image of text, or a form that was flattened before sending are all part of the content. Removing encryption doesn't change them, and a file with none of the PDF security described above gets the "nothing to unlock" message.
  • The copy is now open to anyone. That is the point, but it cuts both ways: an unlocked bank statement in a shared folder or a forwarded email is readable by whoever ends up with it. Store it where you'd store the paper version.
  • Upload. The PDF, and the password if you type one, are sent to the site's server to be processed; the privacy policy describes what may be collected.

Practical tips

  1. Keep the original. The download has -unlocked in its name so it never overwrites the protected file. Keep both if the original was signed or if you may need to prove what was sent.
  2. Read the covering email for the password rule. Banks, fund houses and employers nearly always describe it: a date of birth in a given format, part of a name in capitals or lower case, the last digits of an account or customer number. Formats matter: 15081990 and 15/08/1990 are different passwords, and passwords are case-sensitive.
  3. If one password fails, try the other format before assuming the file is broken. The page keeps the file selected, so each attempt is a few keystrokes.
  4. Unlock once, then work with the copy. Merging, compressing and annotating all go more smoothly on an unencrypted file, and a portal that rejected the original usually accepts it.
  5. On your own machine, qpdf does the same job. It is free and runs on Windows, macOS and Linux: qpdf --password=YOURPASSWORD --decrypt locked.pdf unlocked.pdf. On a shared computer, note that a password on a command line can end up in shell history.
  6. Only unlock what you are entitled to use. Your own statements, payslips and forms are one thing; getting round restrictions on documents you don't have the right to copy is another.

If the PDF you need doesn't exist yet, Word to PDF with Bookmarks and Excel Workbook to One PDF make unencrypted PDFs from documents and spreadsheets, so there is nothing to unlock later.

Try it now, freeRemove PDF PasswordRemove the password from a PDF you have the password for, or strip the restrictions that block printing, copying or editing.

More from the blog

All posts →