Skip to main content

Guides

How to unlock a PDF when you know the password

· 4 min read

AstralPDF's Unlock PDF tool removes password protection from a file you already know the password for: pick the file, type the password, and download a copy with no lock on it, built entirely inside your browser tab. It is not a password cracker, it does not guess or recover a password you have lost, it only removes one you already have.

TL;DR: enter the password you already know, get back an identical PDF with no password on it. The original stays untouched on your disk. This does not crack unknown passwords, and a digitally signed PDF can look modified afterward because the signature was bound to the encrypted form.

Do I need to already know the password?

Yes, always. You must type the document's own password for the tool to open it at all, exactly like opening it in any PDF reader. Unlocking here means removing a lock you can already pick, not picking a lock you cannot. If the password is genuinely lost, there is no recovery path, on this tool or any honest one; that is the same boundary covered in our password-protection guide.

What does unlocking actually remove?

What the file hasWhat unlocking does
A user password (required to open it)Removed, so the file opens without a prompt
An owner password only (opens fine, blocks printing or copying)Also removed; the restrictions are lifted along with it
No password at allNothing to remove; the tool has no effect on an already-open file

Does my file or password get sent anywhere?

No. The PDF is decrypted in memory in your browser tab using @cantoo/pdf-lib, and the password you type is used locally to derive the decryption key and never leaves the page. You can confirm this the same way as any tool on this site: load the page, disconnect from the internet, and unlock the file anyway.

What happens to the original file?

It is left alone. Unlocking produces a new, separate file; your encrypted original stays on disk exactly as it was, so keep it if you might need to prove the document was protected, or if you want to re-lock it later with the Protect PDF tool instead of re-encrypting the unlocked copy from scratch.

Why does an unlocked file sometimes look modified?

Some digital signatures are bound to the document's encrypted form, so removing the password can make a viewer flag the signature as changed even though no visible content was touched. If the file is signed and the signature matters, keep the original encrypted copy as the reference and treat the unlocked version as a working copy, not the record of truth.

What should I check before unlocking a batch of files?

  • Confirm you actually have the right to remove protection from the file; only unlock documents you own or are authorized to modify.
  • Keep the encrypted original if the file is signed, backs a legal record, or you might need to re-lock it later.
  • If the file has an owner password only, opening it in a reader already shows most of the content; unlocking is worth it mainly to also lift printing or copying limits.
  • Once unlocked, the file behaves like any other PDF here: it can be merged, split, compressed or watermarked straight away.

Unlock a PDF in your browser: type the password once, download the unlocked copy, nothing leaves your device.

Next: merge PDFs without uploading them: unlocking is often step one before combining files into a single document.

See also: password-protecting a PDF properly: going the other way, setting a password that is actually worth setting.

Frequently asked questions

Can this tool crack a PDF password I forgot?

No. It only removes a password you already know and type in. There is no recovery or guessing feature, here or in any tool that is being honest about PDF encryption.

Is it legal to unlock a PDF?

Removing protection is fine for documents you own or have the right to modify. Only unlock files you are authorized to change.

Does unlocking change the content of my PDF?

No. Text, images and layout are untouched. The only change is that the password requirement is removed, though a bound digital signature can then show as modified.

Is my password sent to a server?

No. The password is used locally to decrypt the file in your browser tab and is never transmitted anywhere.

Can I re-lock the file afterward with a new password?

Yes. Once unlocked, use the Protect PDF tool to set a fresh password, ideally right after, rather than leaving the unlocked copy floating around unprotected.