DataToolsLab
PDF Tools

Protect PDF with Password

Add a password to a PDF.

Loading tool…

What is Protect PDF?

Add password protection to a PDF using pdf-lib's encryption API.

How it works

pdf-lib encrypts the document and emits a new PDF that requires the password to open.

  1. Upload a PDF. Set a user password and an owner password.
  2. Download. We produce an encrypted PDF for you to download.

Common mistakes

Forgetting the password

There is no recovery — store it safely.

Alternatives

Use a desktop reader

Adobe Acrobat and macOS Preview can also password-protect PDFs.

Frequently asked questions

Are passwords stored anywhere?

No. We never see your password — encryption happens in your browser.

Online