Password protection on a PDF means only someone with the correct password can open the file

When you password protect a PDF, you're adding a lock that requires a password before the file will open at all. This is different from encrypting the entire file — password protection is simpler and works on almost any device. The person trying to open it sees a dialog box asking for the password before they can see any content inside.

There are two types of passwords you can set: one that controls who can open the file, and another that controls what people can do with it once it's open (like whether they can print it or copy text from it). Most people use the first type — the opening password — because it's the most straightforward way to keep a document private.

Key Takeaways

  • You can add a password to a PDF using built-in tools on Windows and Mac, or free online converters, without buying special software.
  • An opening password prevents anyone from viewing the PDF without typing the correct password first.
  • A permissions password lets people open the file but prevents them from printing, copying text, or editing it — though this protection is weaker than an opening password.
  • If you forget the opening password, the file becomes unrecoverable, so write it down somewhere safe or use a password manager.
  • Password protection works on phones and tablets the same way it does on computers — the person opening it will be prompted for the password.

Password protecting a PDF on Windows using built-in tools

Windows doesn't have a native PDF editor, but you can use Microsoft Word or a free tool like PDFtk to add password protection. The simplest route on most Windows computers is to print the PDF to a new PDF file with password protection enabled.

Open the PDF in any program (Edge, Chrome, Adobe Reader, or even Word if you drag the file into it). Go to File, then Print. In the printer dropdown, select "Print to PDF" or "Microsoft Print to PDF." Click the printer properties or settings button — the exact name varies by Windows version. Look for a Security tab or Advanced tab where you can set a password. Type your password twice to confirm it, then click Print and choose where to save the new file. The new PDF will now require that password to open.

If that option isn't available on your computer, read the free version of PDFtk (available at pdftk.com). Open PDFtk, select your PDF file, choose "Set PDF Security," enter your password in the "User Password" field, and click Convert. This creates a new password-protected copy of your original file.

Password protecting a PDF on Mac using Preview

Mac's built-in Preview app can add password protection directly. Open your PDF in Preview, then go to File and select Export. In the dialog that appears, check the box labeled "Encrypt." You'll be prompted to create a password — type it twice to confirm. Choose where to save the file and click Save. The new file will require the password to open.

This method is faster than the Windows approach because it's built into the operating system. The encrypted file stays on your computer unless you move it, so you control where it lives.

Using free online tools to password protect a PDF

If you don't want to read software, several free websites let you upload a PDF and add password protection. Smallpdf.com, ilovepdf.com, and pdf2go.com all have password protection features. Upload your PDF, set your password, and read the protected version.

The trade-off with online tools is that your file travels to someone else's server. Most of these sites say they delete files after a few hours, but if your PDF contains sensitive information (medical records, financial documents, personal details), using a tool on your own computer is safer. Read the site's privacy policy before uploading anything you wouldn't want to share.

The difference between opening passwords and permissions passwords

An opening password (sometimes called a "user password" or "document open password") locks the entire file. No one can see anything inside without typing the correct password first. This is the strongest protection because it stops access completely.

A permissions password (sometimes called an "owner password" or "master password") lets people open the PDF but prevents specific actions — printing, copying text, editing, or extracting images. Someone determined could still read the content on screen, but they can't make a copy or print it out. This type of password is weaker because the file itself is still readable; the restrictions are more like a suggestion the PDF reader software respects.

Most password protection tools let you set both at once. If you only care about keeping people from opening the file at all, set an opening password and leave the permissions password blank.

What happens if you forget the opening password

If you set an opening password and forget it, the file becomes locked permanently. There is no "forgot password" button for PDFs — the encryption is designed so that even the software company can't unlock it for you. This is intentional: it's what makes the protection actually work.

Write down your password somewhere safe, or store it in a password manager like Bitwarden, 1Password, or KeePass. If you use a password manager, the password is encrypted and backed up, so you won't lose access to your PDFs even if you forget the password itself.

Password protecting PDFs on phones and tablets

On an iPhone or iPad, you can password protect a PDF using the built-in Files app or by exporting from another app. Open the PDF in Preview or another app, look for an Export or Share option, and choose "Save to Files." Some apps let you set a password during export; if yours doesn't, you'll need to use a computer or an online tool.

On Android, the process depends on which app you use. Google Drive, Microsoft OneDrive, and Adobe Reader all have options to password protect files, though the steps vary. Open the PDF in your preferred app, look for a Share or Export menu, and search for a security or password option. If your app doesn't have one built in, upload the file to an online tool from your phone's browser.

Once a PDF is password protected, opening it on any device — phone, tablet, or computer — will prompt for the password the same way. The protection travels with the file.

Frequently Asked Questions

Can someone break a PDF password?

An opening password on a modern PDF is very difficult to break without the password. Older PDFs (created before 2020) used weaker encryption that specialized software could crack, but current PDFs use strong encryption. A permissions password is easier to remove because it's designed to be less restrictive, but an opening password is meant to be unbreakable without the correct password.

Does password protecting a PDF make the file larger?

No, the file size stays almost the same. Encryption adds a small amount of data, but usually less than 1 percent of the original file size. You won't notice a difference in how long it takes to read or email.

Can I change the password on a PDF after I've already protected it?

Not directly. You would need to open the protected PDF (using the current password), export it as a new PDF, and set a different password on the new version. The original file keeps its old password unless you delete it.

What if I want to share a password-protected PDF with someone?

Send the PDF file through email or a file-sharing service like Google Drive or Dropbox, then tell the person the password through a separate channel — a phone call, text message, or different email. Never send the password in the same message as the file, because if someone intercepts the email, they get both.

Does password protection work if I upload a PDF to the internet?

Yes. The password protection stays with the file no matter where it lives. If you upload a password-protected PDF to a website, cloud storage, or email, anyone who downloads it will still need the password to open it. The protection doesn't depend on where the file is stored.