This page's code did not start.

Opening index.html directly from a folder blocks JavaScript modules, so nothing will happen when you choose a PDF. Serve the folder over http instead:

powershell -ExecutionPolicy Bypass -File serve.ps1

Then open http://localhost:8080/.

PDF Unlocker

Permission restrictions and open passwords are different. This page tells you which your PDF uses.

Language: English
View source
Your documents are processed in your browser. No processing upload.

The document you choose is opened, decrypted and written back out in memory on this machine, by code served from this address. Nothing here can make an upload, and there is no server on the other end of this page to receive one. Neither the file nor the password you type leaves the tab.

Live check: checking…

Offline: checking…

Don't take our word for it: open DevTools, watch the Network tab, and unlock something. Not one request carries a document, a password, or a filename. Or unplug from the internet and unlock it anyway.

1 Choose the protected PDF

2 See what is on it

A PDF can be locked in two ways that look alike and are not. One is an open password, which nobody can get past without the password. The other is a set of restrictions — no printing, no copying, no editing — on a file that opens for everybody, where the lock is a request your reader has agreed to honour rather than anything cryptographic. This says which of the two this document has.

Nothing chosen yet. Once a document is here, this will say which of the two it has, what the encryption is worth, and whether a password is needed at all.

3 Take the protection off

Also take out what the file remembers about where it came from The name of the program that locked it, when it was made and last edited, the XMP packet and the private blocks a layout application leaves behind. This is a separate job from removing the protection and it is off unless you ask for it — everything else about your document comes through untouched either way.

View as Markdown

How to remove a password or the restrictions from a PDF

  1. Choose the PDF.Choose one document. The browser reads it from your disk and first tries an empty password. That opens files whose protection restricts permissions without requiring a password to read them.
  2. Read what the page found. It says which of the two kinds of protection this file has, what scheme was used and what that scheme is worth today, and lists every restriction the document asks readers to honour: printing, copying, editing, commenting, filling in forms, reordering pages, even reading it aloud to somebody who cannot see it.
  3. Type the password, but only if you are asked. The box appears only when the blank password did not open the document, which is the only time a password is any use. Either of the document's two passwords works — the one that opens it, or the owner password that lifts its restrictions. Nothing is guessed, and what you type stays in this tab.
  4. Take it off, and read the line that says it was checked. The document is decrypted with its own key and written back out with no encryption dictionary at all. Then the finished file is opened again here, with no password, by a reader that refuses encrypted documents — and if it will not open, or comes back with a different number of pages, you get no download and a message saying so.

The longer version

How to unlock a PDF, and which kind of locked it is A PDF that will not print and a PDF that will not open are two different problems with one name. What each of them actually is, why one comes off in a click and the other cannot come off at all, and how to tell which you have.

Questions

Do I need the password?

It depends on the protection. A PDF that opens without a password but restricts printing or copying can have those permission restrictions removed here without a password. If an open password is required, supply the user or owner password. The page tries the empty password first and explains which case it found.

Can it open a PDF whose password I do not have?

No. This tool does not guess passwords or search encryption keys. You can inspect src/shared/pdf-crypt.js for its supplied-password handling. Recovery tools elsewhere may guess a weak password or attack obsolete encryption, with no guaranteed result; this page does neither. If you do not know a working password, ask the sender for it or for an accessible copy.

What is the difference between the two passwords?

A PDF can have two passwords. The user password opens it; the owner password grants full permissions. A document can have an owner password with an empty user password, so it opens freely while a reader still enforces printing or copying restrictions. This tool accepts either supplied password and explains what it found.

Is removing the restrictions legal?

That depends on the document and on where you are, and it is a question about your rights in the file rather than about the technology. What can be said plainly is what the format does: the restrictions are a field inside the document that readers honour by agreement, not a cryptographic barrier, and Adobe has documented them that way since they were introduced. This tool is for documents you are entitled to use — your own statement that will not print, a report you paid for that will not copy, a scan you need to reorder. If you are not entitled to the file, nothing here changes that.

Which kinds of encryption does it handle?

Every published one: RC4 at 40 and 128 bits (revisions 2 and 3), AES-128 (revision 4), and AES-256 in both the withdrawn 2008 form and the current PDF 2.0 one (revisions 5 and 6). What it does not handle is certificate-based encryption, where the key belongs to a smart card or a key store rather than to a password, and Adobe's one unpublished variant. Both are refused with a message saying which they are, rather than failing vaguely.

Will the document look any different afterwards?

No. Nothing is re-rendered, re-encoded or reflowed: every page's drawing instructions, every embedded font and every image is copied through exactly as it arrived. Text stays selectable, scans stay at their original resolution, and nothing moves. The file may come out slightly smaller, because a rewrite leaves behind the superseded copies of objects that earlier edits left in it.

What happens to a signed document?

Its signature stops being valid, and there is no way round that. A signature covers the exact bytes of the file it was applied to, so any change at all — by any program, including the one that signed it — invalidates it. That is the whole point of a signature. This tool writes a new file, notices when the original was signed, and says so on the results. Keep your original: it is still the signed one.

Are my documents or passwords uploaded anywhere?

No. The file is read, decrypted and written by your own browser on your own hardware, and the password goes into a key derivation running in this tab. There is no server side to this tool, and the page's Content-Security-Policy names every address it may contact — none of them belongs to this site. The simplest way to satisfy yourself is to unplug from the network and use the page anyway.

How do I know the protection is really gone?

Because the tool checks, on your machine, and shows you the result. When the file has been written it is handed back to the same reader that the other PDF tools on this site use — one that refuses an encrypted document outright — and it has to open with no password and come back with the same number of pages. If it does not, the run is reported as failed and nothing is offered for download. You can check it yourself afterwards too: open it in any reader and look at the document properties, where every permission should now read Allowed.

Is there a size limit, and does it cost anything?

There is no limit written into the tool. The limit is your own machine: the document is held in memory while it is worked on, so a laptop will take a few hundred megabytes without complaint and will struggle somewhere above that. It is free, there is no account, no sign-in and no trial. The site carries advertising, which is what pays for it; the ads are not given anything about your documents.

Does it work offline?

Yes. Load the page once, then disconnect from the internet and it keeps working. That is also the simplest way to prove nothing is being uploaded: a tool that sent your document away to be unlocked would stop the moment you unplugged.