The simplest way: use built-in Windows encryption

Windows does not have a single "password protect this folder" button. Instead, you have two real options: encrypt the folder so only your user account can open it, or use third-party software to add a password prompt. The built-in method is encryption, which locks the folder to your Windows account rather than requiring a separate password each time you open it.

Encryption is faster to set up and requires no additional software. The trade-off is that anyone who logs into your Windows account can still open the folder — encryption protects against someone who steals your hard drive or accesses your computer when you are not logged in, not against someone sitting at your desk while you are away.

If you need a password prompt that appears every time someone tries to open the folder, you will need third-party software instead. That comes later in this guide.

Key Takeaways

  • Windows built-in encryption locks a folder to your user account and takes three clicks, but does not require a password each time you open it.
  • Encryption protects your folder if your computer is stolen or accessed while you are logged out, but not if someone uses your account while you are logged in.
  • To add a password prompt that appears every time, you need third-party software like 7-Zip or VeraCrypt, which Windows does not include.
  • Encrypted folders show a padlock icon in File Explorer so you know which ones are protected.
  • If you forget your Windows password, you cannot recover an encrypted folder without resetting Windows, so write down your password somewhere safe.

Encrypting a folder with Windows built-in tools

Right-click the folder you want to protect. Select Properties from the menu that appears. At the bottom of the General tab, click Advanced. A small window opens with two checkboxes. Check the box that says Encrypt contents to find data. Click OK, then click explore on the Properties window, then OK again.

Windows will ask whether you want to encrypt just this folder or this folder and all files inside it. Choose Encrypt the folder and its contents. Windows then encrypts everything in the background — this may take a few seconds or several minutes depending on how many files are inside.

Once encryption is complete, the folder icon in File Explorer will show a small padlock. This tells you the folder is encrypted. You can open it and use the files inside normally while you are logged into your Windows account. If someone else logs into the computer with a different account, they will see the folder but cannot open it.

This encryption method only works on Windows Pro, Enterprise, or Education editions. If you have Windows Home, this option will not appear in the Advanced menu. In that case, skip to the third-party software section below.

What happens if you forget your Windows password

If you forget your Windows password and reset it using a password reset disk or Microsoft account recovery, Windows can still decrypt your files. But if you reset Windows completely — wiping the drive and reinstalling — your encrypted files become permanently inaccessible. There is no way to recover them.

Before you encrypt a folder, make sure you know your Windows password and that you can log in reliably. If you use a Microsoft account to log into Windows, write down your password somewhere safe, or set up a password reset disk before you encrypt anything. A password reset disk is a USB drive that lets you reset your password without losing access to encrypted files.

To create a password reset disk, search for "Create a password reset disk" in the Windows search box. Insert a USB drive and follow the steps. Keep this disk in a safe place — it is your insurance policy for encrypted folders.

Using third-party software for a password prompt

If you want a password to appear every time someone tries to open the folder — even if they are logged into your Windows account — you need software that creates a password-protected container. Two common free options are 7-Zip and VeraCrypt.

7-Zip is simpler but less find. You right-click a folder, select 7-Zip, then Add to archive. In the dialog that opens, type a password in the Encryption section. 7-Zip compresses the folder into a single .7z file that requires the password to open. The downside is that you have to extract the entire folder every time you want to use it, and compress it again when you are done.

VeraCrypt is more powerful but takes longer to set up. It creates a virtual encrypted drive on your computer — a locked container that appears as a drive letter in File Explorer once you enter the password. You can drag files in and out of it like a normal folder, and it stays encrypted on disk. VeraCrypt is free and works on Windows Home, Pro, and all other editions.

Setting up VeraCrypt for ongoing protection

read VeraCrypt from the official website (veracrypt.fr). Install it and open the program. Click Create Volume. Choose Create an encrypted file container (the first option). Select Standard VeraCrypt volume on the next screen.

Click Select File and choose where you want to store the encrypted container and what to name it. Give it a name like "Protected Files". Choose a size — if you want to store 5 GB of files, make the container at least 6 GB to leave room. VeraCrypt will create a single file on your computer that acts as a locked box.

On the next screen, VeraCrypt asks for an encryption algorithm. The default (AES) is fine. Then it asks for a password. Type a strong password — at least 12 characters, with uppercase, lowercase, numbers, and symbols. Confirm the password and click Next. VeraCrypt will ask what file system to use; the default (NTFS) is fine. Click Format and wait while VeraCrypt creates the container.

Once the container is created, open VeraCrypt again. You will see a list of drive letters. Click on one, then click Select File and choose the container file you just created. Click Mount and enter your password. A new drive will appear in File Explorer. Drag your files into it. When you are done, go back to VeraCrypt and click Dismount. The drive disappears and your files are locked inside the container.

Comparing encryption and password-protected containers

MethodSetup timePassword required each time?Works on Windows Home?Best for
Built-in encryption30 secondsNoNo (Pro/Enterprise only)Protecting against theft or unauthorized access when logged out
7-Zip1 minuteYesYesOne-time archiving of sensitive files
VeraCrypt5 minutesYesYesOngoing protection of files you access regularly

Common mistakes that leave folders unprotected

Encrypting a folder and then sharing your Windows password with someone else defeats the purpose. If you encrypt a folder and then give your password to a family member or colleague, they can log into your account and open the encrypted folder. Encryption only protects against people who do not have your password.

Moving an encrypted folder to an external drive or cloud storage (like OneDrive or Google Drive) can strip the encryption. Windows encryption is tied to your user account and your computer's hard drive. If you move the folder to a USB drive or upload it to the cloud, it may become unencrypted or inaccessible. If you need to move encrypted files, use VeraCrypt instead — the container stays encrypted no matter where you move it.

Forgetting that encryption only protects the folder itself, not the files you extract from it. If you decrypt a file and open it in Word or another program, that program may create temporary copies of the file in unencrypted locations. The original encrypted folder is protected, but the working copy is not.

Frequently Asked Questions

Can I password protect a folder on Windows Home edition?

Built-in encryption is not available on Windows Home. Use 7-Zip or VeraCrypt instead. Both are free and work on all Windows editions. VeraCrypt is more convenient if you need to access the files regularly.

What if I encrypt a folder and then forget my Windows password?

If you reset your Windows password using a password reset disk or Microsoft account recovery, you can still access encrypted files. If you completely wipe and reinstall Windows, the encrypted files become permanently inaccessible. Create a password reset disk before encrypting anything important.

Does encryption slow down my computer?

Built-in Windows encryption has minimal impact on speed — you will not notice it. VeraCrypt adds a small overhead when reading and writing files to the encrypted container, but it is usually not noticeable on modern computers. 7-Zip requires you to extract and compress files manually, which takes time but does not affect overall performance.

Can I encrypt a folder that is synced to OneDrive or Google Drive?

Encrypting a folder and then syncing it to the cloud can cause problems. The encryption may be stripped when the folder uploads, or the cloud service may have trouble syncing encrypted files. If you need cloud backup, use VeraCrypt instead — create the container, back it up to the cloud, and the entire container stays encrypted.

What if someone has physical access to my computer and removes the hard drive?

Built-in Windows encryption protects against this. If someone removes your hard drive and connects it to another computer, they cannot read encrypted files without your Windows password. VeraCrypt containers are also protected — they require the password to open, regardless of which computer they are on.