DEV Community

Cover image for How to Password Protect a PDF for Free (AES-256, No Desktop App)
Shaishav Patel
Shaishav Patel

Posted on • Originally published at Medium

How to Password Protect a PDF for Free (AES-256, No Desktop App)

You are about to email a PDF. It contains a contract, a financial statement, or personal records. The email will pass through multiple servers, possibly be forwarded, and sit in someone's inbox indefinitely.

Anyone who gets that file can open it.

Unless you password protect it first.


Why Most People Skip PDF Encryption

The honest answer: it is annoying. Adobe Acrobat charges a subscription. Free tools often look sketchy. The ones that work usually require uploading your sensitive file to a server you know nothing about.

So most people just send the file unprotected and hope for the best.

That is not a security strategy.


What PDF Password Protection Actually Does

When you add a password to a PDF, the file is encrypted. The content is scrambled using a cryptographic algorithm. Without the correct password, the file is unreadable — not just "blocked" with a dialog box, but mathematically encrypted.

The strength depends on the encryption standard:

RC4 (40-bit or 128-bit) — Old standard. Used in PDFs from the early 2000s. Weak by modern standards. Can be cracked relatively quickly.

AES-128 — Better. Used by most tools since 2008. Still considered acceptable for low-sensitivity documents.

AES-256 (R=6) — The current gold standard. Used by financial institutions and government agencies. No known practical attack. This is what you want.

Most free online tools use older encryption or do not tell you what standard they use. That matters when you are protecting something important.


How to Protect a PDF for Free (AES-256)

PDF Password Protect uses AES-256 encryption with R=6 — the highest standard available in the PDF specification.

Here is how to use it:

1. Open the tool

Go to PDF Password Protect — no account needed.

2. Upload your PDF

Drag and drop or click to select your file. There is no file size limit.

3. Choose your mode

  • Add Password — encrypts the PDF with a password you set. Enter a User Password (required to open the file) and optionally an Owner Password (controls permissions like printing and editing).
  • Remove Password — if you have a protected PDF and know the password, enter it to create an unlocked copy.

4. Download

Click Apply and Download. Your protected (or unlocked) PDF downloads immediately.


Two Types of PDF Passwords

This is something most people do not know: PDFs can have two different passwords.

User Password — Required to open the file. If you share this with someone, they can view the document. Without it, the PDF is completely unreadable.

Owner Password — Controls what people can do with the file: printing, copying text, editing. If you set an Owner Password but no User Password, anyone can open the file, but their actions may be restricted.

For most use cases, setting a User Password is enough. If you want to prevent printing or editing, set both.


What Happens to Your File

Here is the privacy model:

Your PDF is uploaded to the server for processing — this is necessary because AES-256 encryption requires a cryptographic library (pikepdf) that cannot run in a browser.

The file is encrypted on the server, returned to you as a download, and then deleted immediately. No copy is stored. No backup. No logging of your file contents.

This is different from tools that keep your file for "up to 24 hours" or do not specify their retention policy. The file exists on the server only for the seconds it takes to process.


When to Use PDF Password Protection

Sending contracts or legal documents via email — Email is not encrypted end-to-end. A password-protected PDF adds a meaningful layer of security.

Sharing financial statements — Tax returns, bank statements, invoices with payment details. Encryption protects the contents if the file is forwarded or the recipient's account is compromised.

Distributing confidential reports — Internal business documents, board meeting materials, HR files. Password protection ensures only intended recipients can read them.

Archiving sensitive records — Medical records, identity documents, insurance paperwork. Even if your hard drive or cloud storage is accessed, encrypted PDFs remain protected.

Sending documents to clients — Accountants, lawyers, and consultants regularly share sensitive documents. Password protection is a professional standard.


Alternatives to Ultimate Tools

Adobe Acrobat Pro — The industry standard. Full control over encryption settings. Requires a subscription ($19.99/month). Overkill if you just need to add a password.

Smallpdf — Web-based, easy to use. Uploads your file to their servers. Free tier limited to 2 tasks per day, then $12/month. Uses 128-bit encryption (not AES-256).

LibreOffice — Free desktop app. Open the PDF, export with a password. Works but the process is clunky and requires software installation.

macOS Preview — Built-in on Mac. File, Export, check "Encrypt." Simple but only available on macOS and uses AES-128.

PDF Password Protect (Ultimate Tools) — Web-based, AES-256 (R=6), no account, no file size limit, free. File is deleted immediately after processing.


A Note on "Removing" Passwords

The Remove Password feature is for people who know the password and want to create an unlocked copy. It does not crack or bypass password protection.

If you have forgotten the password to your own PDF, this tool cannot help you. No legitimate tool can instantly crack AES-256 encryption — that is the entire point of using a strong standard.


Start Protecting

If you have a PDF that contains anything you would not want a stranger to read — protect it before you send it.

PDF Password Protect — free, AES-256 encryption. No account needed. No file stored. Works on any device.


Part of Ultimate Tools — a free, privacy-first browser toolkit with 24+ tools for PDFs, images, QR codes, and developer utilities.

Top comments (0)