3 ways to password protect a PDF offline (no Adobe, no upload)

Use PDFgear, 7-Zip, or LibreOffice to add a password to a PDF on your computer. All three are free, offline, and require no Adobe account.

ADVERTISEMENT

Password protect a PDF with PDFgear

PDFgear is a free PDF editor for Windows and macOS. It adds a password to a PDF without an account or an internet connection.

  1. Open PDFgear.
  2. Click Open File in the top left corner.
    PDFgear Open File button
  3. Find your PDF, select it, and click Open.
    Open a PDF file in PDFgear
  4. Click Tools in the top menu, then select Password.
    PDFgear Password
  5. Enter your desired password twice and click OK.
    Password protect a PDF file in PDFgear
  6. A pop-up warns you to save your changes. Click OK.
    PDFgear security settings message
  7. Click the Save icon in the top left corner.
    PDFgear save button

Your PDF now asks for a password before it opens. Warning: If you forget the password, you cannot open the file. Save your password in a password manager or write it down somewhere safe.

ADVERTISEMENT

Password protect a PDF with 7-Zip

7-Zip is a free file archiver for Windows. It wraps one or more PDFs in a password-protected archive, so you do not need a PDF editor.

  1. Open File Explorer and find your PDF.
  2. Right-click the PDF file.
  3. If you are on Windows 11, click Show more options.
    Windows 11 Show more options for PDF file
  4. Hover over 7-Zip and click Add to archive.
    7-Zip Add to archive
  5. Set Archive format to 7z or zip.
    Set archive format in 7-Zip
  6. In the Encryption section on the right, type your password in both fields. Leave Encryption method set to AES-256.
  7. Optional: If you chose 7z, check Encrypt file names. This hides the file names inside the archive.
    7-Zip Encryption settings
  8. Click OK. 7-Zip creates the password-protected archive.

Your PDF is now inside a password-protected archive. Warning: If you forget the password, you cannot open the archive. Save your password in a password manager or write it down somewhere safe.

Password protect a PDF with LibreOffice

LibreOffice is a free office suite for Windows, macOS, and Linux. It can open a PDF and save a new copy with a password.

  1. Open LibreOffice.
  2. Click Open File in the top left corner, find your PDF, and click Open.
    Open a PDF file in LibreOffice
  3. Click File in the top left corner, hover over Export As, and select Export as PDF.
    Export file as PDF in LibreOffice
  4. In the options window, select Security in the left menu and then click Set Passwords.
    LibreOffice PDF security options
  5. Type your password in both top fields. Optional: You can also set a second password below that blocks editing. Click OK.
    Set passwords in LibreOffice
  6. Click Export at the bottom of the window.
    Export button in LibreOffice
  7. Pick a folder, type a new file name, and click Save.
    Export PDF file in LibreOffice

Your new PDF asks for a password before it opens. Warning: If you forget the password, you cannot open the file. Save your password in a password manager or write it down somewhere safe.

ADVERTISEMENT

Related:

How to remove a password from a PDF file using your browser

How to hide files and folders in Windows 10 and 11


Windows