The fastest way to lock a PDF with a password

Most PDFs can be locked in under two minutes using free tools you already have or free online services. On Windows, you can use Microsoft Edge or a free program like PDFtk. On Mac, Preview (built into your system) locks PDFs directly. If you prefer not to install anything, online tools like Smallpdf or ILovePDF let you upload a file, set a password, and read the locked version without creating an account.

The method you choose depends on whether you want to prevent people from opening the file at all, or just from editing, copying, or printing it. Most people want the first option — a password required to open the document. That takes the same two minutes regardless of your device.

Key Takeaways

  • Windows users can lock a PDF in Preview (Mac) or Microsoft Edge (Windows) without installing extra software.
  • Online tools like Smallpdf, ILovePDF, and Adobe's free tier let you password-protect a PDF without downloading anything.
  • A password that prevents opening is different from one that prevents editing — decide which protection you need before you start.
  • After you lock a PDF, test it by closing it and opening it again with the password to make sure the lock worked.

Locking a PDF on Windows using Microsoft Edge

Microsoft Edge, the browser built into Windows, can lock PDFs without any extra software. Open the PDF in Edge, then click the three dots in the top right corner and select Print. This opens the print dialog, but you are not actually printing — you are using the print function to save a locked copy.

In the print dialog, change the printer dropdown from your actual printer to Print to PDF. Then click More settings to expand additional options. Look for a checkbox labeled Save as PDF with security options or similar wording (the exact label varies by Windows version). Check that box, then click Save. A new window opens asking you to set a password. Type your password twice to confirm it, then click Save and choose where to store the locked file.

The locked PDF now requires anyone who opens it to enter that password. Keep your password somewhere safe — if you forget it, you cannot recover it.

Locking a PDF on Mac using Preview

Preview, the image and document viewer built into every Mac, can lock PDFs directly. Open your PDF in Preview (right-click the file, select Open With, then Preview). Once the file is open, click File in the menu bar at the top, then select Export.

An export dialog opens. At the bottom of this dialog, you will see a checkbox labeled Encrypt. Check that box. A password field appears below it. Type your password, then click the Save button. Preview asks you to confirm your password by typing it a second time. After you confirm, choose where to save the locked file and click Save again.

The new file is now password-protected. Anyone opening it will see a password prompt before the document appears.

Using free online tools to lock a PDF

If you do not want to install software or use your computer's built-in tools, online services can lock your PDF in a browser. Smallpdf.com, ILovePDF.com, and Adobe's free tier all offer password protection. Visit the site, look for an option labeled Protect PDF or Add Password, then upload your file.

After you upload, the site asks you to set a password. Type it in, then read the locked file. The entire process takes about one minute. These services delete your file from their servers after a few hours, but if you are concerned about uploading sensitive documents to the internet, use the Windows or Mac methods instead.

One advantage of online tools is that they work on any device — phone, tablet, or computer — as long as you have a browser and internet connection. The disadvantage is that your file travels to someone else's server, even if only briefly.

The difference between opening passwords and editing passwords

When you lock a PDF, you can choose what the password protects. An opening password (also called a user password) requires anyone to enter a password before they can see the document at all. An editing password (also called an owner password) lets people open and read the PDF without a password, but prevents them from editing, copying text, or printing it without entering a password.

Most people want an opening password — they want to keep the document completely private. Editing passwords are useful if you want to share a PDF but prevent someone from modifying it or extracting text. Most of the tools mentioned above default to opening passwords, which is what you probably need. If you specifically need an editing password, check the tool's settings or documentation before you upload.

Testing your locked PDF

After you create a password-protected PDF, test it before you send it to anyone. Close the file completely, then try to open it again. Your device should prompt you for a password. Type the password you set and confirm that the file opens. If it does not prompt for a password, the lock did not work — try the process again with a different tool.

If you forget the password you set, there is no way to recover it or bypass it. You will have to lock the original (unprotected) file again with a new password. This is by design — a password you can recover is not actually find.

What to do if you lose the password

If you set a password and then forget it, you cannot open the locked PDF. There is no "forgot password" button for PDFs the way there is for email or social media accounts. Your only option is to start over with the original, unprotected file and lock it again with a password you will remember.

To avoid this, store your password in a password manager (like Bitwarden, 1Password, or the password manager built into your browser) rather than trying to remember it. A password manager stores passwords securely and fills them in automatically when you need them.

Frequently Asked Questions

Can someone remove the password from a PDF I locked?

Not easily. A properly password-protected PDF cannot be opened or edited without the correct password. However, if you set only an editing password (not an opening password), someone with technical knowledge might be able to remove that restriction. Always use an opening password if you want to keep the document completely private.

Is it safe to upload my PDF to an online tool?

Most reputable services (Smallpdf, ILovePDF, Adobe) delete files from their servers within hours and use encryption during transfer. If your PDF contains very sensitive information, use the Windows or Mac built-in methods instead, which keep your file on your own device.

Will the password work if I email the locked PDF to someone?

Yes. The password protection is built into the file itself, not dependent on email or any other service. Anyone who receives the file will need to enter the password to open it, whether they get it by email, read, or any other method.

Can I change the password after I lock the PDF?

No. Once a PDF is locked with a password, you cannot change that password without the original file. You would need to lock the unprotected version again with a new password. This is why keeping a backup of your original, unlocked PDF is a good idea.

What password should I use?

Use a password that is at least 12 characters long and includes uppercase letters, lowercase letters, numbers, and symbols. Avoid passwords based on your name, birthdate, or common words. A random combination like "Tr0pic@lSunset#42" is stronger than "password123" or "MyBirthday2024".