PDF tools

Password protect a PDF

Add a password to a PDF and save an AES-256 encrypted copy. Your file and your password never leave this device.

The password cannot start with - or @. Up to 127 bytes: 127 letters and digits, fewer for other scripts.

If you forget the password, we cannot recover it for you either. We store it nowhere.

A password with non-Latin or special characters may not open in some PDF apps.

What it does

It adds a password to the PDF you pick and gives you a new file. The encryption is AES-256. Before the download, the tool reopens the result to check that it will not open without the password and does open with it.

It sets no usage limits. There is no print or copy lock, only the password to open. Your original file is untouched.

Choosing the password

If you forget the password, we cannot recover it for you either. It lives only in this page's memory, is cleared when the work ends, and is stored nowhere.

The password cannot start with - or @. The limit is 127 bytes, which is 127 letters and digits and fewer in other scripts. Past that limit the file could not be reopened with the same password, so the tool stops you first.

A password with non-Latin or special characters may not open in some PDF apps. If the reader may use another app, stick to letters and digits.

A PDF that already has a password is not protected again. Remove the old password with Unlock PDF first.

Where your file and password go

Nowhere. Reading the file and encrypting it both happen inside this browser.

This site's code sends your file, its name and your password nowhere. Our server only receives a signal for how far you got. If ads are on, they are loaded separately from the ad company's servers.

The work is done by qpdf compiled to WebAssembly. The engine file (about 1.3 MB) is fetched from this same site when you start the job.