
How to Unlock a Password-Protected PDF

Michael Foster
Content Creator & Tutorial Expert
Unlocking a PDF you have the password for is straightforward, but dealing with forgotten passwords requires different approaches. This guide covers legitimate methods for unlocking PDFs in 2026.
Table of Contents
Unlocking a password-protected PDF is a common task, but it comes with important legal and ethical considerations. This guide focuses on legitimate scenarios — unlocking PDFs you own, have permission to access, or have forgotten the password for. We do not cover methods for cracking passwords you do not have the right to access.
Understanding PDF Password Types
Before attempting to unlock a PDF, it is important to understand the two types of PDF passwords:
Document Open Password (User Password)
This password is required to open and view the PDF. Without it, the file cannot be opened at all. If you do not have this password, you cannot unlock the PDF through legitimate means — you would need to attempt password recovery (see below).
Permissions Password (Owner Password)
This password controls what users can do with the PDF — print, copy, edit, etc. The PDF can be opened without this password, but certain actions are restricted. If you can open the PDF but cannot print or copy, the permissions password is in effect.
Which Type Is Locking You Out?
- Cannot open the PDF at all: You need the document open password.
- Can open but cannot print/copy/edit: You need the permissions password.
Scenario 1: You Have the Password
If you know the password and just want to remove it for convenience, the process is simple.
Method 1: Remove Password in Adobe Acrobat Pro
- Open the PDF in Acrobat Pro (enter the password when prompted).
- Go to File > Properties > Security.
- Change "Security Method" to "No Security."
- Click "OK" and confirm.
- Save the document.
The saved PDF no longer requires a password to open.
Method 2: Remove Password Online
- Upload the PDF to an online PDF unlock tool.
- Enter the password when prompted.
- The tool removes the password and provides a download.
- Download the unlocked PDF.
Method 3: Remove Password with qpdf (Command Line)
qpdf --decrypt --password=your_password protected.pdf unlocked.pdfThis creates a new PDF without password protection. You need the password for this to work.
Method 4: Remove Password with Ghostscript
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOwnerPassword=your_password -sOUTPUTFILE=unlocked.pdf protected.pdfMethod 5: "Print to PDF" Trick
If you can open the PDF but do not have desktop software:
- Open the PDF in your browser or PDF viewer (enter the password).
- Go to File > Print.
- Choose "Save as PDF" or "Print to PDF" as the printer.
- Save the new PDF.
The new PDF typically does not have the password. This works for the document open password but may not remove permissions restrictions.
Scenario 2: You Forgot the Password
If you own the PDF but have forgotten the password, you can attempt password recovery. This is a time-consuming process and is not guaranteed to succeed.
Password Recovery Methods
#### 1. Try Common Passwords
Before attempting technical methods, try passwords you commonly use. Think about when you created the PDF and what password you might have used at that time. Try:
- Your usual passwords
- Birthdays, anniversaries
- Pet names, street names
- Common words related to the document content
- Simple sequences (1234, password, etc.)
#### 2. Use a Password Manager
If you use a password manager (1Password, Bitwarden, KeePass, etc.), search it for "pdf," "document," or the filename. You may have stored the password when you created it.
#### 3. Dictionary Attack
A dictionary attack tries every word in a dictionary as the password. This works if the password is a common word. Tools like pdfcrack can perform dictionary attacks:
pdfcrack -f protected.pdf -w wordlist.txt#### 4. Brute Force Attack
A brute force attack tries every possible combination of characters. This can take a very long time depending on password length and complexity. For AES-256 encrypted PDFs, brute force is practically impossible for passwords longer than a few characters.
pdfcrack -f protected.pdf#### 5. Specialized Recovery Tools
Commercial tools like Passware, Elcomsoft, and others offer advanced password recovery with GPU acceleration. These tools are expensive but can be effective for shorter passwords.
Realistic Expectations for Password Recovery
- Short, simple passwords (4–6 characters, common words): May be recoverable in minutes to hours.
- Medium passwords (7–10 characters, mixed): May take days to weeks.
- Strong passwords (12+ characters, mixed): Practically impossible to recover with current technology.
If the password is strong and you cannot remember it, the document is effectively permanently locked. This is why storing passwords in a password manager is so important.
Scenario 3: Removing Permissions Restrictions
If you can open the PDF but cannot print, copy, or edit, you can remove these restrictions.
Method 1: Using qpdf
qpdf --decrypt restricted.pdf unrestricted.pdfIf the PDF has only a permissions password (no open password), qpdf can remove the restrictions without needing the password.
Method 2: Using Online Tools
Many online PDF unlock tools can remove permissions restrictions without the password. Upload the PDF, and the tool removes the restrictions.
Method 3: Browser Print-to-PDF
- Open the PDF in a browser.
- Print to PDF.
The resulting PDF often has the restrictions removed.
Legal and Ethical Considerations
When It Is Legitimate to Unlock a PDF
- You created the PDF and forgot the password.
- You were given the password and want to remove it for convenience.
- You own the document and want to remove restrictions.
- You have explicit permission from the document owner.
When It Is Not Legitimate
- You do not own the document and do not have permission.
- You are trying to bypass copyright protection.
- You are trying to access confidential information you are not authorized to see.
- You are trying to remove watermarks or attribution from someone else's work.
Removing password protection from a document you do not own or have permission to access may violate copyright law, terms of service, or other legal agreements.
Tips for Avoiding Password Problems
Use a Password Manager
Store every PDF password in a password manager. This eliminates the risk of forgetting passwords. Most password managers let you add notes to entries, so you can record what the password is for.
Use Consistent Passwords for Low-Security Documents
For documents that need protection but are not highly sensitive, use a consistent password that you can remember. For highly sensitive documents, use a unique, strong password stored in a password manager.
Keep an Unlocked Backup
If you password-protect a document, keep an unlocked copy in a secure location (encrypted drive, secure cloud storage). This way, if you forget the password, you have a backup.
Share Passwords Through a Different Channel
When sharing a password-protected PDF, send the password through a different channel than the document (e.g., email the PDF, text the password). This ensures that even if the email is intercepted, the PDF remains protected.
Conclusion
Unlocking a PDF when you have the password is a simple process with many available methods. Forgetting the password is a more serious problem — recovery is possible for weak passwords but practically impossible for strong ones. The best strategy is prevention: use a password manager, keep backups, and share passwords through separate channels. Always ensure you have the legal right to unlock a document before attempting to do so.
Sources & References
About the Author

Michael Foster
Content Creator & Tutorial Expert
Michael creates in-depth tutorials and guides that make complex tools accessible to everyone. He has a passion for teaching and clear communication.
Frequently Asked Questions
Can I unlock a PDF without the password?
How long does it take to crack a PDF password?
Is it legal to unlock a password-protected PDF?
Can I remove restrictions from a PDF I can open but cannot edit?
Start working smarter today
Join 500,000+ users who trust VisualDocs for their daily image and PDF workflows.
