How-to guide

How to password-protect a PDF

Add a password to a PDF so only people with the password can open it — and optionally restrict printing, copying, or editing for everyone else. PDFly encrypts the file in your browser, so the original and the protected output never leave your device.

2 min read

PDFs that travel — contracts to clients, payslips to employees, exam papers to graders — often need to be readable only by a specific person. A password makes that explicit: even if the PDF is forwarded, dropped on Slack, or attached to the wrong email thread, it stays opaque without the password.

PDFly's Protect tool offers two layers. The **User password** (required) gates opening: no password, no view. The **Owner password** (optional) gates editing — pick what readers can do (print, copy text, fill forms, add comments) and what stays locked. Both are 256-bit AES encrypted by default; nothing leaves your browser.

  1. 1

    Step 1 — Open the Protect tool

    Open the Protect tool. The upload screen titled "Password Protect PDF Files" is where you drop the PDF you want to lock.

    PDFly Protect tool upload screen, ready to receive a PDF you want to encrypt with a password
  2. 2

    Step 2 — Upload your PDF

    Click "Select PDF files" and pick the PDF you want to protect — or drop it onto the page. The password fields appear in the sidebar after upload.

    Select PDF files button highlighted on PDFly's Protect upload screen for choosing the PDF to encrypt with a password
  3. 3

    Step 3 — Set the passwords

    In the sidebar, type a password into the "User Password (Required)" field — this is what readers will need to open the PDF. Optionally, set an "Owner Password (Optional)" too: this lets you keep the PDF readable for everyone but lock down which actions (printing, copying, editing) require the owner password to perform.

    PDFly Protect tool sidebar after uploading a PDF, showing the User Password (required) and Owner Password (optional) input fields ready for entry
  4. 4

    Step 4 — Protect and download

    Click "Protect File" to encrypt the PDF and start the download. Save the password somewhere safe — without it the file becomes unreadable, and PDFly never stores it. Send the protected PDF and the password through different channels (e.g., email the file, text the password) so a single intercepted message doesn't expose both.

    PDFly Protect tool sidebar with both password fields filled and the Protect File action button ready to encrypt the PDF and trigger the download

Related guides

Frequently asked questions

More how-to guides

How to password-protect a PDF | PDFly