Free tool · Nothing is uploaded

Password protect a PDF

Add a password to a PDF so it opens only for people who know it. The file is locked right here in your browser and never leaves this device.

Also in: Deutsch · Español · Français · Bahasa Indonesia · Italiano · 日本語 · 한국어 · Português (Brasil) · ไทย · Türkçe · 繁體中文

or drop it here

Any PDF that doesn’t already have a password.

Your PDF and your password stay on this device. The file is locked in your browser, and this page has no way to send anything anywhere.

How to put a password on a PDF

  1. Choose a PDF, or drop it on the box above.
  2. Type a password, then type it again so a typo can’t lock you out.
  3. Tap Lock PDF, then download the locked copy, or on a phone use Save or share to put it in Files or send it.

Your original file isn’t changed. The locked copy is a new file with “-protected” at the end of its name. Open it once to check the password works before you send it or delete the original.

How strong is the lock?

The PDF is encrypted with AES-256, the method PDF 2.0 sets as its standard. Every page, image, font, form field and bookmark is encrypted, so without the password the file is unreadable data, not a document with a lock icon on top.

Acrobat, Apple Preview, Chrome, Edge, Firefox and the viewers on iPhone and Android ask for the password and open it. Readers older than about 2010 can’t open AES-256 files.

The lock is only as strong as the password. Anyone who has the file can try passwords on their own computer, as many as they like, so a short or common password can be found. Use at least 10 characters, or four or more random words.

Your PDF stays on your device

Everything happens in your browser. The file is read, encrypted and saved on your phone or computer, so neither the PDF nor your password is ever uploaded, not even to us.

The page tells your browser to block any connection it might try to make (a Content Security Policy with connect-src 'none'), so it has no way to send a file anywhere. Once the page has loaded, it also works in airplane mode.

What changes in the file

Only the lock. The pages, text, links, bookmarks and form fields stay as they were, and once the file is open its text can still be searched and copied. Anyone with the password can open, print and copy from it: the password keeps the file closed, it doesn’t limit what you can do with it.

  • If the PDF is digitally signed, the signature stops verifying, because the whole file is written again. Lock a signed file only if nobody needs to check the signature later.
  • A PDF that already has a password or restrictions is left as it is. This tool adds a password; it doesn’t remove one.
  • A forgotten password can’t be recovered, by us or by anyone. Keep it somewhere safe, or keep the unlocked original.

When to password protect a PDF

  • Sending tax returns, payslips, bank statements or medical results by email.
  • Sharing a scan of a passport, ID card or contract through a cloud link or a chat.
  • Keeping documents on a shared computer or a USB stick that could be lost.

Send the password a different way from the file. If the PDF goes by email, give the password in a call or a text message, so someone who gets into one doesn’t get both.

Questions people ask

Is my PDF uploaded anywhere?

No. It’s locked on your device, and this page is set up so that it can’t connect anywhere. Your password never leaves the page either. Once the page has loaded, it also works in airplane mode.

Which apps can open the locked PDF?

Acrobat and Acrobat Reader, Apple Preview, Chrome, Edge, Firefox and the viewers built into iPhone and Android. Each asks for the password first.

What if I forget the password?

It can’t be recovered. The file is encrypted with a key made from the password, so there’s nothing to reset. Keep the password somewhere safe, or keep the unlocked original.

Can it remove a password from a PDF?

No, this tool only adds one. Removing a password needs the password and a PDF editor such as Acrobat.

Does it work on iPhone and Android?

Yes, in Safari, Chrome and other browsers. On a phone, tap Save or share when it’s done to put the locked PDF in Files or send it.

Is there a size limit?

There’s no set limit. Large PDFs take longer, and a phone can run out of memory on very large ones of a few hundred megabytes.

Is it free?

Yes, with no sign-up, no watermark and no limits. It’s made by ShyVault, an iPhone app that keeps private photos, videos and documents behind a pattern.