The fastest way: Preview's built-in encryption

The simplest path on Mac is to use Preview, the app already on your computer. Open your PDF in Preview, go to File menu, then choose Export. In the dialog box that appears, click the Security Options button. You will see two checkboxes: one to require a password to open the document, and one to require a password to copy text and print. Check whichever applies to what you need, enter your password twice to confirm it, then click Save.

This method takes about 90 seconds and creates a new password-protected copy of your PDF without touching the original. The password you set is the only way anyone can open the file — Preview will prompt for it every time.

One thing to know: if you forget the password, there is no recovery option. Write it down somewhere safe, or use a password manager you already trust.

Key Takeaways

  • Preview, built into every Mac, can password-protect a PDF in under two minutes using File > Export > Security Options.
  • You can set one password to open the document and a separate password to prevent copying, printing, or editing.
  • The password-protected version is a new file; your original PDF stays unchanged.
  • If you forget the password, the file cannot be recovered, so store it somewhere you will remember.

Setting different passwords for opening versus editing

Preview lets you create two separate passwords. The first password (called the owner password) controls whether someone can open the file at all. The second password (the user password) lets you set restrictions on what people can do once they open it — like preventing them from printing or copying text.

In the Security Options dialog, the top checkbox is for opening the document. The bottom checkbox is for restricting actions. You can use both, one, or neither. If you only want to prevent printing but not require a password to open, check only the bottom box and leave the top unchecked. This is useful when you want to share a document openly but prevent people from making copies.

Using the command line for batch protection

If you need to password-protect many PDFs at once, the command line is faster than opening each one in Preview. Open Terminal (find it in Applications > Utilities), then use this command:

qpdf --encrypt userpassword ownerpassword 40 -- input.pdf output.pdf

Replace "userpassword" and "ownerpassword" with the passwords you want, and replace "input.pdf" and "output.pdf" with your actual file names. The "40" sets the encryption strength. This creates a new protected file without changing the original.

If qpdf is not installed on your Mac, you can install it using Homebrew (a package manager for Mac). Type brew install qpdf in Terminal first. This method is most useful if you work with PDFs regularly and need to protect dozens at a time.

Protecting PDFs in Mail and iCloud

If you are sending a PDF through Mail, you can password-protect it before attaching. Create the protected version using Preview (as described above), then attach that file to your email. The recipient will need the password to open it.

For PDFs stored in iCloud Drive, the same approach works: protect the file on your Mac first, then upload it to iCloud. The password stays with the file. If you share the iCloud link with someone, they will still need the password to open the PDF itself.

What happens when someone tries to open a protected PDF

When a password-protected PDF is opened on any device — Mac, Windows, iPhone, or Android — the system will prompt for the password before showing any content. The person opening the file sees a dialog box with a password field. They cannot see the document, search it, or do anything else until they enter the correct password.

If the wrong password is entered, the file straightforward will not open. There is no way to bypass this without the correct password, which is why forgetting it means the file becomes inaccessible.

When to use owner password versus user password

Use the owner password (the one that controls opening the file) when you want to keep the document completely private. Only people with that password can see it at all.

Use the user password (the one that controls actions like printing and copying) when you want to share the document openly but prevent specific uses. For example, you might share a contract with a client where they can read and view it, but cannot print it or copy text from it. Set only the user password in this case, leaving the opening password blank.

Frequently Asked Questions

Can I password-protect a PDF on Mac without using Preview?

Yes. Many third-party PDF apps like PDFtk, Adobe Acrobat, or Coherence X can also add passwords. Preview is free and built in, so it is the fastest option for most people. Third-party apps are useful if you need advanced features like removing passwords later or batch processing many files.

What if I need to remove a password from a PDF later?

You will need the password to remove it. Open the protected PDF in Preview, enter the password when prompted, then go to File > Export and uncheck the security options. Save it as a new file without password protection. If you have lost the password, the file cannot be unlocked.

Does password-protecting a PDF work on all devices?

Yes. Any device that opens PDFs — Mac, Windows, iPhone, Android, or a web browser — will prompt for the password. The encryption is standard across all platforms, so a PDF you protect on Mac will require the same password on Windows or an iPad.

Is Preview's encryption strong enough for sensitive documents?

Preview uses 128-bit encryption, which is sufficient for most personal and business documents. For highly sensitive files like financial records or legal documents, consider Adobe Acrobat, which offers 256-bit encryption. For everyday use, Preview's protection is adequate.

Can I change the password after I have already protected a PDF?

No. You will need to open the protected PDF in Preview (entering the old password), export it again with a new password, and save it as a new file. The original protected version keeps its old password unless you delete it.