You just received a PDF from a client, opened it for the hundredth time, and typed the same password again. The document is legitimate, you have the password, but there is no good reason to keep the password protection on your local copy. Removing that password does not require buying a commercial tool or installing a sketchy freeware. In fact, you probably already have everything you need on your computer right now.
The five methods below all run on your local machine and require you to know the password. If you don't have the password and don't own the document, removing protection is illegal in most jurisdictions — this guide is for authorized use only.

Why Remove a PDF Password?
Password-protected PDFs serve a purpose during transmission: they keep sensitive content from prying eyes while the file is in transit. Once the file is on your machine, the same password becomes a daily friction point. Automated scripts, batch printing, and document merging all break when a password prompt appears. Removing the password from your local copy streamlines your workflow without sacrificing security — the original encrypted version can stay in your email archive.
Method 1: Using a Web Browser (Chrome, Edge, Firefox)
Modern browsers can open password-protected PDFs natively. Once the document is displayed, the browser’s Print dialog can create an unprotected copy. This method works on Windows, macOS, and Linux without any installation.
- Open the PDF in Chrome, Edge, or Firefox. Enter the password when prompted.
- Press Ctrl+P (Windows/Linux) or Cmd+P (macOS) to open the Print dialog.
- Change the destination printer to Save as PDF (Chrome/Edge) or Print to File (Firefox).
- Click Save and choose a filename. The new PDF will have no password.
This method re-renders the entire document, so complex forms or embedded fonts may lose some fidelity. For simple text-and-image PDFs, it is fast and reliable.
Method 2: macOS Preview (Built-In)
On a Mac, Preview makes it dead simple. No third-party tool needed.
- Open the PDF in Preview. Enter the password.
- Go to File → Export…
- In the export dialog, uncheck the Encrypt checkbox (if it is checked).
- Choose a format — PDF is the default — and click Save.
Preview re-encodes the PDF using the system’s PDF engine. The output is typically smaller and fully editable. This is the cleanest method on macOS.
Method 3: Linux Command Line with qpdf
If you are on Linux, qpdf is often already installed. If not, install it with your package manager:
sudo apt install qpdf # Debian/Ubuntu
sudo dnf install qpdf # Fedora
sudo pacman -S qpdf # Arch
Once installed, run:
qpdf --decrypt --password=yourpassword input.pdf output.pdf
Replace yourpassword with the actual password, input.pdf with the protected file, and output.pdf with the new name. The --decrypt flag tells qpdf to strip all encryption. The resulting file opens without any password prompt.
For batch processing, wrap the command in a loop:
for f in *.pdf; do qpdf --decrypt --password=secret "$f" "unlocked_$f"; done

Method 4: Using pdftk (Cross-Platform)
Pdftk is a classic PDF toolkit that runs on Windows, macOS, and Linux. It is not installed by default, but it is lightweight and available in most package repositories. On Windows, download the installer from the official site. On macOS, use Homebrew: brew install pdftk. On Linux, sudo apt install pdftk.
To remove the password:
pdftk input.pdf input_pw yourpassword output output.pdf
Pdftk preserves the document structure better than browser printing. It handles forms, annotations, and metadata intact. The downside is that pdftk is no longer actively maintained, but it works reliably for basic decryption.
Method 5: Ghostscript (Advanced)
Ghostscript is a powerful PostScript and PDF interpreter. It can decrypt PDFs, but the command is less intuitive. Install Ghostscript via your package manager (sudo apt install ghostscript) or download from the official site.
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sOutputFile=output.pdf
-c .setpdfwrite
-f input.pdf
When Ghostscript encounters a password-protected PDF, it will prompt for the password interactively. Type it and press Enter. The output file will be unprotected. Ghostscript gives you fine-grained control over PDF version and compression, but it is overkill for a simple password removal.
Important Security Considerations
All methods above process the file entirely on your local machine. Never upload a sensitive PDF to an online “unlocker” service — you lose control over your data, and the service could harvest the contents. If you must work with a PDF that contains personally identifiable information, use a local tool from this list.
Also note that these techniques only work if the PDF uses a user password (the password required to open the file). Some PDFs have an owner password that restricts printing or editing but does not prevent opening. Tools like qpdf and pdftk can remove owner restrictions even without knowing the owner password, because the PDF specification allows it. However, doing so may violate the document’s license terms. Always check the copyright or usage agreement before removing owner restrictions.
Final Practical Note
If you routinely handle password-protected PDFs from trusted sources, create a small shell script or a keyboard shortcut that runs qpdf --decrypt. For a one-off file, the browser print method is the fastest and requires zero setup. Whichever method you choose, keep the original encrypted file as a backup until you confirm the decrypted copy is complete and uncorrupted.
