iSumsoft» Windows Tips »3 easy ways to compress and password protect files/folder in Windows 10 & 11

3 Easy Ways to Compress and Password Protect Files/Folders in Windows 10 & 11

Lucas Watson
Lucas Watson

Updated:

To save hard drive space or quickly send and receive files, various compressed file formats are widely used for their convenience and efficiency. But do you know how to compress and password protect a folder? Many compression software programs offer encryption. Today, numerous compression tools are available online with similar functions. We recommend using 7-Zip or WinRAR.

If you want to secure your data, read this article to learn 3 easy ways to compress and password protect files/folders in Windows 10 & 11.


Part 1. Compress and password protect a folder with 7-zip

7-Zip is a popular, free, open-source compression software with an excellent compression ratio. Although it can't create RAR files, it can open almost all mainstream file formats.

Compress and encrypt the folder

The following content will show you how to use 7-Zip to password protect a file.

Step 1: Download 7-Zip and install it on your computer.

Step 2: Right-click the folder you want to compress and encrypt, hover over 7-Zip, and then click Add to archive. We're compressing the test folder as an example.

Add to archive

Note: These functions will be available after installing 7-Zip. If you can't find them, you may not have installed it successfully.

Step 3: You can choose a path to save the compressed file by clicking the Browse icon.

Choose a path

Step 4: Enter a password twice and click OK.

Set password

Decompress the file

Step 1: Right-click the archive you just saved, hover over 7-Zip, and then click Open archive.

Open archive

Step 2: Select the file and click Extract.

Extract

Step 3: Select a path to extract the file.

Choose a path

Step 4: Enter the password you set and click OK. After that, you can access the file normally.

Enter password

Part 2. Compress and password protect a folder with WinRAR

With WinRAR, you can compress and create both RAR and ZIP files. It also encrypts files more securely due to its better encryption algorithm.

Compress and encrypt the folder.

This part will show you how to create a ZIP file and password protect it with WinRAR.

Step 1: Download WinRAR and install it on your computer.

Step 2: Right-click the folder you want to compress and encrypt, and then click Add to archive. We're compressing the test folder as an example.

Add to archive

Step 3: You can click Browse to choose a path to save the archive.

Choose a path to save the archive

Step 4: Click Set password.

Set password

Step 5: Enter a password twice and click OK.

Set password

Step 6: Click OK to complete.

Click OK

Decompress the file

Step 1: Right-click the archive you just saved and click Extract Here, or you can click Extract files to choose another path.

Extract files

Step 2: Enter the password and click OK.

Enter password

Part 3. Compress and password protect a folder with Windows

Windows also offers a function to encrypt files, which is used to block other users on the computer from accessing them.

Note: This feature is not available in Windows Home edition.

Step 1: Right-click the folder you want to compress and encrypt, hover over Send to, and then click Compressed (zipped) folder.

Compressed (zipped) folder

Step 2: Right-click the compressed folder and click Properties.

Properties

Step 3: Click Advanced.

Advanced

Step 4: Check Encrypt contents to secure data and then click OK.

Encrypt contents to secure data

Step 5: Select Encrypt the file only and then click OK.

Encrypt the file only

Step 6: Click Apply and then click OK.

Click Apply and then click OK.

Summary: The above three methods all show how to compress and password protect a folder in different situations. You can choose an appropriate way to secure your data.