Windows 11 doesn’t have a simple “lock this folder with a password” button. But you can still protect a folder for free. Here are the methods that actually keep files private, from easiest to strongest.
Best free option: install 7-Zip, right-click the folder → 7-Zip → Add to archive → set Archive format: 7z, enter a password, tick Encrypt file names → OK. Then delete the original folder.
Method 1: 7-Zip password archive (free, works everywhere)
- Download 7-Zip from 7-zip.org and install it.
- Right-click your folder → Show more options → 7-Zip → Add to archive.
- Choose 7z format, type a strong password twice, tick Encrypt file names.
- Click OK, check the .7z opens with your password, then delete the original folder.
This uses AES-256 encryption, so without the password the files can’t be opened, even on another PC.

Method 2: Built-in EFS encryption (Windows Pro/Enterprise)
- Right-click the folder → Properties → Advanced.
- Tick Encrypt contents to secure data → OK → Apply.
- Back up the encryption certificate when Windows prompts you.
EFS locks files to your Windows account: other users can’t open them, but anyone logged in as you can. Not available on Windows Home.
Method 3: BitLocker / BitLocker To Go
To protect a whole drive or USB stick: right-click the drive → Turn on BitLocker (Pro editions) and set a password. Windows Home users with supported hardware get Device encryption under Settings → Privacy & security.

Method 4: Hide a folder (not real security)
Right-click → Properties → tick Hidden. It only hides the folder from casual view; anyone can show hidden items. The old “.bat folder locker” tricks are just as weak. Don’t use them for anything sensitive.
Which method should you use?
| Need | Use |
|---|---|
| Lock a few personal files | 7-Zip encrypted archive |
| Protect from other users on the same PC | EFS (Pro) or separate user accounts |
| Protect a whole drive or pen drive | BitLocker / BitLocker To Go |
| Just keep it out of sight | Hidden attribute |

Related guides
- Remove shortcut virus from pen drive
- Check if Windows is 32-bit or 64-bit
- Create a partition in Windows 11
Frequently asked questions
Can I lock a folder with a password in Windows 11 without software?
Not directly. EFS (Pro) and BitLocker encrypt without extra software; 7-Zip is the easiest free option for a password.
Is hiding a folder safe?
No. Hidden folders are easy to reveal. Use encryption instead.
What if I forget the 7-Zip password?
The files can’t be recovered. Store the password safely.
Does EFS work on Windows 11 Home?
No. EFS and BitLocker management are in Pro/Enterprise editions.
How do I lock a pen drive?
Use BitLocker To Go: right-click the USB drive → Turn on BitLocker.




