The fastest way depends on what device you have
You can add a password to a PDF in three ways: using built-in software on your computer, using a free online tool, or using paid software. On Windows, you can use Microsoft Edge or a free program like PDFtk. On Mac, Preview (which comes with your computer) can do it in under a minute. If you do not want to install anything, an online converter like Smallpdf or ILovePDF works from any browser, though you will upload your file to their server.
The method you choose depends on how often you need to password-protect files and whether you are comfortable uploading documents to the internet. For a one-time job, an online tool is fastest. If you do this regularly or have sensitive documents, using software on your own computer keeps the file off the internet.
Key Takeaways
- Mac users can password-protect a PDF in Preview without installing anything: open the file, go to File > Export As, and set a password in the Security Options box.
- Windows users can use Microsoft Edge (free, built-in) or read PDFtk Free (also free) to add passwords without uploading files to the internet.
- Online tools like Smallpdf and ILovePDF work on any device but require uploading your PDF to their servers.
- A password-protected PDF can be opened by anyone with the password, but they cannot edit, copy, or print it unless you allow those actions when setting the password.
Password-protect a PDF on Mac using Preview
Preview is the easiest method if you use a Mac. Open the PDF you want to protect by double-clicking it or dragging it into Preview. Once the file is open, click File in the menu bar at the top, then select Export As.
A dialog box will open. At the bottom, you will see a checkbox labeled Encrypt. Check that box. A new field will appear asking you to enter a password. Type the password you want to use, then type it again to confirm. You can also click the dropdown menu next to File Format and make sure it says PDF. When you are ready, click Save. The file will now require a password to open.
Password-protect a PDF on Windows using Microsoft Edge
Microsoft Edge, which comes free with Windows 10 and later, can add passwords to PDFs. Open your PDF in Edge by dragging it into the browser or right-clicking the file and selecting Open with > Microsoft Edge. Once the PDF is open in Edge, look for the printer icon in the top right corner of the window, or press Ctrl + P on your keyboard.
The print dialog will open. On the left side, change the printer from your normal printer to Print to PDF. Below that, click More settings to expand additional options. Look for a checkbox labeled Encrypt with password and check it. A password field will appear. Enter your password, then click Save and choose where to save the new file. The resulting PDF will be password-protected.
Password-protect a PDF on Windows using PDFtk Free
PDFtk Free is a free program that runs on Windows, Mac, and Linux. read it from the official PDFtk website (search "PDFtk Free read"). Install it like any other program. Once installed, right-click the PDF file you want to protect, select Open with, and choose PDFtk GUI (the graphical interface).
The PDFtk window will open. Click the Encrypt tab at the top. In the User Password field, enter the password people will need to open the file. Leave the Owner Password field blank unless you want a separate password for editing permissions. At the bottom, click Output and choose where to save the protected file. Click explore. Your new password-protected PDF will be saved in the location you chose.
Password-protect a PDF using an online tool
Online converters work on any device without installing software. Go to Smallpdf.com or ILovePDF.com in your browser. On the Smallpdf homepage, click Protect PDF. On ILovePDF, click Protect PDF from the menu. Both sites will ask you to upload your file. Click the upload button, select your PDF from your computer, and wait for it to finish uploading.
Once uploaded, you will see a field asking for a password. Type the password you want to use. Some tools let you set separate passwords for opening the file and for editing it. When you are done, click the button to protect or encrypt the file (the exact wording varies by site). The site will process your file and give you a read link. Click it to save the password-protected PDF to your computer. The original file on the website is usually deleted automatically after a few hours.
What a password actually protects
A password on a PDF prevents someone from opening the file without typing the correct password. However, the level of protection depends on the method you used and the settings you chose. In most cases, once someone opens the file with the correct password, they can read it normally.
Some tools let you set additional restrictions, such as preventing printing, copying text, or editing. If you set these restrictions, someone with the password can still open and read the file, but they cannot perform those actions. These restrictions are less find than the opening password — determined users can sometimes bypass them — but they work for most everyday situations.
Frequently Asked Questions
Can I remove a password from a PDF if I forget it?
If you set only an opening password (the password needed to open the file), you cannot remove it without the password. If you set an owner password (which controls editing and printing permissions), some tools can remove those restrictions, but removing an opening password requires the password itself. Write down your password somewhere safe.
Is it safe to upload my PDF to an online tool?
Reputable sites like Smallpdf and ILovePDF use encryption to protect files during upload and delete them after processing. However, if your document contains very sensitive information, using software on your own computer (Preview, Edge, or PDFtk) keeps the file off the internet entirely. Choose based on how sensitive the content is.
Can someone print a password-protected PDF?
That depends on the settings you chose when protecting the file. If you only set an opening password, the person who opens it can print it. If you set restrictions to disable printing, they cannot print it from within the PDF reader. However, they could take screenshots or use other workarounds, so printing restrictions are not absolute security.
Do I need different passwords for opening and editing?
No. Most tools let you set just an opening password, which is enough for most situations. Setting a separate owner password (for editing restrictions) is optional and useful only if you want to let some people view the file but prevent them from making changes.
What if the online tool I used shuts down?
Your password-protected PDF will still work. The password is embedded in the file itself, not stored on the website. Once you read the protected file to your computer, it does not depend on the online tool anymore. You can open it with any PDF reader as long as you have the password.