How to password protect a PDF

By MediumPDF ·

A password stops people from opening a PDF unless they know it. To password protect a PDF online, Protect PDF encrypts the file with AES-256 in your browser, using a password you choose. You can also restrict printing, editing and copying. The file and the password never leave your device. Store the password somewhere safe, because MediumPDF cannot recover it if you forget it.

This guide covers the steps, the permission options, and what a PDF password can and cannot do.

Protect a PDF in MediumPDF

  1. Open Protect PDF. Go to Protect PDF in any current browser.
  2. Add the PDF. Drag the file into the box or click to browse. Each PDF can be up to 50 MB.
  3. Set and confirm a password. Type the password in the Password box and again in Confirm Password. Use something long that you will not forget.
  4. Choose permissions. Tick or untick Allow printing, Allow editing, and Allow copying text and images. Printing is allowed by default. Editing and copying are off by default.
  5. Protect and download. Run the tool and download the encrypted PDF. Open it once to check that the password works.

Permissions you can set

Permissions are rules that PDF readers are asked to follow after the file is open. Turning off printing tells the reader app not to print. Turning off editing and copying asks it to block changes and text selection. Most mainstream readers respect these settings.

A good default for most documents is to leave printing on and turn editing and copying off. That lets the recipient print a copy for their records while discouraging changes.

They are not a hard barrier. Anyone who can open the file can still photograph the screen, and some apps ignore the rules. Treat permissions as a polite lock and the open password as the real one.

What a PDF password does and does not do

With AES-256 encryption, the contents of the file are scrambled, and a reader needs the password to unscramble them. A long, unusual password is very hard to guess. A short one, such as a birth date, is much easier.

  • A password does not remove anything. If a page shows private data that the recipient should never see, remove it first with Redact PDF.
  • A password does not expire. Once someone has it, they can open the file whenever they like.
  • Send the password by a different route than the file, for example by phone or text if the PDF goes by email.

Choosing a strong password

Length matters more than odd symbols. Three or four unrelated words, such as a short phrase only you would think of, are easier to remember and harder to guess than a short mix of letters and numbers. Avoid birth dates, phone numbers and names, since those are the first things someone would try.

Protect PDF or Encrypt PDF

To encrypt PDF files with just a password, Encrypt PDF uses the same AES-256 encryption, without the permission checkboxes. Use it when you only need a password to open the file. Use Protect PDF when you also want to limit printing, editing or copying.

If you forget the password

MediumPDF does not keep a copy of your password or your file, so there is nothing to recover. Keep the unencrypted original somewhere safe, and save the password in a password manager.

To remove the password later, use Unlock PDF and enter the current password. It does not guess passwords. The guide on unlocking a PDF when you know the password walks through it. If the file is large, you can run Compress PDF before you protect it.

Frequently asked questions

How do I password protect a PDF?

Open Protect PDF, add the file, set and confirm a password, choose the permissions, then download the encrypted PDF.

What encryption does MediumPDF use?

AES-256, applied in your browser.

Can I stop people from printing or copying?

Yes. You can turn off printing, editing and copying. People who have the password may still photograph the screen, and some apps ignore these rules.

What if I forget the password?

MediumPDF cannot recover it. Keep the password and an unencrypted original in a safe place.

Does this upload my PDF?

No. The file and the password stay in your browser.

How do I remove the password later?

Use Unlock PDF and enter the current password. The tool does not guess passwords.