Skip to content
100% local · 0 KB uploadedCompress PDF

How to Unlock a PDF

🔒 Your files never leave your device. All processing happens locally in your browser.

Unlocking a PDF means removing its password so the file can be opened without a prompt. The catch: you need the password to do it. PDF encryption is symmetric — the password derives the key that decrypts the content, and there is no backdoor. This guide covers the legitimate use cases, the tools that remove a password locally, and the line between "I forgot my own password" and "I should not have this file."

Two legitimate reasons to unlock a PDF

  • You set the password yourself and want a clean copy.Maybe you protected a file to send it, the recipient confirmed receipt, and now you want an unprotected version in your own archive. This is the most common case.
  • You received a file you are authorized to use, with an owner-password restriction that blocks a legitimate action— for example, you need to copy a few lines of text into a report but the file has copy disabled. You have the file legitimately, but the restriction is in your way. Removing the owner password (which does not require the user password in some tools) produces a copy without the restrictions.
The line you should not cross
Unlocking a PDF you do not have the password for — by brute force, by using a "cracker" service, or by uploading a file you do not own to a removal site — is not a technical question, it is a legal one. If you are not the document owner or do not have explicit authorization, removing the password can violate copyright, DMCA-style anti-circumvention laws, or your employer's policy. This guide assumes you have the password and the right to use the file.

You need the password. There is no magic.

A frequent question is "I forgot the password to my PDF, how do I unlock it?" The honest answer: if the password was strong and the encryption was AES-256, you almost certainly cannot. Brute-forcing a strong AES-256 key is not practical on a laptop. If the password was weak (a short dictionary word) and the encryption was old (40-bit RC4), recovery tools exist — but the right lesson is to store passwords in a password manager, not to rely on recovery.

Three tools that unlock a PDF locally

All of these run on your machine. None upload your file. If you use a web-based "remove PDF password" service, the file — including its decrypted contents — passes through that server. For anything sensitive, stay local.

1. Adobe Acrobat Pro (paid)

Open the encrypted PDF, enter the password when prompted, thenFile > Save As and under Protection chooseRemove Security. Save the unprotected copy. Acrobat Pro can remove both user and owner passwords. The free Adobe Reader cannot remove encryption.

2. qpdf (command line, free, cross-platform)

qpdf --decrypt --password=YOURPW input.pdf output.pdfproduces an unprotected copy. qpdf is the most reliable open-source option and handles AES-128, AES-256, and RC4. If you only want to remove owner-password restrictions and the file has no user password, you can run qpdf --decrypt input.pdf output.pdf without a password.

3. ghostscript (command line, free, cross-platform)

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf -sPDFPassword=YOURPW in.pdfre-saves the file without encryption. ghostscript is widely available on Linux and macOS (often pre-installed) and works well in scripts.

What about IXPDF's Unlock PDF tool?
IXPDF has an Unlock PDF page, and the goal is to remove passwords entirely in your browser. Today that tool is Research Required: our current PDF engine (pdf-lib) can load an encrypted file with ignoreEncryption, but it cannot actually decrypt the content or write a clean unprotected output. We are evaluating a browser-compatible decryption library that keeps our local-first promise. Until then, use one of the local tools above.

Step-by-step: unlock a PDF with qpdf

  1. Install qpdf if you do not have it: brew install qpdf (macOS), apt install qpdf (Debian/Ubuntu), or choco install qpdf (Windows).
  2. Run: qpdf --decrypt --password='YOURPW' protected.pdf open.pdf
  3. Open open.pdf in any viewer — it should open without a password prompt.
  4. Delete the protected original if you no longer need it, or keep both.

Removing only owner-password restrictions

If a file opens without a password but blocks printing, copying, or editing, it has an owner password but no user password. qpdf can strip the restrictions without the owner password:qpdf --decrypt restricted.pdf unrestricted.pdf. The output is a fully unrestricted copy. This is the standard way to regain copy/paste on a file you are allowed to read.

Common mistakes

  • Uploading a protected file to a "remove password" website.The site sees the decrypted contents. If the file is sensitive, do not do this — use a local tool.
  • Saving the unprotected copy next to the protected one with the same name. Pick a clear output name so you know which file is which.
  • Expecting recovery without the password. Strong AES-256 + a strong password is not practically breakable. Use a password manager going forward.
  • Unlocking a file you do not own. Even if you technically can, the legal question is separate from the technical one. When in doubt, ask the sender.

After unlocking: re-protect if needed

If you unlocked a file to make a working copy and the original needs to stay protected, do not forget to re-encrypt the working copy when you are done — or store it in a location with equivalent access controls. An unlocked copy of a sensitive document is now an unprotected sensitive document. Treat it accordingly.

Unlock your PDF locally

IXPDF's Unlock PDF tool is under research. Visit the tool page to see what we are building — your file will never leave your device.

Open Unlock PDF

Try it now

Ready to put this into practice?

Run the tool locally in your browser — no upload, no account, no watermarks. Your file never leaves your device.