loopdf.com

Protect PDF

Add password protection to your PDF file. Your files are processed in your browser - nothing is uploaded to any server.

Remember your password - it cannot be recovered if forgotten.
Drop PDF file here or click to browse
Select a PDF file to protect

How to Password Protect a PDF

The Protect PDF tool encrypts your file with AES-256 and locks it behind a password. When you set a User Password, the encryption key is derived from that password, so the document contents stay unreadable until someone types the correct string. All of this runs in your browser, which means the file and the password never leave your device.

Here is the full flow to protect a PDF file:

  1. Open the Protect PDF tool page.
  2. Drop a single .pdf file into the dropzone or click to select it.
  3. Type a User Password, which is required to open and view the document.
  4. Optionally expand Advanced Options to add an Owner Password and set permissions.
  5. Click Protect PDF.
  6. Download the encrypted PDF.

Once you download the result, the original file is unchanged and a new, locked copy is created. Anyone who opens it will be prompted for the password you chose.

User Password vs. Owner Password: Which to Use

Encryption scrambles the byte stream of the document using a 256-bit key. A PDF reader reverses that process only when the supplied password matches, so the text, images, and structure remain locked without it. This is different from hiding content or flattening a page, because the raw data itself is unreadable on disk.

There are two password roles, and they control different things:

If you set only a user password, the PDF simply asks for it on open. Add an owner password when you want to let people read the document but stop them from editing, printing, or copying it.

Setting Permissions When You Lock a PDF

Permission controls are written into the encrypted file as flags that compliant readers respect. Expand Advanced Options to reach them. The three checkboxes decide what a viewer can do after opening the document.

Option What it controls When to use it
User Password Whether the file opens at all Any document meant for a limited audience
Owner Password Editing and permission rights Contracts and reports that must stay unchanged
Allow Printing Sending pages to a printer Turn off for confidential drafts
Allow Modifying Editing text, pages, and objects Turn off for signed or final files
Allow Copying Selecting and copying text Turn off to deter content reuse
Leave Advanced Options collapsed if you only need a basic open password. The section stays closed by default so the common case takes fewer clicks.

When To Use Protect PDF

Password protection makes sense whenever a document travels beyond people you fully trust. Because the encryption is bound to the password, forwarding the file does not leak its contents unless the password is shared too. Common cases include:

If you later need to open a locked file you no longer want protected, use Remove Password Protection to strip it. To keep a file small before encrypting, run it through Compress PDF first.

How LooPDF's Protect PDF Differs From Other Approaches

Some tools claim to secure a PDF but only add a visible notice or restriction that any reader can ignore. This tool applies real AES-256 encryption, so the underlying bytes are scrambled rather than merely marked. A few practical differences:

FAQ

It adds a password and AES-256 encryption to a PDF. Encryption scrambles the file contents using a key derived from your password, so the document cannot be read until the correct password is entered. You can set a viewing password on its own or add an owner password with permission controls for printing, modifying, and copying.

The user password is required to open and view the file, since the decryption key depends on it. The owner password governs editing rights and permission flags written into the encrypted file. With an owner password set, viewers can read the document using the user password but cannot modify, print, or copy it unless those permissions are allowed.

No. All encryption runs in your browser, so the PDF and the password stay on your device. The key is derived locally and applied to the file before you download it. Nothing about the password or the document contents is transmitted, which is why you should keep a copy of the password yourself.

The tool uses AES-256, a 256-bit block cipher widely relied on for document protection. The password you enter feeds into the key that scrambles the file, so a longer, less predictable password produces stronger practical protection. AES-256 is the same class of encryption used for many banking and government documents.

Yes. Expand Advanced Options, set an owner password, and clear the Allow Printing, Allow Modifying, or Allow Copying checkboxes as needed. These permission flags are stored in the encrypted file and honored by compliant PDF readers, which check them before letting a viewer print, edit, or select and copy text.

Because the file is encrypted with a key tied to your password, there is no backdoor to recover it. If you lose the user password, the contents cannot be read. Store the password somewhere safe before you share the file. If you still have access to an unprotected copy, you can encrypt it again with a new password.

Use the Remove Password Protection tool. You supply the current password, and it decrypts the file and saves an open copy. This is the reverse of encryption: instead of scrambling the bytes, it uses your password to unlock them and rewrite the document without protection.

No. The pages, text, and images stay exactly as they were. Encryption wraps the existing content in a protective layer rather than editing it. When the correct password decrypts the file, the reader displays the original document unchanged. The only difference a viewer notices is the password prompt before the file opens.

Yes, and the distinction matters. Password protection encrypts the whole file, so an authorized viewer sees everything once they unlock it. Redaction permanently deletes specific content from the document, so nobody sees it regardless of passwords. Use encryption to control access and redaction to erase sensitive details entirely.

The tool accepts a single PDF file per run. If you have several documents, encrypt them one at a time, or combine related files first with Merge PDF and then apply one password to the joined document. Each file keeps its own password unless you merge them into one.

The user password is enforced by the encryption itself, so no reader can open the file without it. Permission flags such as no printing or no copying rely on the reader honoring them. Most mainstream readers do, but the open-password layer is the stronger control because it locks the file rather than trusting the viewer's software.

Because the work runs in your browser, the practical limit depends on your device memory rather than a fixed server cap. Very large files take longer to encrypt and use more memory. If a file is unwieldy, shrink it first with Compress PDF , then apply the password to the smaller result.