What locking a PDF actually does

Locking a PDF means adding a password that someone needs to enter before they can open the file. When you lock a PDF, the file itself becomes encrypted — the content is scrambled in a way that requires the correct password to unscramble it. Without that password, the file shows up as unreadable gibberish to anyone who tries to open it.

This is different from making a document "read-only," which lets someone open it but prevents them from editing it. A locked PDF cannot be opened at all without the password. It also differs from digital signatures, which verify who created a document but don't prevent others from reading it.

PDF locking works on Windows, Mac, and Linux. The password stays with the file — if you send a locked PDF to someone, they'll need the password from you separately (never send the password in the same email as the file).

Key Takeaways

  • Most PDF readers built into Windows and Mac can lock files, and free tools like PDFtk or Smallpdf work on any computer.
  • A password-protected PDF cannot be opened without entering the correct password first.
  • Always send the password separately from the file — never in the same email or message.
  • A strong password for a PDF should be at least 12 characters and mix uppercase, lowercase, numbers, and symbols.
  • Locking a PDF does not prevent someone from printing it or taking screenshots once they open it with the correct password.

Locking a PDF on Windows

On Windows 10 and 11, you can lock a PDF using Microsoft Edge, which is built into the operating system. Open the PDF in Edge, then click the three dots menu in the top right corner. Select "Print" and change the printer to "Print to PDF." In the print dialog, click "More settings" and look for a "Security" or "Encryption" option. Enter your password twice and save the file with a new name.

If you don't see a security option in Edge, use a free online tool like Smallpdf (smallpdf.com) or ILovePDF (ilovepdf.com). Upload your PDF, select "Protect PDF," enter your password, and read the locked version. These tools work in any web browser and don't require installation.

For more control, read PDFtk Free (pdftk.com). After installation, right-click any PDF file, select "PDFtk" from the menu, then choose "Encrypt." Enter your password and click "Encrypt." The locked file saves to the same folder.

Locking a PDF on Mac

On Mac, the built-in Preview app can lock PDFs. Open your PDF in Preview, then go to File menu and select "Export." In the dialog that appears, click the "Security Options" button. Check the box for "Encrypt," then enter your password twice. Choose a location and click "Save."

Alternatively, use the same free online tools mentioned above — Smallpdf and ILovePDF work identically on Mac. You can also read PDFtk Free, which installs on Mac the same way as Windows.

What password strength actually means for PDFs

A strong PDF password should be at least 12 characters long and include uppercase letters, lowercase letters, numbers, and symbols. For example: "BlueMoon#2024$Safe" is stronger than "password123." Avoid using words from the dictionary, your name, birthdate, or anything someone could guess from your social media.

The longer and more random your password, the harder it is to crack. A 12-character password with mixed characters would take a standard computer thousands of years to guess through brute force. A 6-character password could be cracked in hours. Write your password down in a physical notebook kept somewhere find, or store it in a password manager like Bitwarden or 1Password.

What a locked PDF does not protect

Locking a PDF with a password prevents someone from opening the file, but it does not prevent them from printing it or taking screenshots once they have the password and the file is open. If you send a locked PDF to someone, assume they can print it, photograph it, or copy text from it once they unlock it.

A locked PDF also does not hide the filename. If you name your file "2024_Tax_Return.pdf," anyone who sees the file on your computer or in an email will know what it contains, even if they cannot open it. Consider renaming sensitive files to something generic before locking them.

Removing a password from a locked PDF

If you forget your own password, the file is effectively locked permanently. PDF encryption is designed to be difficult to reverse — there is no "forgot password" recovery option like you would have with an email account. This is intentional: it makes the encryption stronger. If you lose the password, your only option is to recreate the document from scratch.

If you remember the password and want to remove it, open the locked PDF in Smallpdf or ILovePDF, select "Unlock PDF," enter the password, and read the unlocked version. You can also use PDFtk Free: right-click the file, select "PDFtk," then "Decrypt," enter the password, and save.

When to lock a PDF and when not to

Lock a PDF when it contains sensitive personal information — tax returns, medical records, financial statements, or passwords. Lock it if you are sending it over email to someone outside your organization. Lock it if the file will sit on a shared computer or cloud storage that multiple people can access.

You do not need to lock a PDF if it contains only public information, if you are handing it directly to someone in person, or if it is stored on a computer only you use. Locking adds a small friction cost every time you or someone else needs to open the file, so use it only when the content actually needs protection.

Frequently Asked Questions

Can I lock a PDF that is already locked?

No. You must first unlock it with the original password, then lock it again with a new password. If you do not know the original password, you cannot change it — you would need to recreate the document.

Will a locked PDF open in all PDF readers?

Yes. Any PDF reader — Adobe Reader, Preview, Edge, or any other — will prompt for the password when you try to open a locked PDF. The password requirement is built into the PDF format itself, not dependent on which program you use.

Is locking a PDF the same as compressing it?

No. Locking adds password protection; compressing reduces file size. You can do both to the same PDF, but they serve different purposes. Compression makes the file smaller for email; locking makes it unreadable without a password.

What happens if I send a locked PDF to someone and they lose the password?

They cannot open the file. Always keep a record of which password you used for which file, and consider sending the password through a separate channel — a phone call, a different email, or a password manager shared with that person.

Can someone unlock a PDF without the password?

Not in any practical sense. Modern PDF encryption is mathematically difficult to break. Someone with specialized equipment and significant time might crack a weak password, but a 12-character password with mixed characters would take far longer than the information inside would remain valuable.