You have a PDF that requires a password every time you open it, and you want to share it without that barrier. If you are the legitimate owner of the document and know the password, you can remove it using tools already built into your operating system or browser — no need to install dedicated PDF unlockers or pay for a premium application. This article covers safe, legal methods for Windows, macOS, and Linux, and explains why you should never use random online PDF unlockers.
Understanding PDF Passwords
PDFs can have two types of passwords:
- User password (also called “open password”) — required to view the document.
- Owner password (also called “permissions password”) — controls printing, editing, and copying, but does not prevent opening.
To remove a user password, you must know it. If you have lost the password, there is no built-in method to recover it without breaking encryption, which is illegal in most jurisdictions unless you are the original creator. This article assumes you have the password and wish to create a password-free copy for convenience.
Method 1: Use Your Browser’s Print-to-PDF Feature
Every modern browser (Chrome, Edge, Firefox) can open a password-protected PDF if you provide the password, then re-export it without the password using the built-in print dialog.

- Drag the PDF into a browser window or open it via File → Open.
- Enter the password when prompted.
- Press Ctrl+P (Windows/Linux) or Cmd+P (macOS) to open the print dialog.
- Under “Destination” or “Printer”, select Save as PDF (or “Microsoft Print to PDF” on Windows).
- Click Save. The new file will have no password protection.
This method works because the browser decrypts the file in memory and sends the rendered content to the virtual printer. The output is a fresh PDF with no encryption. It also strips any owner password restrictions, so you can edit or print the resulting file freely.
Method 2: macOS Preview
If you use a Mac, the built-in Preview application can remove a user password in a few clicks.
- Open the PDF in Preview and enter the password.
- Go to File → Export… (or press Cmd+Shift+S).
- In the export dialog, uncheck the box labeled Encrypt (if present).
- Choose a location and click Save.
Preview’s export function creates an unencrypted copy. Note that if the PDF was originally created with a user password, Preview will only let you export without encryption after you have entered the password. This method does not require any additional software.
Method 3: Command-Line Tools (Linux & macOS)
For developers who prefer the terminal, qpdf and pdftk are lightweight command-line utilities that can strip passwords. Both are often pre-installed on Linux distributions or easily installable via package managers. On macOS, you can install them with Homebrew (brew install qpdf).
To remove a user password with qpdf:
qpdf --password=YOUR_PASSWORD --decrypt input.pdf output.pdf
If the PDF has only an owner password and you want to remove all restrictions:
qpdf --password=YOUR_PASSWORD --decrypt --suppress-owner-password input.pdf output.pdf
With pdftk:
pdftk input.pdf input_pw YOUR_PASSWORD output output.pdf
These tools perform the decryption locally, so your document never leaves your machine. If you are new to the command line, our guide on Windows CMD commands for ethical hacking provides a foundation for working with similar terminal utilities on Windows.
Method 4: Windows PowerShell (Using iTextSharp or .NET)
Windows users without a browser can use PowerShell with the .NET PdfReader class from iTextSharp (a free library). This requires a one-time download of the library, but no dedicated PDF software. After downloading iTextSharp.dll, run the following script in PowerShell (replace paths and password):
Add-Type -Path "C:pathtoitextsharp.dll"
$reader = New-Object iTextSharp.text.pdf.PdfReader("C:input.pdf", "yourpassword")
$filestream = New-Object System.IO.FileStream("C:output.pdf", [System.IO.FileMode]::Create)
$stamper = New-Object iTextSharp.text.pdf.PdfStamper($reader, $filestream)
$stamper.Close()
$reader.Close()
This approach is more advanced but gives you full control. It does not install a standalone application — just a single DLL that you can delete after use.
What About Online PDF Unlockers?
You will find dozens of websites that claim to remove PDF passwords for free. Using them is a serious security risk. You must upload your document to a third-party server, which means you lose control over your data. Sensitive information — contracts, personal records, proprietary code — could be copied, indexed, or sold. For a blog focused on cybersecurity and digital hygiene, the advice is clear: never upload a password-protected PDF to an unknown online service. The methods above keep the operation entirely on your own machine.
Legal and Ethical Considerations
Removing a password from a PDF that you do not own or for which you lack permission is illegal in most countries under copyright and computer fraud laws. The techniques described here are intended only for documents you have created yourself or have explicit authorization to modify. As a developer or security learner, you should always respect digital rights and use your skills for protection, not circumvention.
After you remove the password, verify the new PDF by opening it in a browser or reader — it should open without any prompt. If you encounter issues, double-check that you typed the password correctly and that the file is not corrupted. For PDFs with owner passwords only, the browser print method or qpdf with the --suppress-owner-password flag works reliably.
