To password protect a PDF, open it in a tool that can encrypt PDFs, set an open password, and save a new copy. On a Mac, Preview does it free through File > Export and the Permissions button. On an iPhone, the Files app has a Lock PDF option. On Windows, use a browser tool or Word's export option.

Below are the steps for each device, the difference between the two kinds of PDF password, and how to share a locked file without giving the password away in the same email.

How to password protect a PDF in your browser

This method works on Windows, Mac, Chromebook and phones, and it's free. ConvertorLab Lock PDF encrypts the file inside your browser tab without uploading it.

  1. Open Lock PDF.
  2. Add one PDF or several. Every file in the batch gets the same password.
  3. Type the password. A strength meter shows when it's long and varied enough.
  4. Optionally set a separate owner password (explained below).
  5. Lock the files and download the protected copy, or a ZIP if you added several.
  6. Open the downloaded file once to confirm it asks for the password.

The encryption is 256-bit AES through qpdf, an open-source PDF library, running on your device. The document and the password never leave it, which is the point when the file is a payslip, a medical form or a contract. Standard PDF readers ask for the password before showing a page, including Acrobat, Chrome, Edge, Preview and phone PDF apps.

How to password protect a PDF on Mac with Preview

Preview has full password support built in. These steps follow Apple's guide to password-protecting a PDF in Preview.

  1. Open the PDF in Preview.
  2. Choose File > Export.
  3. Click the Permissions button.
  4. Select Require Password To Open Document, type a password, then retype it to verify.
  5. Under the permission checkboxes, choose whether people can print or make changes without the owner password.
  6. Enter an owner password and retype it. This password lets you change the permissions later.
  7. Click Apply, then Save. Give the file a new name if you want to keep an unlocked original.

To change the settings later, open the locked file and choose File > Edit Permissions. You'll need the owner password.

How to add a password to a PDF on iPhone

Since iOS 16, the Files app can lock a PDF stored on your iPhone.

  1. Open the Files app and tap the PDF to open it.
  2. Tap the file name or the menu arrow at the top of the screen.
  3. Choose Lock PDF.
  4. Type the password, then type it again to verify.
  5. Tap Done.

Files offers fewer options than Preview on a Mac. You get an open password but no separate permission settings. On iOS 26 and later, the Preview app on iPhone can lock PDFs as well. On Android there's no built-in way to encrypt a PDF, so use the browser tool in Chrome.

How to add a password to a PDF on Windows

Windows doesn't include a tool that encrypts an existing PDF. You have a few options depending on where the file came from.

  • For any existing PDF, use the browser method above in Edge or Chrome.
  • If you're creating the PDF from a Word document, Word can encrypt it during export. Choose File > Export > Create PDF/XPS Document, click Options, tick Encrypt the document with a password, click OK and set the password. Excel and PowerPoint have the same option.
  • Adobe Acrobat Pro has a Protect tool for open passwords and permissions. The free Acrobat Reader can open locked files but can't add a password.

Word can open a PDF and save it again with a password, but it converts the file into an editable document on the way. Layouts often shift, so it's a poor choice for forms or anything with a careful design.

Open password vs owner password: which do you need?

PDFs support two separate passwords, and tools name them differently.

  • The open password (also called the user or document open password) is required to view the file at all. This is what most people mean by a password-protected PDF.
  • The owner password (also called the permissions password) controls what someone can do once the file is open, such as printing, copying text or editing.

For privacy, the open password is what counts. Permission restrictions alone are weak: the file opens for anyone, and plenty of software ignores the restrictions. Treat them as a polite request.

If you set both, use different passwords. Otherwise anyone who can open the file can also change its permissions.

How to choose and share a PDF password safely

Strong encryption only helps if the password is hard to guess. Short passwords, names and birth dates can be tried by software very quickly.

  • Use a long passphrase of several random words, or a password from a password manager.
  • Don't reuse a password from your email or bank account.
  • Send the password through a different channel from the file. If the PDF goes by email, send the password by text message or say it on a call.
  • Agree on a format with regular recipients, the way banks do with statements, so you don't have to send a new password every time.

Keep an unlocked original somewhere safe, or store the password in your password manager. There's no reset link for a PDF. If you forget the open password on a file encrypted with AES-256, the file is effectively gone. Password protection also doesn't stop someone you trust with the password from forwarding the file, so for ID copies consider adding a watermark that says who it's for and why, such as "Copy for ABC Bank KYC only". Add Watermark does this on images before you turn them into a PDF. A copy marked that way is much less useful to anyone who gets hold of it later.

What to know before you lock a PDF

Lock the file as the very last step. Many PDF tools, including mergers and compressors, can't read an encrypted file, so do any merging, page edits or compression first. If you need to change a locked file later, remove the password with Unlock PDF, make your edits, then lock it again. The merge PDF guide and the guide on deleting pages from a PDF cover the usual edits.

Also check whether the recipient can accept a locked file at all. Some upload portals reject password-protected PDFs, because their systems can't open them to check the contents. For those, send an unlocked copy through the portal itself, which already controls who can see it. The guide to removing a PDF password covers that side of things.

Tools for this job

Free tools that run in your browser

Lock PDFAdd an AES-256 password in your browserUnlock PDFRemove a password you knowAdd WatermarkMark ID copies with who they're for

Frequently asked questions

How do I password protect a PDF on Mac?

Open it in Preview, choose File, Export, click Permissions, tick Require Password To Open Document and set the password. Then click Apply and Save.

How do I add a password to a PDF for free on Windows?

Use a free browser tool such as ConvertorLab Lock PDF in Edge or Chrome. If the PDF comes from Word, the export Options can encrypt it with a password.

How do I add a password to a PDF on iPhone?

Open the PDF in the Files app, tap the file name at the top, choose Lock PDF and enter the password twice.

What's the difference between an open password and an owner password?

The open password is needed to view the file. The owner password controls permissions like printing and copying once the file is open.

What happens if I forget the PDF password?

With strong encryption there's no practical way back in. Keep an unlocked original or save the password in a password manager.