You can password-protect a PDF using built-in tools on Windows, Mac, or online — the method depends on what software you already have
Password-protecting a PDF means adding encryption so the file won't open without the correct password. You don't need to buy special software; most computers come with what you need. On Windows, you can use Microsoft Edge or print-to-PDF with password protection. On Mac, Preview handles it natively. If you prefer not to install anything, free online tools like Smallpdf or ILovePDF add passwords in your browser.
The choice between these methods comes down to one question: do you want to protect the PDF from being opened at all, or just from being edited? Owner passwords prevent editing, copying, and printing but let anyone open the file. User passwords lock the file completely — nobody opens it without the password. Most people want the user password, which requires the password at the moment someone tries to open the file.
Key Takeaways
- Windows users can password-protect a PDF by opening it in Microsoft Edge, printing to PDF, and selecting password options in the print dialog.
- Mac users can open any PDF in Preview, go to File > Export, choose PDF format, and enter a password in the security options.
- Online tools like Smallpdf, ILovePDF, and Sejda let you upload a PDF and add a password without installing software, though your file travels to their servers.
- A user password locks the file completely; an owner password only prevents editing and printing but lets anyone open it.
- After you password-protect a PDF, test it by closing and reopening the file to confirm the password works.
Password-protecting a PDF on Windows using Microsoft Edge
Microsoft Edge, which comes with Windows 10 and later, can add a password when you print a PDF to a new file. Open your PDF in Edge, then press Ctrl + P to open the print dialog. Under "Printer," select "Print to PDF" from the dropdown menu.
Click "More settings" or look for an option labeled "Security" or "Options" — the exact wording varies by Windows version. You should see a checkbox for "Encrypt with password" or similar. Check that box, then click "Save." Windows will prompt you to create a password. Enter it twice to confirm, then choose where to save the new password-protected PDF. The original file remains unchanged.
This method works with any PDF viewer on Windows, not just Edge. If you're using Adobe Reader or another program, you can still print to PDF the same way. The password protection happens during the print-to-PDF step, not in the original program.
Password-protecting a PDF on Mac using Preview
Preview, the built-in Mac image and PDF viewer, has password protection built in. Open your PDF in Preview (or right-click the file, select "Open With," and choose Preview). Go to File in the menu bar, then select Export.
In the export dialog, make sure the file format is set to "PDF" — not JPEG, PNG, or another format. Below the format dropdown, you'll see a "Security Options" button or checkbox. Click it to reveal password fields. Enter your password twice, then click "Save." Preview will save a new password-protected copy of your PDF.
If you don't see a Security Options button, your version of macOS may be older. In that case, you can use the online method described below, or update macOS to access the feature.
Using free online tools to add a password
If you don't want to use your computer's built-in tools, online PDF editors let you upload a file, add a password, and download it back. Smallpdf, ILovePDF, and Sejda all offer free password protection. Go to the website, click "Protect PDF" or "Add Password," then upload your file. Enter the password you want, then download the protected version.
The trade-off is that your PDF file travels to their servers during the process. If the PDF contains sensitive information, read the website's privacy policy first. Most reputable tools delete files after a few hours, but you're trusting them to do so. For highly sensitive documents, the built-in Windows or Mac methods keep everything on your own computer.
Online tools are useful if you're on a computer you don't own (like a library or school computer) or if you're using a phone or tablet. They also work the same way regardless of your operating system.
The difference between user passwords and owner passwords
When you password-protect a PDF, you're usually setting a user password — the password someone needs to open the file at all. This is the strongest protection. Without the password, the file won't open in any PDF reader.
Some tools also let you set an owner password, which is different. An owner password doesn't prevent opening the file; instead, it prevents editing, copying text, or printing. Someone can still open and read the PDF without the owner password, but they can't change it or extract content. Owner passwords are useful if you want to share a document but prevent people from modifying it or copying sections out.
Most people want a user password. If you're using Windows Edge or Mac Preview, you're setting a user password by default. Online tools usually offer both options; read the interface carefully to see which one you're setting.
Testing your password-protected PDF
After you create a password-protected PDF, close it completely and try opening it again. The PDF reader should prompt you for a password before the file opens. If it doesn't ask for a password, the protection didn't apply — try the process again or use a different method.
Test the password by typing it exactly as you created it. Passwords are case-sensitive, so "MyPassword" is different from "mypassword." If you mistype the password, the file won't open. Write down your password somewhere secure (like a password manager) so you don't forget it. If you lose the password, there's no standard way to recover it — you'll need to password-protect the original file again with a new password.
When to use each method
| Method | Best for | Requires |
|---|---|---|
| Windows Edge print-to-PDF | Quick protection on any Windows computer | Windows 10 or later, Microsoft Edge |
| Mac Preview export | Quick protection on any Mac | macOS (recent versions) |
| Online tools (Smallpdf, ILovePDF, Sejda) | Any device, no software installation, or sensitive to what's on your computer | Web browser, internet connection |
Frequently Asked Questions
Can I remove a password from a PDF I already protected?
Yes, but you need the password. Open the protected PDF in your PDF reader, and it will ask for the password. Once it's open, use the same method you used to add the password (Edge print-to-PDF, Preview export, or an online tool) but don't enter a password in the security step. This creates an unprotected copy.
What if I forget the password to my own PDF?
There's no built-in recovery method. You'll need to password-protect the original file again with a new password. If you don't have the original unprotected file, you're locked out. Store passwords in a password manager like Bitwarden or 1Password so you don't lose them.
Does password-protecting a PDF hide the content from being seen?
No. A password only prevents the file from opening without the correct password. Once someone opens it with the password, they can read, copy, and print the content normally — unless you also set an owner password to restrict those actions. If you need to hide content, you'll need to edit the PDF to remove or redact the sensitive text before protecting it.
Can I password-protect a PDF on my phone?
Yes, using an online tool. Upload your PDF to Smallpdf, ILovePDF, or Sejda through your phone's browser, add a password, and download the protected version. Some PDF reader apps for phones (like Adobe Reader) also have password protection built in, but it varies by app.
Is password-protecting a PDF secure?
It's secure enough for casual protection — keeping a document away from accidental access or casual sharing. For highly sensitive files, password protection alone isn't enough. Consider also encrypting your entire device or using a password manager to control who has access to the file itself, not just the password.