The fastest way depends on what you already have

You can password-protect a PDF in three ways: using built-in software on your computer, using an online tool, or using the original program that created the document. On Windows, you open the PDF in Microsoft Edge or Adobe Reader and export it with a password. On Mac, you use Preview. Online tools like Smallpdf or ILovePDF work from any browser without installing anything. The method you choose depends on whether you want to keep the file on your computer, whether you have Adobe Acrobat (the paid version), and how often you need to do this.

All three methods produce the same result: a PDF that requires a password to open. The person who receives the file will see a password prompt before they can view it. You can also set a separate password that lets someone open the file but prevents them from printing, copying text, or editing it — though this second password is easier to remove and should not be treated as serious security.

Key Takeaways

  • Windows users can password-protect a PDF by opening it in Microsoft Edge, selecting Print, choosing "Print to PDF", and setting a password in the dialog that appears.
  • Mac users can open a PDF in Preview, go to File > Export, choose PDF format, and enter a password in the security options.
  • Online tools like Smallpdf, ILovePDF, or PDF Candy work on any device and require no software installation, though your file is temporarily uploaded to their servers.
  • A password that prevents opening is different from a password that prevents editing or printing — the first is much stronger security.
  • Adobe Acrobat (the paid subscription) offers the most control over what each password can do, but free methods work for most situations.

Password-protecting a PDF on Windows using Microsoft Edge

Microsoft Edge is built into Windows 10 and 11 and can add a password to any PDF without extra software. Open the PDF file in Edge by right-clicking it and selecting "Open with" > "Microsoft Edge". Once the file is open, press Ctrl+P or click the three-dot menu and select Print.

In the Print dialog, change the printer dropdown from your physical printer to "Print to PDF" or "Microsoft Print to PDF". Click the "More settings" link at the bottom left. Under "Security", check the box next to "Encrypt with password". A new field will appear where you enter the password. Type it twice to confirm, then click Print. Choose where to save the new password-protected PDF, and you are done.

The resulting file will prompt for a password every time someone opens it. This method works on any PDF, takes about two minutes, and does not require any paid software.

Password-protecting a PDF on Mac using Preview

Preview is the default PDF viewer on Mac and has password protection built in. Open the PDF in Preview (usually by double-clicking it), then go to File in the menu bar and select Export.

A save dialog will appear. Make sure the file format dropdown at the bottom shows "PDF". Below that, you will see a checkbox labeled "Encrypt". Check that box. A password field will appear below it. Enter your password twice, then click Save. The new file will be password-protected.

Like the Windows method, this creates a new file that requires a password to open. The original file remains unchanged.

Using an online PDF tool if you do not want to install software

If you do not want to use your computer's built-in tools, online services like Smallpdf, ILovePDF, or PDF Candy can add a password in your web browser. Go to the website, look for an option like "Protect PDF" or "Add Password", and upload your file. Enter the password you want, then read the protected version.

The advantage is that you do not need to install anything and the process is usually very straightforward. The disadvantage is that your PDF is temporarily stored on someone else's server. Most of these services delete files after a few hours, but if your document contains sensitive information, this may not feel safe to you. Read the privacy policy on the site before uploading.

These tools are free for single files, though some charge for batch processing or faster uploads. They work on Windows, Mac, and Linux equally well.

Using Adobe Acrobat if you need more control

Adobe Acrobat (the paid subscription, not the free Adobe Reader) offers the most detailed password options. You can set one password to open the file and a different password to allow printing or copying. Open the PDF in Acrobat, go to File > Properties, and select the Security tab. Choose "Password Security" from the dropdown, then set your passwords and choose which actions to restrict.

This level of control is useful if you are sharing a document with multiple people who need different permissions — for example, letting one person view and print but not edit, while another person cannot print at all. For most home users, the free methods above are sufficient.

What to do if you forget the password

If you set a password to open the file and forget it, there is no built-in way to recover it. The password cannot be reset or bypassed by the software that created it. You would need to start with an unprotected copy of the original file if you have one.

If you set a password that prevents printing or editing but allows opening, that password can be removed more easily using free online tools, because it is stored as metadata rather than encryption. This is why the "open password" is considered real security and the "restrictions password" is not.

To avoid this problem, store your passwords in a password manager like Bitwarden, 1Password, or the password manager built into your browser. This way you have a record of what you set without having to remember it.

Frequently Asked Questions

Can someone remove the password I set?

A password that prevents opening the file cannot be removed without the password itself. A password that only prevents printing or editing can be removed using free online tools, so it should not be treated as real security. If you need serious protection, use the open password, not the restrictions password.

Does password-protecting a PDF change the file size?

No, the file size stays roughly the same. The password is added as encryption, not as extra content. The file may be a few kilobytes larger depending on the encryption method, but the difference is not noticeable.

Can I password-protect a PDF on my phone?

Yes, but it depends on your phone and what app you use. On iPhone, you can use the Files app to open a PDF and look for export or share options that include password protection. On Android, apps like Adobe Reader or Smallpdf can add passwords. The process is similar to the online method — upload, set password, read.

What if the PDF is already password-protected and I want to change the password?

You need the original password first. Open the file, then export or print it to a new PDF using one of the methods above with a different password. You cannot change a password without knowing the current one.

Is password protection enough to keep a PDF private?

A password prevents someone from opening the file by accident or casually. It does not prevent someone with technical skill from attempting to crack it, especially if the password is weak. For highly sensitive documents, password protection should be one layer of security, not the only one — also control who you send the file to and consider deleting it after the recipient no longer needs it.