OnDevicePDF logoOnDevicePDF

Learn

Protect a PDF With a Password

Encrypt a PDF locally before sharing it. Add a password in the browser so only the right people can open the file.

Quick answer

Set a strong password, save a protected copy, and reopen it once to confirm the file now asks for the password.

How to do it

Step 1

Choose a password you can manage safely

Pick something strong enough to protect the file, then store it securely so you do not lock yourself out later.

Step 2

Create the protected copy locally

Run the password protect workflow in the browser and export the encrypted PDF. Keep the original file if you still need an unlocked version.

Step 3

Test the new file once

Reopen the protected PDF and confirm it prompts for the password. That quick check catches bad exports immediately.

Common mistakes

  • Using a weak password because the file feels small or unimportant.
  • Overwriting the original before you verify the protected copy works.
  • Forgetting that the password needs to be shared separately from the document.

Related tools

Related guides

Questions people ask

Does password protection happen locally?

Yes. The PDF is encrypted in your browser and never needs to leave your device.

Should I keep an unlocked copy?

Usually yes. Keep a secure source copy and save the protected version separately.

Can I remove the password later?

Yes, if you still know the password. You can unlock the file locally and export a clean copy.

Next step

If you want to do the task now, open the matching tool and keep the files local in your browser.