Protect PDF
Encrypts a PDF with an AES-256 user password on this page.
About this tool
pdf-lib edits the page structure. Encrypted files are refused unless you are on the unlock page. Standard fonts are used when the tool draws text.
The file must not already be encrypted. AES-256 needs a secure context. The password is not stored.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Protect.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- The file must not already be encrypted. AES-256 needs a secure context. The password is not stored.
Locking with an AES-256 user password
The password you type is the password that locks
The password box must contain at least four characters. A shorter string is rejected before any encryption runs. The refusal states the four-character minimum and that passwords are not guessed. Those characters are the user password passed to the lock. They are not tried against a word list, and they are not stored as a site preference. Anyone who should open the file later needs the same string. Write it down somewhere you control. This page cannot recover it for you afterward.
What the lock writes
On success the file is encrypted with an AES-256 user password. A file that is already encrypted is refused rather than wrapped in a second password. Decrypt it first if you intend to replace the secret, then lock the decrypted bytes. The success text also warns that permissions are not a promise that every reader will enforce them. Flags that some viewers treat as “no printing” or “no copying” are not a reliable barrier. The secret that matters on this page is the password required to open the file. Plan on that, and treat extra permission bits as optional hints some software may ignore.
Practical limits
You get one locked PDF back. The tool does not email it, and it does not keep a copy of the password beside the download. A secure, private machine is the right place to type a real secret, because the value sits in the page’s field like any other control. Empty selections fail like other file tools. If the lock step throws, you have no encrypted download from that run. Confirm you can open the result with the password before you delete the unlocked original. The unlock tool on this site is the matching opener for a file this page locked, and it will demand the same password. It will not search for it. If the lock throws, read the message, fix the password length or start from an unlocked file, and run again. A successful download is the only encrypted result this page produces.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

