DT
DevToolKit
Clearly labeled tools
Tools
Workspaces
Resources
Browse tools
DT
DevToolKit
Practical PDF, image, developer, and everyday tools

Clearly labeled processing for everyday tasks.

Core processing runs in the browser for most tools. Server-backed and external-provider workflows are labeled separately. Basic tools are available without signup; individual limits vary by tool.

46 unique tools4 workspacesNo signup for basic tools
Browse toolsTrust Center
Tools
All toolsPDF workspaceImage studioDeveloper workbenchGeneral tools
Product
BlogSupportContact
Company
AboutTrust CenterPrivacy PolicyTerms of Use

© 2026 DevToolKit. Practical PDF, image, developer, and everyday tools with clearly labeled processing.

In-browserServer-backedExternal preview
amanhirut32@gmail.com
HomeToolsPDFPDF Password Protector

PDF Password Protector

  • In-browser
  • No signup
  • Password lock

Encrypt one PDF with a required open password, optional owner password, and viewer permission presets or custom print, copy, edit, and annotate controls.

Core processing runs in your browser and does not upload this file for the task.

Preparing the editor...

The guide and instructions on this page are available while the tool loads.

Continue your workflow

  • PDF UnlockerRemove a password when you know it. Protect only encrypts a new copy.
  • PDF CompressorReduce file size. Protect encrypts; it does not compress.
  • PDF SplitterExtract pages from a PDF. Protect encrypts the whole file; it does not split.

What this tool does

PDF Password Protector writes a new encrypted PDF. You must set an open password. An optional owner password is used when provided; otherwise the open password is reused as the owner password.

Choose this tool when…

  • You have an unencrypted PDF you are allowed to encrypt before sharing.
  • You want a Share, View only, Flexible, or Custom permission preset on the new file.

Typical jobs this page is built for

  • Add an open password before emailing a working copy.
  • Use View only when you want print/copy/modify/annotate flags all off in the new file.
  • Set a separate owner password when you do not want it to match the open password.

How processing actually works

pdf-lib-plus-encrypt loads the bytes, then encrypt({ userPassword, ownerPassword, permissions }). Printing is stored as highResolution or false. The download is {base}-protected.pdf.

Share
Print on; copy, modify, annotate off.
View only
Print, copy, modify, annotate all off.
Flexible
Print, copy, and annotate on; modify off.
Custom
Each of those four flags is taken from the checkboxes.

Supported files, outputs, and limits

Input
One PDF, up to 50 MB.
Output
{base}-protected.pdf
Passwords
Open password required and must match confirmation. Generate-password helper builds a 12–32 character mix from a limited character set.

Step-by-step workflow

  1. Upload a PDF that is not already encrypted.
  2. Enter and confirm the open password.
  3. Optionally set a different owner password.
  4. Pick Share, View only, Flexible, or Custom.
  5. Click Protect PDF.
  6. Open {base}-protected.pdf in a reader and test the password.

What changes in the output

The result is a newly encrypted PDF. Rewriting typically invalidates existing certificate signatures. Store the password; the tool does not recover it later.

Privacy and where processing occurs

Encryption runs in the browser. The PDF and passwords are not uploaded to a protection API. Identified analytics may include byte counts and permission-preset labels, not the password strings or document text.

How this differs from nearby DevToolKit tools

  • PDF Unlocker decrypts when you already know a current password, using QPDF WebAssembly.
  • PDF Editor & Signer is a server-backed visual editor, not an encryption tool.

Output review checklist

  • Confirm a reader prompts for the open password.
  • Check print/copy behavior in the reader you actually use.
  • Keep an unencrypted original if you still need it.
  • Rewriting typically invalidates existing certificate signatures.

Frequently asked questions

Does this recover or remove an unknown password?

No. Protect adds encryption to a file that pdf-lib-plus-encrypt can load. If the file is already encrypted, the UI tells you to unlock an authorized copy first.

Are PDF permissions a security guarantee?

The tool writes printing, copying, modifying, and annotating flags as implemented by pdf-lib-plus-encrypt. Readers and other software may not enforce those flags the same way. Treat the open password as the access control you actually set.

What if I leave the owner password blank?

The owner password defaults to the open (user) password. Share, View only, Flexible, and Custom still map to printing/copying/modifying/annotating flags. Printing is stored as highResolution or false.

Does the generate-password helper store the value?

No. It builds a 12–32 character mix from a limited character set in the page. The PDF and passwords are not uploaded to a protection API. Store the password yourself; the tool does not recover it later.

Related guides

Longer reads that pair well with this tool.

PDF guide

How to Choose the Right Online PDF Tool

Match your PDF task to the right DevToolKit tool — merge, split, compress, convert, secure, or edit — and check processing labels before you upload.

PDF guide

How to Compress PDF Files Online

Step-by-step In-browser PDF compression: raster downsampling, structural repacking, and how to treat scanned versus text-heavy files — with no quality guarantee.

PDF guide

Best Free PDF Tools for Students

Practical student workflows — compress scans, merge assignments, split chapters, convert phone photos to PDF, and protect personal records — with honest limits on OCR output.

Related tools

Common next steps after using this tool.

PDF Unlocker

Decrypt one password-protected PDF when you already know a valid current password, then download a separate unlocked working copy.

PDF Compressor

Reduce one PDF using JPEG page rasterization or a non-raster structure repack, then download a separate -compressed.pdf.

PDF Splitter

Divide one PDF into new page-based PDF files using five local split strategies, then download them in a ZIP.

PDF Editor & Signer

Add text, markup, and a drawn visual signature to one PDF, or update detected text blocks, then download a separate -edited.pdf copy.

Explore more in PDF

Browse related tools or open the full workspace.

PDF workspaceAll tools