3 safe ways to password protect a PDF without uploading online
Want to lock a PDF without paying for Adobe or uploading your private files online? Here are 3 fast, free, and completely offline ways to password protect a PDF.
How to password protect a PDF for free with PDFgear
PDFgear is a free, offline PDF editor for Windows and macOS that lets you encrypt files instantly without creating an account.
- Open PDFgear.
-
Click Open File in the top left corner.

-
Navigate to your file, select it, and click Open.

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

-
Enter your desired password twice and click OK.

-
When the security message appears warning you to save, click OK.

-
Click the Save icon in the top left corner to apply the encryption.

The file is now password-protected and encrypted. Warning: If you forget the password, you will not be able to open the encrypted file. Make sure to save your password in a secure password manager or memorize it.
How to encrypt a PDF using 7-Zip (No Acrobat required)
7-Zip is a free, open-source file archiver for Windows that lets you instantly encrypt one or multiple PDF files without needing a dedicated PDF editor.
- Open File Explorer and locate the PDF file you want to encrypt.
- 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 the 'Archive format' to either 7z or zip.

- Go to the 'Encryption' section on the right, enter your password twice, and make sure the 'Encryption method' is set to AES-256.
-
(Optional) If you chose 7z, check the Encrypt file names box to hide the names of the files inside the archive.

- Click OK at the bottom of the window to create your secure archive.
The file is now password-protected and encrypted. Warning: If you forget the password, you will not be able to open the encrypted file. Make sure to save your password in a secure password manager or memorize it.
How to password protect a PDF for free with LibreOffice
LibreOffice is a free, open-source office suite for Windows, macOS, and Linux that includes built-in features to edit and password-protect PDF files.
- Open LibreOffice.
-
Click Open File in the top left corner, select 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.

-
Enter your password twice in the top fields. (Optional: You can also set a separate permission password below to restrict editing.) Click OK.

-
Click Export at the bottom of the PDF Options window.

-
Choose a save location, type a new filename (different from the original), and click Save.

The file is now password-protected and encrypted. Warning: If you forget the password, you will not be able to open the encrypted file. Make sure to save your password in a secure password manager or memorize it.
Related:
How to remove a password from a PDF file using your browser
How to hide files and folders on Windows 10 and 11