If you share your computer or store private documents, you may want to password protect a folder in Windows to keep other people from easily accessing its contents.
Windows 10 and Windows 11 do not include a built-in option to assign a separate password directly to a folder. Instead, you can protect your files in two main ways:
- Create an encrypted archive protected with a password using 7-Zip or WinRAR.
- Use Windows EFS encryption, which protects files through your Windows user account on supported editions.
If you want a separate password that you must enter to access the files, 7-Zip is probably the most practical option.
How to Password Protect a Folder with 7-Zip
7-Zip is a free tool that lets you create an encrypted archive containing the files in a folder and protect it with a password. To do it:
1. Download and install 7-Zip from the official 7-Zip website.
2. Right-click the folder you want to protect and select 7-Zip > Add to archive.
In Windows 11, you may need to select Show more options first.
3. Choose 7z as the archive format.
4. Under Encryption, enter/confirm your password, and select AES-256 as the encryption method.
5. Enable Encrypt file names and click OK.

7-Zip will create a protected .7z archive. You will need the password to access the files inside it.
Before deleting the original folder, open the encrypted archive and make sure you can access its contents correctly. If the files are important, keep a backup and store the password somewhere safe.
Protect a Folder Without Software Using EFS
If you do not want to install additional software, some editions of Windows include EFS (Encrypting File System). EFS does not assign a separate password to the folder. Instead, it encrypts the files and associates access with your Windows user account and encryption certificate. To use it:
1. Open File Explorer and right-click the folder.
2. Select Properties, and then click Advanced.
3. Enable Encrypt contents to secure data.
4. Click OK, and then Apply.
5. When Windows asks how you want to apply the changes, choose the option to encrypt the folder, subfolders, and files.

The files will now be encrypted and associated with your Windows user account.
Important Before Using EFS
EFS is not available in Windows Home editions. If you use Windows 10 Home or Windows 11 Home, you will need an alternative such as 7-Zip or WinRAR.
Also keep in mind that:
- The folder will not have its own independent password.
- Anyone with access to your Windows session while you are signed in may also be able to access the files.
- You should back up your EFS certificate and encryption key so you do not lose access to encrypted files.
If you want to lock a folder in Windows 11 with a separate password, 7-Zip or WinRAR is usually a better option.
Password Protect a Folder with WinRAR
WinRAR can also create an encrypted archive containing the files in a folder and protect it with a password that is independent of your Windows account. To do it:
1. Right-click the folder and select Add to archive.
2. In the WinRAR window, click Set password.
3. Enter and confirm the password.
4. Enable Encrypt file names so other people cannot view the file names without knowing the password.
5. Click OK to create the protected archive.

After creating the archive, open it and confirm that the password works before deleting the original folder.
WinRAR does not provide a built-in way to recover a forgotten archive password, so store it somewhere safe or save it in a password manager.
Which Method Should You Use?
| Method | Independent password | Windows Home | Extra software | Best for |
|---|---|---|---|---|
| 7-Zip | Yes | Yes | Yes | Protecting files with a password |
| EFS | No | No | No | Encrypting files linked to your Windows user account |
| WinRAR | Yes | Yes | Yes | Users who already use WinRAR |
For most users, 7-Zip is the most practical option if they want to protect private files with an independent password.
EFS is useful if you want to encrypt files without installing additional software and use a supported Windows edition, but access is linked to your Windows account rather than to a separate password.
WinRAR offers a solution similar to 7-Zip and is a good alternative if you already have it installed.
What If You Want to Protect a USB Drive or an Entire Drive?
The methods above are intended for files and folders. If you need to encrypt a USB flash drive, external drive, or an entire storage volume, BitLocker is a more appropriate solution on supported Windows editions.
If that is what you need, see how to protect a USB drive with a password using BitLocker To Go and safely store the recovery key.
Note: Manual BitLocker Drive Encryption is available in Windows Pro, Enterprise, and Education editions.
Conclusion
Windows does not let you assign an independent password directly to a folder. If that is what you need, you can create an encrypted archive using 7-Zip or WinRAR.
If you prefer not to install additional software and are using a supported Windows edition, EFS can encrypt your files and link access to your Windows user account.
For most people who simply want to protect private files with an independent password, 7-Zip is the most practical option.





