Windows doesn’t have a built-in way to put a password on a folder. The simplest reliable method is to put the folder in an encrypted archive with the free 7-Zip app: right-click the folder, choose 7-Zip > Add to archive, enter a password, set Encryption method to AES-256, and click OK. Then delete the original folder. For stronger, everyday protection, use BitLocker (Windows Pro) or VeraCrypt to create an encrypted drive that unlocks with a password.
Which method should you use?
| Method | Windows edition | Password prompt? | Best for |
|---|---|---|---|
| 7-Zip encrypted archive | Any | Yes | Files you open occasionally or send to someone |
| BitLocker encrypted virtual drive | Pro, Enterprise, Education | Yes | A private “drive” you use often |
| VeraCrypt container | Any | Yes | Strong encryption on Windows Home |
| EFS (Encrypt contents) | Pro, Enterprise, Education | No, tied to your account | Protecting files from other users on the same PC |
Method 1: Password-protect a folder with 7-Zip
- Download and install 7-Zip from its official site, 7-zip.org.
- Right-click the folder you want to protect. On Windows 11, click Show more options first.
- Choose 7-Zip > Add to archive.
- Set Archive format to 7z (or zip if others need to open it without 7-Zip).
- Under Encryption, enter and reenter a strong password.
- Set Encryption method to AES-256, and check Encrypt file names (7z only) to hide the file list too.
- Click OK.
- Open the new archive to confirm it asks for your password, then delete the original folder and empty the Recycle Bin.

To use the files, double-click the archive, enter the password, and extract them. Remember to re-archive and delete the extracted copy when you’re done.
Method 2: Create a password-protected drive with BitLocker (Pro)
- Right-click Start and open Disk Management.
- Click Action > Create VHD. Choose a location and size, like 5 GB, select VHDX and Dynamically expanding, and click OK.
- Right-click the new disk, choose Initialize Disk > GPT, then right-click the unallocated space and create a New Simple Volume.
- Open File Explorer, right-click the new drive, and choose Turn on BitLocker.
- Choose Use a password to unlock the drive, save the recovery key somewhere safe, and start encrypting.
Double-click the .vhdx file to mount it, and enter your password to unlock it. Right-click the drive and choose Eject to lock it again.
Method 3: Use VeraCrypt (works on Windows Home)
VeraCrypt is a free, open-source encryption tool. Create an encrypted file container with a password, then mount it as a drive letter whenever you need your files. Download it only from veracrypt.fr.
Method 4: Encrypt with EFS (no password prompt)
- Right-click the folder and choose Properties > Advanced.
- Check Encrypt contents to secure data and click OK > Apply.
- Back up your encryption key when Windows prompts you.
EFS doesn’t ask for a separate password. The files open normally when you’re signed in to your account, but other user accounts can’t read them.
Avoid “folder lock” scripts
Guides sometimes share a batch file that “locks” a folder with a password. These only hide the folder, the password is stored in plain text inside the script, and anyone who opens the file can read it. Use real encryption instead.
Frequently asked questions
Can I password-protect a folder in Windows without software?
Not with a true password prompt, except through BitLocker on Pro editions. EFS protects folders without software but uses your account sign-in instead of a password.
What if I forget the password?
Encrypted archives and VeraCrypt containers can’t be recovered without the password. Store it in a password manager. For BitLocker, use the recovery key you saved.
Is a password-protected ZIP secure?
Only with AES-256 encryption. The older “ZipCrypto” method is weak, so choose AES-256 in 7-Zip.
Can I password-protect a folder on OneDrive?
Yes. OneDrive’s Personal Vault requires extra verification to open, and Microsoft 365 subscribers can password-protect shared links.

Kermit Matthews is a freelance writer based in Philadelphia, Pennsylvania with more than a decade of experience writing technology guides. He has a Bachelor’s and Master’s degree in Computer Science and has spent much of his professional career in IT management.
He specializes in writing content about iPhones, Android devices, Microsoft Office, and many other popular applications and devices.