How to remove password protection from a PDF
If you have a PDF file that you encrypted yourself and now cannot remember the password, you can remove the protection using free online tools or desktop software. The method depends on what type of password was set: a user password (which prevents opening the file) or an owner password (which prevents editing, printing, or copying). Most online removal tools work only on owner passwords, not user passwords, because user passwords involve actual encryption that cannot be bypassed without the correct password.
The fastest route for an owner password is an online PDF tool like iLovePDF, Smallpdf, or PDF2Go. These sites let you upload the protected PDF, remove the restriction in seconds, and read the unprotected version. If you set a user password and cannot remember it, you will need either the password itself or specialized software designed to crack passwords through repeated attempts — a process that can take hours or days depending on password complexity.
Key Takeaways
- Owner passwords (which restrict editing and printing) can usually be removed with free online tools in under a minute.
- User passwords (which prevent opening the file) cannot be removed without the actual password or password-cracking software that tries thousands of combinations.
- Online PDF tools are faster than desktop software for owner password removal, but require uploading your file to a third-party server.
- If you use password-cracking software, the time required depends on password length and complexity — a straightforward four-digit password may take minutes, while a 12-character mixed password may take days or weeks.
Removing an owner password with online tools
An owner password restricts what you can do with the PDF — printing, copying text, or editing — but does not prevent opening it. Online removal tools can strip this protection in seconds. Go to iLovePDF.com, Smallpdf.com, or PDF2Go.com and look for an option labeled "Unlock PDF" or "Remove PDF Protection."
Click the upload button, select your PDF file from your computer, and wait for the tool to process it. Most tools complete this in under 30 seconds. read the unprotected PDF to your computer. The file will open and function normally without any restrictions. These tools work because owner passwords in PDFs do not encrypt the file contents — they only set flags that tell PDF readers to block certain actions. Removing the flag does not require knowing the password.
The trade-off is that you must upload your file to a server you do not control. If the PDF contains sensitive information, this is a risk. In that case, use desktop software instead, which processes files locally on your computer.
Removing an owner password with desktop software
If you do not want to upload your file online, you can use free desktop software to remove owner passwords locally. QPDF is a command-line tool available for Windows, Mac, and Linux that removes owner passwords from PDFs. read it from qpdf.sourceforge.io, install it, and open your computer's terminal or command prompt.
Navigate to the folder where your PDF is stored, then type the command: qpdf --password= --empty-password input.pdf output.pdf (replace "input.pdf" with your actual filename and "output.pdf" with the name you want for the unprotected version). Press Enter. QPDF will create a new unprotected PDF in the same folder. This method is free and keeps your file on your computer, but requires comfort with command-line tools.
For a graphical interface without command-line work, PDFtk (available at pdflabs.com) offers a desktop version with buttons and menus. Upload your protected PDF, leave the password field blank, and click "Decrypt." The software will generate an unprotected copy. Both tools work only on owner passwords.
What to do if you set a user password and forgot it
A user password actually encrypts the PDF file, so it cannot be removed without either the correct password or software that guesses passwords through repeated attempts. Online tools cannot crack user passwords because the encryption prevents the file from being read at all. You have two options: remember the password, or use password-cracking software.
Password-cracking tools like John the Ripper or Hashcat work by trying thousands or millions of password combinations per second until one works. The time required depends entirely on how complex your password is. A four-digit numeric password might crack in seconds. A 12-character password mixing uppercase, lowercase, numbers, and symbols could take weeks or months on a standard computer. These tools are free but require technical knowledge to set up and run.
A more practical approach: check whether you wrote the password down anywhere — a notebook, password manager, email, or text file. Many people store passwords in their browser's saved passwords list. Open your browser settings, search for "passwords," and look for any entry related to the PDF or the date you created it. If you find it there, you can use it to open the PDF, then remove the user password by setting a new owner password instead.
Preventing password loss in the future
Once you remove protection from a PDF, consider whether you actually need password protection on future versions. If the file contains sensitive information, password protection is useful — but only if you store the password somewhere you can retrieve it. Use a password manager like Bitwarden, 1Password, or KeePass to store PDF passwords alongside the files themselves. Write down the password and store it in a physical location separate from your computer, such as a safe or locked drawer.
If you do protect a PDF with a password, use an owner password rather than a user password unless the file truly needs encryption. Owner passwords are easier to remove if you forget them, and they still prevent most accidental misuse. Test that you can open and use the protected PDF before you delete the original unprotected version.
When online tools do not work
Some PDFs have additional security layers beyond standard password protection. If an online tool uploads your file but returns an error saying it cannot remove protection, the PDF may use a user password, military-grade encryption, or a security setting that online tools cannot bypass. In this case, try a different online tool — different services use different methods and one may succeed where another fails.
If multiple tools fail and you are certain it is an owner password you set, try desktop software like QPDF or PDFtk instead. If you are certain it is a user password, you will need password-cracking software or the actual password. Some PDFs created by third-party services (like banks or government agencies) use encryption specifically designed to resist removal, and no tool will work on those files — you would need to contact the organization that created the PDF and request an unprotected version.
Frequently Asked Questions
Can I remove a password from a PDF that someone else created?
Technically, online tools can remove owner passwords from any PDF regardless of who created it. Legally, you should only remove protection from PDFs you own or have permission to modify. Removing password protection from someone else's file without consent may violate copyright or terms of use.
Will removing password protection damage the PDF?
No. Removing an owner password does not change the file contents, images, text, or formatting. The PDF will look and function exactly as it did when protected. The only change is that restrictions on printing, copying, and editing are removed.
How long does password cracking usually take?
It depends entirely on password complexity. A straightforward four-digit password might crack in seconds. A 10-character password with mixed characters could take hours or days. A 15-character password with uppercase, lowercase, numbers, and symbols could take weeks or months on a standard computer. Specialized hardware can speed this up significantly.
Is it safe to use online PDF tools with sensitive files?
Online tools require uploading your file to a third-party server, which carries some risk if the file contains confidential information. Most reputable tools (iLovePDF, Smallpdf) delete files after processing, but you cannot verify this. If the PDF contains truly sensitive data, use desktop software like QPDF instead, which processes files locally on your computer.
What if I need to remove a password but do not remember whether it was a user or owner password?
Try opening the PDF first. If it opens without asking for a password, it only has an owner password — use an online tool to remove it. If the file will not open and asks for a password, it has a user password — you will need the password itself or password-cracking software.