Skip to content
nah

Protect PDF

Add AES-128 password encryption to your PDF and control printing, copying, and editing permissions.

100% in your browser — files never leave your device

What password protection actually does

PDF password protection uses AES-128 encryption to scramble the document's content. Without the correct password, a reader cannot decode the file. The password is never stored anywhere — not in the file, not on any server. Everything runs locally in your browser.

Beyond the open password, you can separately control what an authenticated reader can do with the document: whether they can print it at high resolution, copy text to the clipboard, modify the content, or add annotations. These restrictions are enforced by conforming readers; tools that ignore PDF permissions can bypass them.

For the highest security, use a strong password (12+ characters, mixed case, numbers, and symbols) and keep a secure copy. There is no recovery mechanism once a document is protected.

Frequently asked questions

What encryption algorithm is used to protect the PDF?

The tool uses AES-128 encryption via the pdf-lib library, which applies PDF standard security revision 4 (V=4, R=4). This is the encryption level used by standard PDF 1.6/1.7 documents and is compatible with all major PDF viewers including Adobe Acrobat, Preview, and Chrome.

What is the difference between the user password and owner password?

The user password is required to open the document. The owner password grants full access regardless of any permission restrictions you set. If you do not set a separate owner password, the user password is also used as the owner password.

Can I restrict printing or copying even after setting a password?

Yes. The permissions panel lets you independently allow or deny printing, copying text, modifying content, and adding annotations. These restrictions are enforced by conforming PDF readers, though they can be bypassed by software that ignores PDF permissions.

What happens if I forget the password?

There is no password recovery. The password is never stored — all processing happens in your browser and no data is sent to any server. Keep a secure record of the password before protecting your document.

Are my files uploaded to protect them?

No. The entire protection process runs in your browser using JavaScript. Your PDF and your password are never transmitted to any server.

Related tools

How to use Protect PDF

Use the free tool above, or check the options on your device. No subscription or account is required for the browser tool.

Protect PDF in your browser

Free browser tool — no installation

  1. Drop a PDF into the file area or click to browse.
  2. Enter and confirm a password; optionally set an owner password and printing, copying, modification and annotation permissions.
  3. Select Protect & Download and save the downloaded PDF.

Store the password separately. Viewer support determines how permission restrictions are enforced. The file picker accepts up to 100 MB per input file; available browser memory may limit processing further.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

Add a PDF opening password

Built-in app

  1. In Preview choose File > Export, enter a new filename, and click Permissions.
  2. Enable Require Password To Open Document and confirm the password. Set the owner password, click Apply, then Save.

Preview on Mac. Keep the passwords safely; the opening password takes effect when the saved PDF is reopened.

Source: Apple: Password-protect a PDF. Checked 2026-10-31.

Protect PDF on Windows

Free browser tool — no installation

Use the tool on this page in Edge, Chrome, or Firefox. These steps use the browser tool; they do not require an extra app.

  1. Drop a PDF into the file area or click to browse.
  2. Enter and confirm a password; optionally set an owner password and printing, copying, modification and annotation permissions.
  3. Select Protect & Download and save the downloaded PDF.

Store the password separately. Viewer support determines how permission restrictions are enforced. The file picker accepts up to 100 MB per input file; available browser memory may limit processing further.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

For file tools, choose a copy of the original. Find saved results in your browser’s Downloads menu; your browser may ask where to save them. If processing fails, keep the original and try a smaller file or a desktop browser.

Lock a PDF with Preview (iOS 26)

Built-in app

  1. Duplicate the PDF, open the filename actions, and choose Lock > Require Password.
  2. Enter matching Password and Verify values, then tap Done.

Requires iOS 26 Preview. Keep the password safely; there is no password recovery.

The source documents iPhone controls; iPad layout may differ. The browser method is also available.

Source: Apple: Lock PDFs in Preview (iOS 26). Checked 2026-10-31.

Protect PDF on Android

Free browser tool — no installation

Use the tool on this page in Chrome or another current browser. These steps use the browser tool; they do not require an extra app.

  1. Drop a PDF into the file area or click to browse.
  2. Enter and confirm a password; optionally set an owner password and printing, copying, modification and annotation permissions.
  3. Select Protect & Download and save the downloaded PDF.

Store the password separately. Viewer support determines how permission restrictions are enforced. The file picker accepts up to 100 MB per input file; available browser memory may limit processing further.

Processing happens on your device in the browser. Large files may exceed your device’s available memory.

For file tools, choose a document from the system file picker. Saved downloads are usually available in your browser’s Downloads menu or your file manager. If processing fails, keep the original and try a smaller file or a desktop browser.