Files tool

Protect or Unlock a PDF with a Password

Choose a PDF to add a password, or remove its password by entering the current password.

Runs in your browser. No upload.

Use different passwords, and keep them somewhere safe. If you lose them, this tool cannot recover them.

Processing uses this device and a local PDF engine. The engine is downloaded only when you start. Files are not uploaded. A computer is recommended for large PDFs; this page accepts files up to 200 MB to help protect browser memory.

Choose a PDF to start.

About this tool

Protect or Unlock a PDF with a Password made simple.

The file is processed on your device with a local QPDF engine and is never uploaded. Protect mode uses AES-256 and asks for separate opening and owner passwords. Unlock mode requires the current password; this tool does not bypass or guess passwords. The input limit is 200 MB to reduce the risk of exhausting browser memory. Re-saving can invalidate digital signatures or change compatibility; keep the original and test the result in your PDF reader. Password strength and safe storage remain your responsibility.

Guide

Using Protect or Unlock a PDF with a Password

This tool adds a password to a PDF, or removes a password that you already know. The work is done on your device by a QPDF engine that is downloaded when you start, and the file is not uploaded. Protecting uses AES-256 encryption with separate opening and owner passwords of at least eight characters. Unlocking needs the current password; the tool cannot guess, crack or bypass one.

How to use it

  1. Choose a PDF of 200 MB or less, then pick either Protect PDF with a password or Remove password (current password required).
  2. To protect, type an opening password, type it again to confirm, and type a different owner password. Each needs at least eight characters. To unlock, type the current password.
  3. Press Protect PDF or Remove password and wait. Cancel stops the work. The QPDF engine loads first, so the first run can take a moment.
  4. Download the new copy, which has -protected or -unlocked added to the file name. The original is not changed. Open the copy in your PDF reader and check it before you delete anything.

Worked examples

Protect a one-page PDF

You enter
File
report.pdf
Action
Protect PDF
Opening password
a made-up password of 11 characters
Owner password
a different made-up password of 12 characters
You get
Download
report-protected.pdf
Encryption
AES-256, revision 6, for streams, strings and the file
Permissions
all allowed

The same QPDF routine was run outside the page on a one-page test file and then inspected with QPDF. The result asks for a password to open and carries AES-256. Printing, copying and editing were still allowed.

Not run through the tool. Treat it as an illustration.

Remove a known password

You enter
File
report-protected.pdf
Action
Remove password
Current password
the opening password
You get
Download
report-protected-unlocked.pdf
Encryption entry
none

With the right password, the copy comes out without encryption. In the same outside test, the owner password also worked as the current password, because QPDF treats either one as a key to open the file.

Not run through the tool. Treat it as an illustration.

A wrong password

You enter
File
report-protected.pdf
Action
Remove password
Current password
a password that does not match
You get
Message
The password may be incorrect, or this PDF may use an unsupported feature.

No file is created. The message covers a wrong password and also a PDF that uses something the engine cannot handle, so check the password first.

Not run through the tool. Treat it as an illustration.

The same password twice

You enter
Action
Protect PDF
Opening password
one password of 12 characters
Owner password
the same password of 12 characters
You get
Message
Choose different opening and owner passwords.

The tool refuses to continue when the two passwords match. It also refuses passwords shorter than eight characters or a confirmation that does not match.

Not run through the tool. Treat it as an illustration.

When it helps

  • Add a password to a copy of a CV, contract or form before you send it by email.
  • Remove a password from your own old PDF when you still know it and no longer want to type it each time.
  • Make a protected copy of a scanned document to keep on a shared drive.
  • Check how a password copy behaves in your reader before you share it with other people.

Limits to keep in mind

  • The file asks for the opening password to open, and that is the protection you get. The owner password is set, but this tool turns on no printing, copying or editing limits, and in a test every permission stayed allowed.
  • AES-256 is a strong cipher, but a short or easy password is the weak point. Eight characters is only the tool's minimum, and it does not rate how strong your password is.
  • It cannot open a PDF whose password you do not have, and it cannot recover a lost one. Re-saving a file can also break a digital signature or change how some readers show it, so keep the original.
  • Files over 200 MB are refused. The QPDF engine is downloaded when you start, so the first run needs the page to be able to fetch it.

Tips

  • Choose two different long passwords, for example a few random words, and keep them in a password manager and not next to the file.
  • Open the new copy in your PDF reader, type the password and scroll through every page before you delete the original.
  • Send the password through another channel, such as a call or a message, and never in the same email as the protected file.

Sources

Common questions

About Protect or Unlock a PDF with a Password.

How do I protect a PDF with a password?

Choose the file, keep Protect PDF selected, type an opening password twice and a different owner password, each of at least eight characters, then press Protect PDF and download the copy.

Which encryption does it use?

AES-256, applied by the QPDF engine. In a test of the same code, the QPDF report listed AES with a 256-bit key for the streams, the strings and the file. It is a standard cipher and not something made up here.

Can I open a PDF if I forgot its password?

Not with this tool. Unlock mode needs the current password and does not guess, crack or bypass anything. Passwords chosen here cannot be recovered either, so store both of them safely.

What is the difference between the opening and the owner password?

The opening password lets a reader open the file. The owner password is the PDF format's second password, normally tied to permissions. Here no limits are set, and either password worked to unlock a test file.

Is my PDF uploaded to a server?

The page says the file is processed on your device and never uploaded. Only the QPDF engine program is fetched when you start, and the PDF itself stays with you.

Does it change my original file?

No. You get a new file with -protected or -unlocked added to its name, and the original stays as it was. Compare both before you remove the old one.

Why did unlocking fail?

Usually the password is wrong. It can also fail when the PDF uses a feature the engine does not support. Try the password in a PDF reader first to see whether it opens the file there.

Can I unlock a PDF without its current password?

No. Enter the current password. This tool does not guess, crack or bypass passwords.