Windows 11 has no setting that puts a password on an ordinary folder, so the reliable way to password protect a folder is to put it in an encrypted archive with the free 7-Zip app. Select the folder in 7-Zip, click Add, choose the 7z format, enter a password, turn on Encrypt file names, and click OK. Anyone who opens the resulting .7z file has to enter that password to see or extract what’s inside.
These steps work on Windows 11 Home and Pro (and on Windows 10) with the current version of 7-Zip, as of October 2026. If you have Windows 11 Pro, Enterprise or Education and only need to keep other people who use your PC out of a folder, the built-in encryption option at the end of this guide is an alternative.
What You Need to Know First
- The password protects the archive, not the original folder. 7-Zip makes an encrypted copy. The original folder stays unprotected until you delete it.
- There’s no password recovery. If you forget the password, the files in the archive can’t be opened. Store it in a password manager.
- Hiding a folder isn’t protecting it. Hidden folders and the “folder lock” batch scripts found online don’t encrypt anything, and anyone who knows where to look can open them.
Install 7-Zip
- Go to the official 7-Zip download page.
- Download the installer for your PC. Most Windows 11 computers need the 64-bit x64 version. Some newer laptops with Snapdragon processors need the ARM64 version. If you aren’t sure, see how to tell whether your Windows 11 PC is 32-bit or 64-bit.
- Open the downloaded file and click Install, then Close.
Password Protect a Folder With 7-Zip
- Click Start, type 7-Zip, and open 7-Zip File Manager.
- Browse to the location that contains your folder, such as C:\Users\YourName\Documents, and click the folder once to select it. Don’t open it.
- Click Add in the toolbar. The Add to Archive window opens.
- In the Archive box at the top, check the name and save location for the new file. Pick a name that doesn’t reveal what’s inside, because the archive’s own file name is always visible.
- Set Archive format to 7z.
- Under Encryption on the right, type your password in Enter password and again in Reenter password.
- Make sure Encryption method shows AES-256, then check Encrypt file names. This hides the names of the files inside, not just their contents.

- Click OK. A progress window appears, and when it closes you’ll have a new file ending in .7z in the location you chose.
7-Zip’s 7z format page explains that the 7z format uses AES-256 encryption with a key generated from your password.
You can also start from File Explorer: right-click the folder, click Show more options, then choose 7-Zip > Add to archive. That opens the same Add to Archive window.
Test the Archive Before You Delete Anything
- Close 7-Zip, then double-click the new .7z file. 7-Zip asks for the password before showing any files. If it shows the file list right away, Encrypt file names wasn’t turned on, so make the archive again.

- Enter the password. The folder’s contents appear.
- Click Extract, choose an empty folder such as a new folder on your desktop, and click OK.
- Open a few of the extracted files to confirm they work.
Once the test copy opens correctly, delete the test folder and the original folder if you don’t need unprotected copies. Check the Recycle Bin, and any OneDrive or backup copies, too, since those aren’t protected by the archive password.
Open or Update the Protected Folder Later
To get to your files, double-click the .7z file, enter the password, and either open a file directly or click Extract to copy everything out. Files you extract are ordinary, unprotected copies, so delete them when you’re done.
The archive doesn’t update itself. If you change files, add them back with the Add button in 7-Zip File Manager while the archive is open, or create a new archive with the same password. Windows 11’s built-in ZIP tools can’t open password-protected archives, so anyone you share the file with needs 7-Zip or another app that supports encrypted 7z files. Send them the password separately, not in the same email as the file.
Use a Password-Protected ZIP Instead
If the person you’re sending files to doesn’t have 7-Zip, a ZIP file is more familiar. In the Add to Archive window, set Archive format to zip, enter the password twice, and choose AES-256 as the encryption method. ZIP files can’t encrypt file names, so the names of the files inside stay visible even though the contents are locked. For more on ZIP files in general, see our guide on how to zip and unzip files in Windows.
Alternative: Encrypt a Folder With Windows (Pro Editions Only)
Windows 11 Pro, Enterprise and Education include the Encrypting File System (EFS). It doesn’t ask for a separate password. Instead, the folder opens normally when you’re signed in to your Windows account and is unreadable to other user accounts on the PC. Microsoft notes that file encryption isn’t available in Windows Home.
- Right-click the folder and choose Properties.
- Click Advanced on the General tab.
- Check Encrypt contents to secure data, then click OK.

- Click Apply, choose Apply changes to this folder, subfolders and files, and click OK.
A small lock icon appears on the folder. Windows then offers to back up your encryption key. Accept it, or run cipher /x in Command Prompt as described in Microsoft’s cipher command reference, and keep the .pfx backup on a separate drive. Without that key, a Windows reinstall or a reset account can lock you out of your own files.
If you want to protect an entire drive instead of one folder, see how to enable BitLocker in Windows 11.
Troubleshooting
- There’s no 7-Zip option when I right-click. In Windows 11, 7-Zip appears under Show more options. You can also skip the right-click menu and use 7-Zip File Manager as shown above.
- Encrypt file names is grayed out. That option only works with the 7z format. Change Archive format to 7z.
- The password doesn’t work. Passwords are case-sensitive, so check that Caps Lock is off and that your keyboard layout hasn’t changed. 7-Zip can’t recover a forgotten password.
- Encrypt contents to secure data is grayed out. Your PC runs Windows 11 Home, or the folder is on a drive formatted as FAT32 or exFAT, such as many USB flash drives. Use 7-Zip instead.
Frequently Asked Questions
Can I password protect a folder in Windows 11 without software?
Not with a true password. Windows 11 Pro’s encryption option protects folders with your account sign-in instead, and Windows 11 Home has no built-in folder encryption at all. A free tool like 7-Zip is the simplest way to add a password.
Is a 7-Zip password secure?
Yes, if you use a long, unique password. The 7z format uses AES-256 encryption, and with Encrypt file names turned on, someone without the password can’t even see what files the archive holds.
Does password protecting a folder slow down my PC?
No. 7-Zip only works while it’s creating or opening the archive. EFS encrypts and decrypts files as you open them, which most people won’t notice.
Can I make a folder ask for a password when I double-click it?
Not with Windows’ built-in tools. Third-party “folder lock” apps offer this, but check that they actually encrypt files rather than just hiding them. An encrypted 7z archive is the closest free option.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.