AZTools.us
English

Password Protect or Unlock a PDF

Lock status + password and permission controls AES-256 · password stays on your device

Public-domain (CC0) file from Wikimedia Commons, downloaded to your browser only when you click.

Protect / Unlock PDF settings

Load a file to unlock this tool’s controls:

Lock status + password and permission controls

Runs directly on the web inside your browser. Your original file is never modified or uploaded.

Payslips, tax forms, medical results and contracts are often sent as PDFs, and a password keeps them private if the email or the link reaches the wrong person. Banks and employers also send locked PDFs that you have to type a password into every time. This tool adds or removes a PDF password in your browser with qpdf, a well-known open-source PDF tool, compiled to WebAssembly. Neither the file nor the password is uploaded.

Updated

How to protect or unlock a PDF

  1. Drop a .pdf onto the workspace. The tool checks it and says whether it is not protected, locked with a password, or only restricted.
  2. To protect it: type the password twice. Under “Allow”, switch off printing, copying text or editing if the readers should not do that. Then export.
  3. To unlock a PDF with an open password: type the password (the one you use to open it) and export. The copy you save opens without asking.
  4. A PDF that opens without a password but blocks printing or copying is shown as “Restricted”; export saves a copy without those restrictions.

What the protection does

Restrictions are flags inside the encrypted file. Adobe Acrobat, Preview, Chrome and most other readers respect them, but a determined person with the right software can ignore them. Only the open password actually keeps the content secret.

Open password and restrictions
SettingEffectStrength
Open passwordThe PDF cannot be read at all without itStrong: AES-256 encryption; a long password cannot be guessed
No printingReaders hide or disable PrintAdvisory: PDF readers are asked to honour it
No copying textReaders block selecting and copyingAdvisory
No editingReaders refuse to change pages, forms or commentsAdvisory

Choosing and keeping the password

  • Use at least 8 characters, or three or four unrelated words. Short passwords such as a birth date can be tried by a computer very quickly.
  • There is no way to recover a forgotten password, on this site or anywhere else. Save it in a password manager before you send the file.
  • Send the password a different way from the file, for example the file by email and the password by text message.
  • Accented letters work, but the person opening the file must type them exactly the same way.

Protect / Unlock PDF: common questions

Can it remove a password I do not know?
No. A PDF locked with an open password can only be decrypted with that password. If you have the password and just want a copy that opens without it, this tool does that. A PDF that only has printing or copying restrictions can be unlocked without a password.
Is the rest of the PDF changed?
No. qpdf only encrypts or decrypts the file: pages, text, images, fonts, form fields, links and bookmarks stay exactly as they were, so the quality and the size hardly change.
Are my file and password sent anywhere?
No. The file is read into your browser tab and processed by qpdf in a background worker. The password is used for that one job and is not stored.