How to remove a password from a PDF
- Drop your locked file on the box under Choose your locked PDF, or click it to browse. The tool checks it at once and says whether a password is needed.
- Type the password into the PDF password field. Use Show to check for typos, because passwords are case sensitive.
- Click Remove password. A correct password unlocks the file in a second or two. A wrong one shows an error and saves nothing.
- Click Download unlocked PDF. The copy keeps your file name with
-unlockedadded, so the original stays untouched.
How the unlocking works
A protected PDF scrambles every text string and content stream with a key derived from the password you type, using RC4 (40 or 128 bit) or AES (128 or 256 bit), depending on how the file was saved. The format stores two kinds of password: an open (user) password that is required to view the file, and an owner (permissions) password that only limits printing, copying and editing.
The tool checks your password against the values stored in the file, decrypts each piece, and saves the result without the encryption entry. It is not a cracker: with no correct password there is no key to use. Because pages are not re-drawn, text stays selectable, and links, bookmarks and form fields are kept. The encryption rules are defined in the PDF 2.0 standard, ISO 32000-2, section 7.6. The decryption code is the open-source @cantoo/pdf-lib library.
Worked example
Click Try a sample locked PDF. The tool loads sample-locked.pdf (AES-256) and fills in its password, demo1234. Press Remove password and it reports "Pages: 1, Size: 1.4 KB. The open password was removed." and offers sample-locked-unlocked.pdf. Open that file in any viewer and it opens with no prompt, and the heading "Sample locked PDF" can be selected and searched.
Limits and edge cases
- A forgotten password cannot be recovered here. The file needs the password to be decrypted.
- If the PDF only has an owner password, it opens without one. The tool says so and the button changes to Remove restrictions.
- Saving rewrites the whole file, so a digital signature in it will no longer validate.
- Certificate-based (public-key) encryption is not supported. Only password protection is.
- The file is held in memory while it is processed, so very large files can fail on phones.
Frequently asked questions
Can I remove a PDF password if I forgot it?
No. This tool only unlocks files when you type the correct password, because decrypting needs the key the password produces. It never guesses or bypasses passwords. If it is lost, ask whoever made the file, or check the email or statement that came with it, since banks often use a number such as the last four digits of an account.
What is the difference between an open password and an owner password?
An open (user) password is needed to view the PDF at all. An owner (permissions) password lets anyone view the file but limits printing, copying text or editing. If your file only has an owner password, this tool detects that it opens without a password and offers to remove the restrictions.
Will the PDF look the same after the password is removed?
Yes. The pages are not re-drawn: each piece of the file is decrypted and saved as it was, so text stays selectable and links, bookmarks and form fields are kept. Only a digital signature is affected, because rewriting the file breaks the signature check.
Is it legal to remove the password from a PDF?
Unlocking your own document, or one you were given the password for, is ordinary use. Do not unlock files you are not allowed to open. This page is general information, not legal advice.
After unlocking, shrink the file with the PDF Compressor, join it to others with the PDF Merger, or pull out its words with PDF to Text.
Sources: ISO 32000-2 (PDF 2.0), PDF Association, section 7.6 Encryption; PDF, encryption and signatures (Wikipedia).