UBUseBrowserTools

How to Password Protect a PDF

To password-protect a PDF, open an encrypt tool, set a password, and download the protected file. Anyone opening it must enter that password — and it's encrypted on your device, never uploaded.

Last updated: 2026-07-17

How to add a password

  • Open Protect PDF and add your file.
  • Enter a password twice and download the encrypted PDF.
  • Test it: opening the file should now prompt for the password.

What the encryption protects

The document contents are encrypted with a key derived from your password, so the protection travels with the file wherever it goes — email, USB, cloud. The open password is strong protection; permission flags (like "no printing") are honoured by well-behaved viewers rather than enforced by maths.

Choosing a good password

  • Use 12+ characters, not a name or "1234".
  • Store it in a password manager — there is no recovery if you forget it.
  • Keep an unprotected original somewhere safe.

Removing it later

If you need to take the password off a file you own, use Unlock PDF with the current password.

Private by design

Encryption happens in your browser — neither the file nor the password is ever uploaded.

Frequently asked questions

What happens if I forget the password?

The file stays locked — there's no backdoor, which is what makes the protection real. Always keep the password in a password manager and keep an unprotected copy.

Is it safe to encrypt a PDF online here?

Yes — encryption runs entirely in your browser, so the file and password never leave your device.

Tools used in this guide

More guides