How to Password Protect a PDF with AES-256 Encryption
An open password with AES-256 is what actually keeps a PDF private. Here are the Protect PDF settings, what the permission switches really do, and how to pick a strong password.
DocsEngine Editorial Team
Protect PDF encrypts the file with 256-bit AES.Key Takeaways & Executive Summary
Protect PDF encrypts your file with 256-bit AES using qpdf, right in your browser.
The user password is required, and it is what keeps the content private: without it, the PDF can’t be opened.
The Allow printing, Allow copying text and Allow editing switches are honored by compliant PDF apps, but they are not a strong barrier on their own.
Length matters most: NIST names password length a primary factor in password strength, and a passphrase is an easy way to get it.
There is no password recovery, so keep the password in a password manager.
Table of Contents
How to password protect a PDF (quick answer)
Step-by-step: protect a PDF with a password
User password vs. owner password
What the permission switches really do
How to choose a strong PDF password
Limitations
Privacy: encryption happens on your device
Frequently Asked Questions
Sources
How to password protect a PDF (quick answer)
Step-by-step: protect a PDF with a password
User password vs. owner password
What the permission switches really do
How to choose a strong PDF password
Limitations
Privacy: encryption happens on your device
Frequently Asked Questions
Sources
How to password protect a PDF (quick answer)
Open Protect PDF, add your PDF, type a password in User Password (Required to Open) and click Protect PDF. The downloaded copy is encrypted with 256-bit AES, and PDF apps ask for that password before they show a single page.
Use a long passphrase rather than a short, complicated password, and send it to the recipient separately from the file.
Step-by-step: protect a PDF with a password
- Open Protect PDF and add your file. You can protect up to 50 PDFs in one run; they all get the same settings.
- Under Document Encryption Settings (AES-256), type the open password in User Password (Required to Open). This field is required.
- Optionally fill in Owner / Master Password (Optional). If you leave it empty, a strong random one is generated for you.
- Set the switches Allow printing, Allow copying text and Allow editing. All three are on by default.
- Click Protect PDF and download the file, named like “contract_protected.pdf”. Several files come back as one ZIP.
- Open the result once and check that the password works before you send it.
User password vs. owner password
A PDF can have two passwords. The PDF standard describes the owner password as giving full access, including the ability to change the passwords and permissions. The user password opens the document, with the permissions stored in the file.
In Protect PDF the user password is mandatory, so every protected file needs a password to open. The owner password only matters for the permission switches. If you leave it empty, the generated owner password is 24 random characters and is never shown, so nobody can use it to change the permissions later. You can still remove all protection with Unlock PDF and the open password.

| Setting | What it does | When to use it |
|---|---|---|
| User Password (Required to Open) | Encrypts the file; nothing can be read without it | Always (the field is required) |
| Owner / Master Password (Optional) | Controls the permissions; 24 random characters if left empty | Set your own only if you need owner access in a PDF editor later |
| Allow printing | When off, compliant apps block all printing | Documents people should read but not print |
| Allow copying text | When off, compliant apps block copying and text extraction | Discouraging copy and paste of the content |
| Allow editing | When off, compliant apps block changes to the document | Final versions, such as an approved report |
What the permission switches really do
The three Allow … switches set permission flags inside the encrypted file. They work because PDF apps choose to respect them. The PDF standard says so directly: once a document has been opened, nothing inherent in PDF encryption enforces the permissions, and conforming readers are expected to honor them. The qpdf manual adds that these restrictions are enforced solely by the software reading the file.
So treat permissions as an instruction to well-behaved apps, not as security. The open password and the AES-256 encryption are what keep other people out. For a closer look at each flag, see how to restrict PDF printing, copying and editing.
No restrictions-only files
Protect PDF always sets an open password. It can’t create a file that opens freely but blocks printing or copying.
How to choose a strong PDF password
Protect PDF doesn’t check password length, so the strength of the result depends on what you type. NIST SP 800-63B, the U.S. password guideline, is written for sign-in systems rather than PDF files, but its findings are a useful guide. It states that password length is a primary factor in password strength, and that passphrases, passwords made of several words, are often an effective way to create a longer password.
For passwords used on their own, NIST sets a minimum of 15 characters and says systems should accept at least 64. It tells systems not to impose composition rules, such as requiring a mix of character types, noting that people respond to those rules in very predictable ways. It also asks systems to reject passwords that appear on lists of commonly used, expected or compromised passwords.
In practice, for a PDF:
- Use several random words, well over 15 characters in total, rather than one word with a few symbols added.
- Avoid anything that can be guessed from the document or from you: names, dates, account numbers or the file name.
- Send the password through a different channel than the file, for example by phone or text message, not in the same email.
- Store it in a password manager. If the password is lost, the file can’t be opened, and DocsEngine has no way to recover it.
Limitations
A PDF that already needs a password to open can’t be protected again directly. Remove the old password first with Unlock PDF (see how to unlock a password-protected PDF), then protect the unlocked copy. A file that only restricts printing or copying can be protected as it is; its old protection is replaced.
The encryption is fixed at 256-bit AES; there are no AES-128 or RC4 options. The qpdf manual points to AES as the only secure choice in the standard PDF security handler and recommends 256-bit if you use AES.
Protect PDF doesn’t watermark, redact or track who opens a file. If you want a visible “Confidential” mark, add one with Watermark PDF before you encrypt. Anyone who has the open password can read and share the content, so only give it to people you trust with it.
The size limit is 600 MB per run on a computer and 200 MB on a phone.
Privacy: encryption happens on your device
Protect PDF runs in your browser, using qpdf compiled to WebAssembly. There is no server option for this tool.
Your file and password stay with you
Your PDF never leaves your device, and neither do the passwords you type. The protected copy is created locally, which is also why DocsEngine can’t recover a forgotten password.
Protect a PDF with a password
Encrypt PDFs with 256-bit AES and choose print, copy and edit permissions. Free, and your file never leaves your browser.
Frequently Asked Questions
Not with Protect PDF, because the open password is required. Permissions on their own are only honored by compliant apps, so the open password is the real protection.
The file can’t be opened, and DocsEngine can’t recover or crack the password. Keep a copy of it in a password manager.
No. If you leave it empty, a random 24-character owner password is generated and never shown, so nobody can use it to change the permissions.
NIST SP 800-63B sets 15 characters as the minimum for passwords used on their own and calls length a primary factor in strength. A passphrase of several random words gets you well past that.
Sources
Table of Contents
How to password protect a PDF (quick answer)
Step-by-step: protect a PDF with a password
User password vs. owner password
What the permission switches really do
How to choose a strong PDF password
Limitations
Privacy: encryption happens on your device
Frequently Asked Questions
Sources
How to password protect a PDF (quick answer)
Step-by-step: protect a PDF with a password
User password vs. owner password
What the permission switches really do
How to choose a strong PDF password
Limitations
Privacy: encryption happens on your device
Frequently Asked Questions
Sources
Protect PDF
Free, no sign-up. Runs in your browser, so your files never leave your device.
Share this guide


