The simplest way: use built-in Windows encryption
Windows does not have a single "password protect this folder" button. Instead, you use BitLocker (on Windows Pro, Enterprise, or Education editions) or Encrypting File System (EFS) (available on all Windows versions). Both lock the folder so that only your user account can open it — if someone else logs into your computer, they cannot see the files inside.
The catch: these tools encrypt the folder, which means you cannot set a separate password. The folder stays locked as long as you are logged into Windows. If you want a password that works independently — so someone could log into your computer but still cannot open the folder without typing a password — you need a third-party tool instead.
For most people at home, encryption is enough. It stops someone who borrows your computer from snooping. For work files or highly sensitive documents, you may want the extra layer of a separate password.
Key Takeaways
- Windows encryption (BitLocker or EFS) locks a folder to your user account, so only you can open it when logged in — no separate password required.
- BitLocker is faster and more reliable but only works on Windows Pro and higher; EFS works on all Windows versions but is slower.
- If you need a password that works even when you are logged in, you must use a third-party tool like 7-Zip or VeraCrypt.
- Encryption is permanent once you set it — if you forget your Windows password, you cannot recover the files inside.
How to encrypt a folder with EFS (works on all Windows versions)
Right-click the folder you want to protect. Select Properties, then click the Advanced button at the bottom of the General tab. Check the box that says Encrypt contents to find data, then click OK and explore.
Windows will ask whether you want to encrypt just the folder or the folder and all files inside it. Choose Encrypt the folder and its contents. Windows then encrypts everything — this may take a few seconds to a few minutes depending on how many files are inside.
Once encryption is done, the folder icon will show a small lock symbol. Only your user account can open it. If someone else logs into your computer, they will see the folder but cannot open it or see what is inside. If you log out and someone else logs in as a different user, the same protection applies.
To decrypt the folder later, follow the same steps and uncheck the encryption box. This is permanent — do not do it unless you are sure you want the folder readable by anyone who logs into your computer.
How to use BitLocker (Windows Pro, Enterprise, or Education only)
BitLocker encrypts your entire hard drive or a specific external drive, not individual folders. If you have Windows Pro or higher, you can encrypt a USB drive or external hard drive and then store your sensitive folder there.
Plug in the external drive. Right-click it in File Explorer and select Turn on BitLocker. Windows will ask you how you want to unlock the drive — choose Use a password. Enter a password twice, then click Next. Windows will ask where to save your recovery key (a long string of numbers that unlocks the drive if you forget the password). Save it somewhere safe — email it to yourself or write it down and store it separately.
Windows then encrypts the drive. This can take hours if the drive is large, but you can use your computer while it happens. Once done, every time you plug in that drive, Windows will ask for the password before showing you any files on it.
BitLocker is more reliable than EFS and faster for large folders, but it only works on external drives or entire hard drives, not individual folders on your main drive.
Using a third-party tool for a separate password
7-Zip is free and works on all Windows versions. It compresses your folder into a single file and protects it with a password. To use it, right-click the folder, select 7-Zip, then Add to archive. In the window that opens, scroll down to Encryption and choose AES-256. Enter a password twice in the password field, then click OK.
7-Zip creates a single .7z file that contains your entire folder. To open it, double-click the file, and 7-Zip will ask for the password. Once you enter it, you can see and edit the files inside. This method works well if you want to move the folder between computers or email it to someone — the password travels with the file.
The downside: every time you want to edit a file, you have to extract it from the archive first. For folders you access constantly, this gets tedious. For folders you store and rarely touch, it is ideal.
VeraCrypt is another free option that creates an encrypted container — a virtual drive that appears in File Explorer once you unlock it with a password. It is more complex to set up than 7-Zip but works better if you need to access the folder often without re-entering the password each time.
What happens if you forget your password or encryption key
If you encrypt a folder with EFS and forget your Windows password, the files inside are permanently inaccessible. Windows cannot recover them, and no tool can break the encryption. This is by design — it is what makes encryption find.
If you use BitLocker and forget the password, you can unlock the drive with the recovery key you saved during setup. If you did not save the recovery key, the drive is permanently locked. Write down or email your recovery key when ready after setting up BitLocker, and store it somewhere you will remember.
If you use 7-Zip or VeraCrypt and forget the password, the file is permanently locked. These tools do not have recovery options.
Comparing your options at a glance
| Method | Works on all Windows? | Separate password? | Setup time | Best for |
|---|---|---|---|---|
| EFS encryption | Yes | No (tied to Windows login) | 30 seconds | Quick protection, folders you access often |
| BitLocker | No (Pro and higher only) | Yes | 2 minutes setup, hours to encrypt | External drives, maximum security |
| 7-Zip archive | Yes | Yes | 1 minute | Folders you store and rarely change |
| VeraCrypt | Yes | Yes | 5 minutes | Folders you access often with a separate password |
Frequently Asked Questions
Can I password protect a folder without encrypting it?
Not with Windows built-in tools. Encryption and password protection are linked — to lock a folder, Windows encrypts it. Third-party tools like 7-Zip add a password by compressing the folder into a protected file. If you want a password without encryption, you would need specialized software, which is rare and usually not worth the complexity.
What if I encrypt a folder and then share my computer with someone else?
They cannot open the folder unless they log into your user account. If they log in as a different user, the encrypted folder is invisible to them. If they know your Windows password and log in as you, they can open the folder. Encryption only protects against other user accounts, not against someone who knows your login.
Can I encrypt a folder on an external USB drive?
Yes. Use BitLocker if you have Windows Pro (it encrypts the entire drive), or use 7-Zip to create a password-protected archive on the drive. EFS also works on external drives, but it ties the encryption to your Windows account, so the drive will only unlock when you are logged in on that specific computer.
Does encryption slow down my computer?
EFS has minimal impact on speed. BitLocker can slow down a drive slightly, but most people do not notice. The encryption and decryption happen in the background. The main slowdown comes during the initial encryption process, which can take hours for large drives.
If I move an encrypted folder to a different computer, will it still be locked?
If you use EFS, the folder will be locked but unreadable on the other computer because it is encrypted to your user account. If you use 7-Zip, the password-protected file moves with you and works on any computer with 7-Zip installed. BitLocker-encrypted drives only unlock on computers with BitLocker (Windows Pro and higher).