Skip to content
HandfulTools

How to remove a password from a PDF (when you know it)

Remove the password from a PDF you can already open, lift printing or copying restrictions, tell the two kinds of PDF password apart, and re-protect the file.

· 6 min read

Removing a password from a PDF means decrypting it. The password you type is turned into a key, that key unscrambles every text string and image stream inside the file, and the same page objects are written back out without the encryption dictionary. Nothing is re-typeset and nothing is re-compressed: the copy has the same pages, fonts and images as the original, minus the lock.

The quickest route here: open Unlock PDF, drop the file, type it in the Password box, tick This is my document, or I have permission to unlock it, then click Unlock PDF and download the copy. The tool runs qpdf — the same open-source program people use from the command line — compiled to WebAssembly so it works inside the page. Your file and your password stay on your device; neither is uploaded. Files up to 200 MB are accepted.

The three ways to do it, and when each one makes sense

Method Good for Watch out for
A browser tool like this one Any device, nothing to install, the password never leaves the machine Very large scans depend on your device's memory
Desktop software (qpdf, Acrobat Pro) Unlocking a folder of statements in one script qpdf is a terminal program; Acrobat Pro is a paid subscription
Built-in OS features One file you already have open macOS Preview only; Windows, iOS and Android have nothing equivalent

On macOS, Preview will do it: open the PDF, type the password, then File → Export as PDF… and make sure the Encrypt box is left unticked before saving. On Windows, there is no built-in way — Microsoft Edge opens a protected PDF once you type the password, but offers no option to save a copy without it. On iPhone, the Files app asks for the password and remembers it while the file stays open, but offers no way to save an unprotected copy. On Android, behaviour depends on the viewer; Google Drive prompts for the password each time and does not strip it.

From a terminal, the command behind all of this is short: qpdf --password=yourpassword --decrypt locked.pdf open.pdf. If the file opens without a password and only blocks printing, leave --password out entirely.

The two kinds of PDF password

A PDF can carry two different passwords, and knowing which one you are facing saves a lot of guessing.

  • The open password (also called the user password). The file shows nothing at all until you type it. Bank statements, payslips and tax documents use this, often built from your date of birth or a customer number — the sender normally explains the pattern in the covering email or letter.
  • The permissions password (the owner password). The file opens straight away, but printing, copying text or editing is switched off. You usually do not know this password, and you do not need to: leave the field empty in Unlock PDF and the restrictions come off.

That second case surprises people, so it is worth being blunt about why it works. Permission flags are not enforced by the encryption. They are a request stored inside a file that any reader able to decrypt it can read — and a file with no open password can be decrypted by anyone. Acrobat and most readers honour the flags out of good manners; a library like qpdf simply does not. Nothing is being broken here, because there was nothing locked in the first place.

What unlocking does to your file

  • The pages are untouched. Text stays selectable, images keep their resolution, fonts stay embedded.
  • The size barely moves. Encryption adds a few hundred bytes of dictionary, not a percentage of the file.
  • Metadata is preserved, including the title and author shown in the document properties. If you would rather not pass those on, edit them with Edit PDF Metadata after unlocking.
  • Form fields keep working. An unlocked form is still a form; nothing is flattened for you.
  • The original is not modified. You download a second file named …-unlocked.pdf. Keep the protected one if you still need it.

The one thing no tool can do

If a PDF asks for an open password you do not have, that is where the story ends. The file's contents are genuinely scrambled, and there is no legitimate way to read them without the password — not with this tool, not with expensive software, not with a service that promises otherwise. What works instead is asking the person or organisation that sent it: banks, employers and public administrations all have a process for re-issuing a document or confirming the password format, and it is usually faster than anything else you could try.

The same applies to documents protected by digital rights management. Some publishers and corporate document systems wrap a PDF in DRM rather than a PDF password. Those files will not open with a password at all — they check a licence with a server — and a PDF tool has nothing to work with.

Common problems, and what they mean

"That password is not correct." Passwords are case-sensitive. Check the shift key, look for a trailing space picked up when you copied it, and re-read the sender's instructions: a date written DDMMYYYY rather than DD/MM/YYYY is the single most common cause.

"This PDF isn't protected." The file has no encryption and no restrictions, so there is nothing to remove. If an application still refuses to print it, the problem is in that application, not in the PDF.

"This PDF could not be unlocked." Either the file is damaged, or it uses a protection scheme that is not a standard PDF password. Try opening it in your usual reader and re-saving it first; if it will not open there either, ask for a fresh copy.

The unlocked file will not open in an old program. Very old readers do not understand modern PDF versions. Re-saving the unlocked file from a current reader usually fixes it.

Another tool refuses the protected file. Most PDF tools cannot read an encrypted file at all, which is why unlocking is normally the first step before you merge or compress a batch of statements.

Questions people ask

Is my password sent anywhere? No. Decryption happens in the browser tab, on your device. Once the page has loaded, the tool keeps working with the network disconnected.

Is it legal to remove a password? For your own documents, and for documents you have permission to modify, yes. That is the point of the confirmation checkbox. Removing protection from someone else's document, or redistributing a file you were given under restrictions, is a different matter entirely.

Can I unlock several files at once? Not in one go here — the tool handles one document at a time. For a folder of monthly statements that share a password, the qpdf command above in a small loop is the practical answer.

Will unlocking change how the file prints? Only in the sense that printing may now be allowed. Page size, margins and resolution are unchanged.

Can I put the password back afterwards? Yes, with a new one. Protect PDF encrypts the file again with AES-256 and lets you decide whether readers may print, copy or edit.

Next steps

Tools used in this guide

← All guides