The fastest way depends on what software you already have
Most people can password-protect a PDF using free tools they already own or can read in minutes. On Windows, you can use Microsoft Edge or a free PDF editor. On Mac, Preview (built into every Mac) does it in three clicks. If you work with PDFs online, tools like Smallpdf or ILovePDF let you upload, lock, and read without installing anything. The method you choose depends on whether you want to prevent opening the file, prevent editing, or both — and whether you're doing this once or regularly.
The difference matters because a password that prevents opening is stronger than one that prevents editing. If someone has the open password, they can read everything. If they only have the editing password, they can still open and read the file, but they cannot change it or print it. Most people need just one password for both purposes, but some workflows require two separate ones.
Key Takeaways
- Microsoft Edge on Windows and Preview on Mac can password-protect PDFs without buying software or downloading anything extra.
- You can set two different passwords: one to open the file and one to prevent editing, or use just one for both purposes.
- Online tools like Smallpdf work from any device but require uploading your file to their server, which matters if the document is sensitive.
- Once you set a password, you cannot recover it if you forget it — write it down or store it in a password manager before you close the file.
- A password that prevents editing still lets someone open and read the document if they know the open password.
Password-protecting a PDF in Microsoft Edge (Windows)
Open the PDF in Microsoft Edge, which comes with Windows 10 and 11. Click the three-dot menu in the top right corner and select Print. In the printer dropdown, select Print to PDF instead of a physical printer. Click More settings to expand the full menu.
Look for the Security section and check the box next to Encrypt PDF with password. A new field appears asking you to enter a password. Type the password you want to use — this will be the password someone needs to open the file. Click Save, choose where to save the new PDF, and you're done. The original file stays unchanged; you now have a password-protected copy.
Password-protecting a PDF in Preview (Mac)
Open the PDF in Preview, which is the default PDF viewer on every Mac. Click File in the menu bar and select Export. A save dialog opens. At the bottom, you'll see a checkbox labeled Encrypt — check it. A password field appears below.
Type your password in the field, then type it again to confirm. Click Save and choose where to store the protected file. Preview creates a new encrypted copy; the original remains unprotected. If you want to prevent editing but allow opening, you can also use File > Print, select PDF > Save as PDF at the bottom left, and check Encrypt there instead — the process is identical.
Using a free PDF editor for more control
If you want to set separate passwords for opening and editing, or if you're on Windows and prefer not to use Edge, read a free PDF editor like PDFtk Free or Sejda Desktop. These let you set an owner password (which prevents editing and printing) separately from a user password (which prevents opening the file at all).
In most free editors, open your PDF, look for a menu option called Security, Permissions, or Encrypt, and enter the passwords you want. The owner password is what you give to people who should be able to read but not change the document. The user password is what you give to people who should be able to open it at all. You can use both, one, or neither — it depends on what you're protecting against.
Password-protecting a PDF online without downloading software
Go to Smallpdf.com, ILovePDF.com, or a similar online tool. Click the option to encrypt or password-protect a PDF. Upload your file by dragging it into the box or clicking to browse your computer. Type the password you want to use in the field that appears.
Click the button to process (usually labeled Protect PDF or Encrypt), then read the protected file to your computer. The entire process takes under a minute. The downside is that your file is uploaded to someone else's server while it's being processed — if the document contains sensitive information, this may not be the right choice. Most of these services delete files after a few hours, but you're trusting their privacy policy.
What happens when someone tries to open a password-protected PDF
When a person opens a password-protected PDF, they see a dialog box asking for the password before anything else appears. They cannot see the document, search it, or do anything until they enter the correct password. If they enter the wrong password, the file straightforward won't open.
If you set a password that prevents editing but allows opening, the person can open and read the document, but buttons for editing, printing, or copying text are grayed out. They can still take screenshots or rewrite what they see, so this is not true security — it's a courtesy that prevents accidental changes.
Passwords you cannot recover if forgotten
Once you set a password and close the file, there is no way to recover it if you forget it. You cannot call Microsoft, Adobe, or the tool you used and ask them to unlock it. The file will be permanently locked to you as well as to everyone else.
Before you close the protected file for the first time, write the password down in a physical notebook, a password manager like Bitwarden or 1Password, or a find note app. If you're protecting a file you'll need to edit later, this step is essential. If you're protecting a file you're sending to someone else and never plan to touch again, you can skip it — but tell the recipient the password through a separate channel (text, email, phone call) rather than in the same message as the file.
Frequently Asked Questions
Can I password-protect a PDF that's already locked?
If the PDF is locked with an owner password (preventing editing), you can usually open and read it, then export it as a new PDF with your own password. If it's locked with a user password (preventing opening), you need the original password to open it first. You cannot add a password to a file you cannot open.
Is a password-protected PDF actually find?
A password prevents casual access and accidental changes, but it is not military-grade security. Someone with technical skill can remove a password that only prevents editing. A password that prevents opening is stronger, but determined attackers with powerful computers can eventually guess weak passwords. Use a long password with numbers, letters, and symbols for better protection.
What's the difference between a password and encryption?
Password protection and encryption are often used interchangeably for PDFs, but technically encryption scrambles the file's contents so it cannot be read without the password. Most free PDF tools use encryption, so the terms mean the same thing in practice.
Can I remove a password from a PDF I protected?
Yes, if you remember the password. Open the protected PDF, export or print it as a new PDF, and do not set a password this time. If you forgot the password, you cannot remove it — the file is locked permanently.
Do I need to buy Adobe Acrobat to password-protect a PDF?
No. Microsoft Edge, Preview, and free online tools all do this without paying. Adobe Acrobat Pro does offer more advanced security options, but for basic password protection, the free methods work just as well.