Skip to content

Remove a Password From a PDF You Own on Windows

Remove a password from a PDF you own on Windows free using WSL and qpdf. Decrypt files you have the password for, locally and offline — nothing uploaded.

MGMCSA Guru Team June 20, 2026 3 min read
A WSL terminal removing the password from a PDF using qpdf decrypt on Windows

A bank statement or payslip that asks for a password every single time you open it gets old fast. If it’s your document and you know the password, you can save a copy that opens normally. The catch with the obvious fix — an online “unlock PDF” site — is that you’d be typing the document’s password into a stranger’s web form along with the file itself. For financial or personal PDFs, that’s exactly backwards.

WSL does it locally with qpdf: supply the password you already have, get a decrypted copy, and nothing leaves your machine.

If WSL isn’t installed, start with the WSL install guide.

Install qpdf

sudo apt update && sudo apt install -y qpdf

Confirm:

qpdf --version

Remove the password

The --decrypt option writes a copy with the encryption removed. Supply the password with --password:

qpdf --decrypt --password=YOURPASSWORD locked.pdf unlocked.pdf

locked.pdf stays as-is; unlocked.pdf opens without a prompt. That’s the whole job.

If the password has special characters or spaces, quote it:

qpdf --decrypt --password='p@ss word!' locked.pdf unlocked.pdf

User password vs owner password

PDFs can carry two kinds of password:

  • User (open) password — needed just to view the file.
  • Owner (permissions) password — controls printing, copying, and editing, even if the file opens freely.

qpdf --decrypt with the correct password produces a fully unrestricted copy. If a PDF opens without prompting but won’t let you print or copy, it has an owner password; supply that one to --password to lift the restrictions on your own document.

qpdf decryption commands

qpdf --decrypt --password=PW in.pdf out.pdf Remove password, save decrypted copy
qpdf --show-encryption in.pdf Show how the file is encrypted
qpdf --decrypt --password='a b!' in out Quote passwords with spaces/symbols

To see what protection a file has before you start:

qpdf --show-encryption locked.pdf

Decrypt several files with one password

If you have a batch of statements that share the same password, loop over them into a separate folder:

mkdir -p unlocked
for f in *.pdf; do qpdf --decrypt --password=YOURPASSWORD "$f" "unlocked/$f"; done

Decrypted copies land in unlocked/; the originals stay encrypted and untouched.

Wrapping up

Removing a password from a PDF you own is one command: qpdf --decrypt --password=YOURPASSWORD locked.pdf unlocked.pdf. It works for both user and owner passwords, doesn’t change the content, and runs entirely in WSL — so you never type a document’s password into a website.

qpdf is the same tool behind merging and splitting PDFs, so once it’s installed it covers a lot of everyday PDF work locally and for free.

Frequently asked questions

Can qpdf remove a password I don't know?

No. qpdf decrypts a PDF using the password you supply — it doesn't crack or bypass unknown passwords. This is for documents you own and have the password to, where you simply want to save a copy that no longer prompts for it.

What's the difference between a user password and an owner password?

The user (open) password is required to view the PDF. The owner (permissions) password controls actions like printing or copying. qpdf needs whichever password applies to produce a fully decrypted copy.

Does decrypting reduce the PDF's quality?

No. qpdf only removes the encryption layer and rewrites the file; the pages, text, and images are copied unchanged. The output looks identical to the original, just without the password prompt.

Is my PDF uploaded anywhere?

No. qpdf runs locally in WSL, so the file and its password stay on your machine. That's especially important here — typing a document's password into an online unlock site is a real security risk.

How do I decrypt several PDFs that share one password?

Use a short loop that runs qpdf with the same password over each file, writing decrypted copies to a separate folder. The loop in this guide does that and keeps your originals.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.