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.
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.
- Open PDFgear.
-
Click Open File in the top left corner.

-
Find your PDF, select it, and click Open.

-
Click Tools in the top menu, then select Password.

-
Enter your desired password twice and click OK.

-
A pop-up warns you to save your changes. Click OK.

-
Click the Save icon in the top left corner.

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.
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.
- Open File Explorer and find your PDF.
- Right-click the PDF file.
-
If you are on Windows 11, click Show more options.

-
Hover over 7-Zip and click Add to archive.

-
Set Archive format to 7z or zip.

- In the Encryption section on the right, type your password in both fields. Leave Encryption method set to AES-256.
-
Optional: If you chose 7z, check Encrypt file names. This hides the file names inside the archive.

- 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.
- Open LibreOffice.
-
Click Open File in the top left corner, find your PDF, and click Open.

-
Click File in the top left corner, hover over Export As, and select Export as PDF.

-
In the options window, select Security in the left menu and then click Set Passwords.

-
Type your password in both top fields. Optional: You can also set a second password below that blocks editing. Click OK.

-
Click Export at the bottom of the window.

-
Pick a folder, type a new file name, and click Save.

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.
Related:
How to remove a password from a PDF file using your browser
How to hide files and folders in Windows 10 and 11