Password protecting a PDF stops anyone without the password from opening or editing it
You can add password protection to a PDF using built-in tools on Windows and Mac, or through free online converters. The process takes less than five minutes. Most PDF readers — including the free Adobe Reader — will prompt for the password when someone tries to open the file.
There are two types of passwords you can set: one to open the file, and one to restrict editing, printing, or copying. You can use both at once. The method you choose depends on what software you already have and whether you need to protect files regularly.
Key Takeaways
- Windows and Mac both have built-in PDF tools that can add password protection without installing anything new.
- You can set a password to open the file, a password to restrict editing, or both at the same time.
- Online PDF tools work on any device but require uploading your file to a website, which is not safe for sensitive documents.
- Once you password protect a PDF, anyone who opens it will need the password — even if they have the original unprotected version.
Password protect a PDF on Windows using Microsoft Edge
Microsoft Edge, the default browser on Windows, can open and password protect PDFs without any extra software. Open the PDF file in Edge, then look for the printer icon in the top right corner of the window. Click it.
In the printer menu, change the printer dropdown from your actual printer to "Print to File" or "Microsoft Print to PDF". Then click "More settings" at the bottom of the menu. A new section will appear. Look for "Security" or "Encryption" options — the exact name depends on your Windows version. Check the box next to "Encrypt the document with a password". Click "Print" and choose where to save the file. You will be prompted to enter a password twice. The new PDF file will be protected.
This method creates a new file and leaves your original unprotected. If you want to replace the original, delete it after confirming the new one opens and asks for the password.
Password protect a PDF on Mac using Preview
Preview, the built-in image and PDF viewer on Mac, can add password protection. Open the PDF in Preview, then go to the menu bar and click "File". Select "Export As". A save dialog will open.
In the save dialog, look for a dropdown menu that says "File Format" and make sure it is set to "PDF". Below that, you will see a checkbox labeled "Encrypt". Check this box. Click "Save". You will be asked to enter a password twice. The new PDF will be password protected.
Like the Windows method, this creates a new file. Your original remains unprotected unless you delete it.
Use Adobe Reader to restrict editing and printing
If you have Adobe Reader (the free version), you can add a password that prevents people from editing, printing, or copying text from your PDF — but does not prevent them from opening it. This is useful when you want to share a document but prevent changes.
Open the PDF in Adobe Reader. Click the lock icon in the top right corner, then select "Restrict Editing". A panel will open on the right side. Click "Restrict with Password". Enter a password and click "Apply". Anyone who tries to edit, print, or copy from the file will be blocked unless they enter this password.
This method does not require creating a new file — it modifies the original. Make sure you save the file after applying the restriction.
Online PDF tools for password protection
Free websites like Smallpdf, ILovePDF, and PDF Candy can password protect files without installing software. Upload your PDF to the site, enter your password, download the protected version, and you are done.
The main drawback is security. Uploading a PDF to a website means the file is temporarily stored on someone else's server. For documents with sensitive information — financial records, medical details, personal identification — this is a real risk. Use online tools only for files you would not mind if a stranger saw.
If you use an online tool, delete the file from your browser history and empty your trash afterward. Some sites claim to delete files automatically after a few hours, but you cannot verify this happened.
What happens when someone tries to open a password protected PDF
When a person opens a password protected PDF, they will see a dialog box asking for the password before the document appears. If they enter the wrong password, the file will not open. They can try again, but there is no limit to the number of attempts — someone determined could try thousands of passwords.
If you set only an editing password (not an opening password), the PDF will open normally, but editing, printing, or copying will be blocked until the correct password is entered. This is less secure than an opening password because the person can still read the file.
Password protection is not the same as encryption. A determined person with technical knowledge can remove a PDF password, especially an editing password. For highly sensitive documents, password protection is a basic safeguard, not a may provide of privacy.
Common mistakes when password protecting PDFs
The most common mistake is forgetting the password. Write it down somewhere safe — not in the same folder as the PDF. If you forget an opening password, there is no official way to recover it. Some online services claim they can crack PDF passwords, but these are often scams.
Another mistake is thinking password protection is permanent. If you send a password protected PDF to someone, they can remove the password protection using free online tools and then share the unprotected version with others. Password protection only works if you trust the person you are sending it to.
Do not use simple passwords like "123456" or "password". Use at least 8 characters mixing letters, numbers, and symbols. A strong password makes it harder for someone to guess or crack the file.
Frequently Asked Questions
Can I password protect a PDF that is already password protected?
No. You must first remove the existing password, then add a new one. If you do not know the opening password, you cannot remove it. If you only know the editing password, you can open the file and export it as a new PDF without the old password, then add a new one.
What if I lose the password to my PDF?
If you set an opening password, there is no official recovery method. Some online services claim to crack PDF passwords, but most are unreliable or unsafe. For editing passwords, you can open the file and export it as a new unprotected PDF if you remember the opening password.
Does password protecting a PDF make it smaller or larger?
Password protection adds a small amount of data to the file, so the file size increases slightly — usually less than 1 percent. The difference is not noticeable for most documents.
Can I password protect a PDF on my phone?
Most phone PDF readers do not have built-in password protection. Your best option is to use an online PDF tool on your phone's browser, upload the file, set the password, and download the protected version. Remember that uploading to a website carries security risks.
Will password protection work if I email the PDF?
Yes. The password protection stays with the file no matter how it is sent — email, cloud storage, USB drive, or any other method. The recipient will need the password to open it.