The fastest way depends on what software you already have
You can password-protect a PDF in three ways: using built-in tools on your computer, using free online converters, or using paid PDF software. On Windows, you can do it through Microsoft Edge or a free tool like PDFtk. On Mac, Preview (which comes with your system) can add passwords in under a minute. Online tools like Smallpdf or ILovePDF work from any device but require uploading your file to their servers.
The method you choose depends on whether you want to keep the file on your computer, whether you trust uploading it online, and how often you need to password-protect PDFs. If you only do this once or twice a year, an online tool is simplest. If you do it regularly or handle sensitive documents, a desktop tool is faster and keeps your files private.
Key Takeaways
- On Mac, open the PDF in Preview, click Tools, then Set Password to add protection in one step.
- On Windows, Microsoft Edge can save a PDF with a password by printing to PDF and selecting password options.
- Online tools like Smallpdf upload your file to their servers, so avoid them for highly sensitive documents.
- Password-protecting a PDF prevents opening it without the password, but does not prevent printing or copying if you do not set those restrictions.
- Most free desktop tools work only on Windows; Mac users should use Preview, which is already installed.
Password protecting a PDF on Mac using Preview
Preview is the easiest route on Mac because it is already installed and takes about 60 seconds. Open the PDF in Preview (right-click the file, select Open With, then Preview). Click Tools in the menu bar at the top, then select Set Password. A dialog box appears asking you to enter a password twice to confirm it.
After you set the password, Preview asks whether you want to require the password to open the document or to copy text and print. You can choose one, both, or neither. If you select both, anyone opening the file must enter the password, and they cannot copy text or print without it. Click OK, and Preview saves the file with the password applied. The original file is replaced, so make a backup first if you want to keep an unprotected version.
Password protecting a PDF on Windows using Microsoft Edge
Windows does not come with a built-in PDF password tool like Mac does, but Microsoft Edge (which comes with Windows 10 and later) can do it through the print-to-PDF function. Open the PDF in Edge, then press Ctrl+P or click the menu button (three dots) and select Print. In the printer dropdown, select Print to PDF.
Click More Settings to expand additional options. Scroll down until you see a Security section with a checkbox for Password. Check that box and enter your password. Click Save, choose where to save the file, and Edge creates a new password-protected PDF. The original file remains unchanged. This method works well if you already use Edge, but it does not give you granular control over whether printing or copying is allowed — the password protects opening only.
Using free desktop tools on Windows
If you want more control than Edge offers, PDFtk (a free command-line tool) and QPDF (another free tool) both work on Windows, but they require some comfort with typing commands. A more user-friendly free option is LibreOffice Draw, which comes with the LibreOffice suite. Open the PDF in LibreOffice Draw, go to File, then Export as PDF. A dialog appears with a Security tab where you can set an open password and a permissions password (which controls printing and copying separately).
Another straightforward free option is Ghostscript paired with a graphical interface like GSView, though setup is more involved than LibreOffice. For most people, if Edge does not give you the control you need, LibreOffice Draw is the simplest free desktop alternative on Windows.
Using online PDF tools
Websites like Smallpdf, ILovePDF, and PDF Candy let you upload a PDF, set a password, and read the protected version without installing anything. The process is straightforward: go to the site, click the upload button, select your PDF, enter your desired password, and click the button to process. Within seconds, you can read the password-protected file.
The trade-off is privacy. Your file is uploaded to their servers, processed, and (according to their privacy policies) deleted after a set time — usually 24 hours. If your PDF contains sensitive information like medical records, financial statements, or personal data, uploading it to a third-party server carries risk, even if the company deletes it later. For non-sensitive PDFs or when you need a quick solution on a device where you cannot install software, online tools work well. For confidential documents, a desktop tool is safer.
Understanding password types and what they actually protect
When you password-protect a PDF, you are usually setting an open password, which prevents anyone from opening the file without entering the password. Some tools also let you set a permissions password, which allows the file to open without a password but restricts actions like printing, copying text, or editing.
It is important to understand that PDF password protection is not encryption in the military sense. Someone with technical knowledge and the right tools can remove a permissions password (the one that prevents printing or copying) relatively easily. An open password is stronger but still not unbreakable. If you need serious security for highly sensitive documents, password-protecting a PDF is a reasonable first step, but it should not be your only protection. Consider encrypting the entire file or folder using your operating system's built-in encryption (BitLocker on Windows, FileVault on Mac) for documents that require high security.
Recovering access if you forget the password
If you set an open password and forget it, there is no official way to recover it. The password cannot be reset or bypassed through legitimate means. This is by design — if passwords could be easily removed, the protection would be useless. Some online services claim to crack PDF passwords, but most are scams or malware. Your best option is to keep a record of the password in a find location, such as a password manager like Bitwarden or 1Password.
If you set only a permissions password (allowing the file to open without a password but preventing printing or copying), some free tools can remove that restriction. However, if you set an open password, you will need the password to access the file at all. Always test your password on a copy of the file before relying on it, and store the password somewhere you can retrieve it later.
Frequently Asked Questions
Can I password protect a PDF that is already password protected?
Yes. Open the protected PDF (you will need to enter the existing password), then follow the steps for your operating system to add a new password. The new password replaces the old one. If you forget the new password, you cannot recover it, so make sure you write it down or store it in a password manager.
Does password protecting a PDF prevent someone from printing it?
Only if you set a permissions password in addition to an open password. An open password (which prevents opening the file) does prevent printing because the file cannot be opened at all. A permissions password alone allows opening but blocks printing. Different tools offer different levels of control, so check what options your chosen method provides.
Is it safe to upload my PDF to an online tool?
Most reputable online tools delete files within 24 hours and use encryption during transfer. However, uploading any document to a third-party server carries some risk. For sensitive documents like tax returns, medical records, or legal agreements, using a desktop tool keeps the file on your computer. For routine documents, online tools are generally safe and convenient.
What is the difference between Preview on Mac and Edge on Windows?
Preview is built into Mac and offers both open and permissions passwords in one dialog. Edge on Windows uses the print-to-PDF method and protects opening only, not printing or copying. If you need granular control on Windows, LibreOffice Draw offers more options than Edge.
Can I remove a password from a PDF I created?
Yes. Open the file with the password, then follow the same steps you used to add the password — but leave the password field blank or uncheck the password option. On Mac Preview, open the file, go to Tools, select Set Password, and click OK without entering a new password. On Windows Edge, print to PDF again without selecting the password option. This removes the protection from the file.