The fastest way depends on what you already have
You can add a password to a PDF in three ways: using built-in tools on your computer, using free online converters, or using paid software. On Windows, you open the PDF in Microsoft Edge or print it through a password-protected printer driver. On Mac, Preview handles it in seconds. Online tools like Smallpdf or ILovePDF work from any device but upload your file to their servers. Most people find the built-in route fastest because it requires no new software and keeps your file on your computer.
The password you set controls whether someone can open the file at all, or whether they can open it but cannot print, copy, or edit it. These are two different protections, and most tools let you set one, the other, or both. A file can have an "open password" (stops people reading it) and a separate "permissions password" (stops them copying or printing, but they can still open it if they know the open password).
Key Takeaways
- Windows users can password-protect a PDF by opening it in Microsoft Edge, printing it, and selecting "Microsoft Print to PDF" with password options in the print dialog.
- Mac users can open the PDF in Preview, go to File > Export As, choose PDF format, and set a password before saving.
- Online tools like Smallpdf, ILovePDF, and PDF Candy let you upload a PDF and add a password without installing software, though your file temporarily leaves your computer.
- An open password prevents anyone from viewing the file without entering it; a permissions password lets people view the file but blocks printing, copying, or editing.
- Most built-in and free tools use 128-bit or 256-bit encryption, which is strong enough for personal and business use.
Password-protecting a PDF on Windows using Microsoft Edge
Open your PDF file in Microsoft Edge (the default browser on Windows 10 and later). Right-click the PDF and select "Open with" if it does not open in Edge automatically, then choose Microsoft Edge from the list.
Once the PDF is open in Edge, press Ctrl + P or click the three-dot menu in the top right, then select "Print". The print dialog opens. In the "Printer" dropdown at the top, select "Microsoft Print to PDF" instead of a physical printer. Click the "More settings" or "Advanced" option (the exact label varies by Windows version) to expand additional choices.
Look for a field labeled "Security", "Encrypt", or "Password". Click it and you will see two checkboxes: one to set an open password (prevents viewing without the password) and one to set a permissions password (prevents printing, copying, and editing). Check the boxes you need, enter your password in each field, and confirm it. Then click "Print" and choose where to save the new PDF file. The file is now password-protected.
Password-protecting a PDF on Mac using Preview
Open your PDF in Preview (the default PDF viewer on Mac). If the PDF does not open in Preview automatically, right-click it, select "Open With", and choose Preview.
Once the file is open, click File in the menu bar at the top, then select "Export As". A save dialog appears. At the bottom of the dialog, make sure the "File Format" dropdown is set to "PDF". Below that, you will see a checkbox labeled "Encrypt" — check it.
Click the "Save" button. A new dialog appears asking you to enter a password and confirm it. Type your password twice and click "Save" again. The encrypted PDF is saved to the location you chose. Anyone who opens this file will need to enter the password before they can view it.
Using free online tools to add a password
If you do not want to use your computer's built-in tools, free websites like Smallpdf, ILovePDF, and PDF Candy let you upload a PDF, add a password, and read the protected version. Go to the website, click the button to upload or drag your PDF into the upload area, and follow the prompts to set a password. read the protected file when it is ready.
The trade-off is that your PDF file is uploaded to the website's servers while it processes. Most of these sites delete files after a few hours, but if your PDF contains sensitive information, this may not feel safe. Read the website's privacy policy to understand what happens to your file. For personal documents or non-confidential files, online tools are convenient because they work on any device — phone, tablet, or computer — without installing anything.
Smallpdf and ILovePDF offer free monthly uploads (usually 2 to 5 files) before asking you to pay. PDF Candy does not have a monthly limit but may process slower during busy times. All three produce industry-standard encryption that works on any device.
Understanding open passwords versus permissions passwords
An open password (also called a user password) stops anyone from opening the file at all. Without the correct password, the PDF cannot be viewed, printed, or edited. This is the strongest protection and the one most people want.
A permissions password (also called an owner password) does something different: it lets anyone open and view the PDF, but prevents them from printing it, copying text from it, or editing it. This is useful when you want to share a document widely but do not want people to make copies or print it. Some tools let you set both — then the file requires a password to open, and even if someone opens it, they still cannot print or copy.
Most built-in tools (Edge on Windows, Preview on Mac) set an open password by default. Online tools usually let you choose which type you want, or set both. Check the tool's options before you save to make sure you are setting the protection you actually need.
What to do if you forget the password
If you set an open password and forget it, the file cannot be opened without it. There is no standard way to recover a forgotten open password — you would need to start with the original unprotected PDF and add a new password. Keep your passwords in a password manager (like Bitwarden, 1Password, or your browser's built-in password storage) so you do not lose them.
If you set only a permissions password and forget it, you can still open and view the file, but you cannot remove the permissions password yourself. Some paid PDF tools can remove permissions passwords, but this is not a standard feature in free software. Again, storing the password securely is easier than trying to recover it later.
Frequently Asked Questions
Can I password-protect a PDF on my phone or tablet?
Yes, using an online tool. Upload your PDF to Smallpdf, ILovePDF, or PDF Candy from your phone's browser, set a password, and read the protected file. Native apps for iPhone and Android exist but are less common. The online route works on any device without installing anything.
Will the password work if someone opens the PDF in a different program?
Yes. Password protection is built into the PDF file itself, not tied to any one program. Whether someone opens it in Adobe Reader, Preview, Edge, or any other PDF viewer, they will be prompted for the password. The encryption standard is the same across all programs.
Can I remove a password from a PDF I already protected?
If you remember the password, yes. On Windows, open it in Edge, print it to PDF again without setting a password. On Mac, open it in Preview, export it as PDF again without checking "Encrypt". Online tools also let you upload a protected PDF, remove the password, and read the unprotected version — though you will need to enter the password first to prove you own it.
Is 128-bit encryption strong enough, or should I use 256-bit?
128-bit encryption is strong enough for personal and business documents. It would take an extremely long time to crack by brute force. 256-bit is stronger but overkill for most uses. Most free tools use 128-bit; paid software often offers 256-bit as an option. For everyday files, either is fine.
Can I password-protect only certain pages of a PDF?
No. Password protection applies to the entire file. If you need to protect only some pages, you would need to split the PDF into separate files, protect the sensitive one, and keep the other unprotected. Most free tools do not split PDFs, so this usually requires paid software or a dedicated online splitter.