Protect PDF with a password

Add a password to open your PDF, or restrict printing, copying and editing. The encryption runs in your browser, so neither the file nor the password leaves your device.

Your files never leave your device

Drop PDF files here

One or more PDFs. They are encrypted on your device and never sent anywhere.

You can also paste files with Ctrl+V.

In short

To password protect a PDF, add the file, type a password twice and press Protect PDF. The file is encrypted with AES-256 on your device, so anyone who opens the copy must enter that password. Nothing is uploaded and your original stays unchanged.

How to password protect a PDF

  1. Press Choose PDF files, or drop one or more PDFs onto the page. A file that already has a password is flagged, with a link to remove it first.
  2. Keep Protection on Password to open. Type the password in Password, then again in Confirm password; the bar under the field shows whether it is long enough.
  3. To limit what readers can do as well, switch on Also restrict printing, copying and editing and untick the actions you want to block.
  4. Press Protect PDF, then Download. The new copy ends in "-protected" and asks for the password every time it is opened.

What a PDF password actually does

A PDF can carry two different passwords. The open password (the PDF standard calls it the user password) is the one that matters for privacy: the text, images and fonts of every page are encrypted with a key derived from it, so the file is unreadable until someone types it. The permissions password (the owner password) is weaker by design. The document still opens for everyone, and the PDF only asks reader apps to block printing, copying or editing, which most of them respect and some ignore.

This tool uses QPDF, an open-source PDF library, compiled to run inside your browser tab. It writes the same AES encryption that desktop apps such as Adobe Acrobat use, without sending your file or your password to any server. There is no copy of the password anywhere else, which is also why nobody, including us, can reset it for you.

Frequently asked questions

How do I password protect a PDF for free?

Add the PDF on this page, type a password twice and press Protect PDF. There is no account, no trial and no watermark on the result, and you can protect several files in one go with the same password.

Can I password protect a PDF without Adobe Acrobat?

Yes. Password protection is part of the open PDF standard, not an Adobe feature, and this tool writes it directly in your browser. Files protected here open in Acrobat Reader, in Chrome, Edge, Firefox and Safari, in Preview on a Mac and in the Files app on iPhone, which all ask for the password.

How do I protect a PDF from copying and editing?

Switch on Also restrict printing, copying and editing, then leave Copy text and images and Edit content unticked. If the file should open without a password, choose Restrictions only instead. Keep in mind that restrictions are honoured by reader apps rather than enforced by encryption.

How do I password protect a PDF to send it by email or Outlook?

Protect the PDF here first, then attach the downloaded copy to your message as usual. Send the password through a different channel, such as a text message or a phone call, so that someone who sees the email alone can't open the attachment.

Is a password-protected PDF really secure?

With AES-256 and a long password, the content can't be read without the password; guessing a random 12-character password is far beyond any computer. A short or common password, on the other hand, can be found by trying millions of guesses, so length matters more than special characters.

What happens if I forget the password?

The file can't be opened. The password is not stored in the PDF or on any server, and the encryption has no master key. Keep the unprotected original, or save the password in a password manager before you share the file.

Can I protect a PDF in Microsoft Edge?

Edge opens password-protected PDFs and asks for the password, but its built-in viewer has no option to add one. Open this page in Edge instead: the protection is done by the page itself, inside the browser, and the result downloads to your Downloads folder.

Will protecting the PDF change its content or size?

No. Pages, text, links, bookmarks and form fields stay exactly as they were; only the encryption is added, which barely changes the size. One exception: a digital signature on the file will no longer validate, because the file's bytes change.

Choosing a password that holds up

Every extra character multiplies the number of guesses an attacker needs. A phrase of four or five unrelated words, such as a line nobody would connect to you, is both long and easy to type on a phone. Avoid names, dates and anything printed in the document itself.

  • 8 characters is the minimum worth using; 12 or more is much better.
  • Use a different password for each recipient or batch of documents.
  • Share the password by phone or message, never in the same email as the file.
  • Store it in a password manager: a lost PDF password can't be reset.

AES-256 or AES-128?

AES-256 is the default and the right choice for almost everyone. It has been part of the PDF format since Acrobat X and PDF 2.0, and every current PDF app on Windows, Mac, iPhone, Android and the web opens it. AES-128 exists for very old readers that predate AES-256. It only accepts plain ASCII characters and uses at most 32 of them, so pick it only if someone reports that the AES-256 file won't open.

Restrictions and the permissions password

Turning on restrictions lets you allow printing but block copying, or allow comments but block edits. They are tied to a separate permissions password. If you leave that field empty, a long random one is generated and not shown, which means the permissions can't be changed with a password later; set your own if you may want to adjust them. Remember that restrictions alone don't hide the content: to keep a document private, always set a password to open.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Presets

Guides

Last updated Nov 12, 2026