The simplest way: use built-in encryption

Windows 10 does not have a native "password protect this folder" button. Instead, you encrypt the folder using BitLocker (if you have Windows 10 Pro, Enterprise, or Education) or Encrypting File System (EFS) (available on all versions). Both methods lock the folder so that only your user account can open it — anyone else who tries to access it, even with physical access to the computer, will see an error.

The fastest route for most people is to right-click the folder, use the built-in encryption option, and let Windows handle the rest. This takes about two minutes and requires no additional software.

If you have Windows 10 Home, you cannot use BitLocker, but you can still encrypt folders using EFS. The steps are slightly different but accomplish the same goal.

Key Takeaways

  • Windows 10 Pro and higher can encrypt folders using BitLocker; Windows 10 Home can use Encrypting File System (EFS), which works the same way from the user's perspective.
  • Encryption locks the folder to your user account, so anyone else on the computer cannot open it without your password.
  • You do not need to remember a separate password — Windows uses your existing login password to unlock encrypted folders.
  • If you forget your Windows password, you will not be able to recover the encrypted files, so keep your password somewhere safe.
  • Third-party software like 7-Zip or VeraCrypt offers password protection as an alternative if you want more control over who can access the folder.

Encrypting a folder on Windows 10 Pro, Enterprise, or Education

Open File Explorer and locate the folder you want to protect. Right-click it and select Properties. At the bottom of the General tab, click Advanced. A new window opens. Check the box next to Encrypt contents to find data, then click OK.

Windows will ask whether you want to encrypt just this folder or the folder and all its contents. Choose Encrypt the folder and all its contents to protect everything inside. Click explore, then OK. Windows will now encrypt the folder in the background — this may take a few seconds or several minutes depending on how much data is inside.

Once encryption is complete, the folder icon will show a small padlock. You can still open it normally because Windows recognizes your user account. Anyone else who logs into the computer and tries to open it will see a "Access Denied" message.

Encrypting a folder on Windows 10 Home

Windows 10 Home does not have the Advanced encryption option in Properties. Instead, use Encrypting File System (EFS) through the command line. Open the Start menu, type cmd, right-click Command Prompt, and select Run as administrator.

In the command prompt window, type the following command, replacing C:\Users\YourUsername\FolderName with the actual path to your folder:

cipher /e /s:"C:\Users\YourUsername\FolderName"

Press Enter. Windows will encrypt the folder and display a message when it is complete. The folder will now show a padlock icon and behave the same way as BitLocker encryption — only your user account can open it.

What happens when you encrypt a folder

Encryption ties the folder to your Windows user account. When you log in, Windows automatically unlocks it using your login password. You do not need to enter a separate password each time you open the folder — it works transparently.

If someone else logs into the computer with a different account, they cannot open the encrypted folder, even if they have administrator rights. They will see the folder in File Explorer but cannot view or modify its contents. This is different from straightforward file permissions, which an administrator can override.

If you change your Windows password, the encrypted folder remains accessible — Windows updates the encryption key automatically. However, if you forget your Windows password entirely and have to reset it through Microsoft account recovery, you will lose access to the encrypted files permanently. There is no way to recover them.

Backing up your encryption key

Before you encrypt important folders, Windows recommends backing up your encryption certificate. This is a file that lets you recover your data if something goes wrong with your account. To do this, open the Start menu and search for Manage user certificates. Click on it to open the certificate manager.

In the left sidebar, navigate to Personal, then Certificates. Look for a certificate with your username and the words "Encrypting File System" in the description. Right-click it, select All Tasks, then Export. Follow the wizard to save the certificate file to an external drive or cloud storage. Store this file somewhere safe — if you ever lose access to your account, this backup can help recover your encrypted files.

Using third-party software instead

If you want more control over who can access a folder — for example, to share it with specific people using a password they choose — Windows encryption will not work because it ties to your user account only. In that case, use third-party software like 7-Zip, WinRAR, or VeraCrypt.

7-Zip is free and built into Windows. Right-click the folder, select 7-Zip, then Add to archive. In the dialog that opens, set a password under Encryption, choose AES-256 as the encryption method, and click OK. 7-Zip will create a password-protected .7z file. Anyone who wants to open it must enter the password you set.

VeraCrypt is more powerful but also more complex. It lets you create an encrypted container that behaves like a virtual hard drive — you mount it with a password, and it appears as a drive letter in File Explorer. This is useful if you want to encrypt a large amount of data or share an encrypted folder across multiple computers.

Troubleshooting encryption problems

If you encrypted a folder and now cannot open it, the most common cause is that you are logged into a different user account than the one that encrypted it. Log back into the original account and the folder will open normally.

If you see an error message saying "Access Denied" even when logged into the correct account, the encryption may be corrupted. Try restarting your computer — sometimes Windows needs to reload the encryption keys. If that does not work, you may need to use a recovery tool or restore the folder from a backup.

If you encrypted a folder and then reset your Windows password using a password reset disk or Microsoft account recovery, you will lose access to the encrypted files. There is no workaround for this. This is why backing up your encryption certificate before encrypting important data is critical.

Frequently Asked Questions

Can I encrypt a folder and still share it with other people on my computer?

No. Windows encryption ties the folder to your user account only. Other people on the computer cannot open it, even if they have administrator rights. If you need to share a folder with a password, use third-party software like 7-Zip or VeraCrypt instead, which lets you set a password that anyone can use.

What if I encrypt a folder and then move it to an external drive?

The encryption stays with the folder. When you plug the external drive into another computer, the folder will be locked and inaccessible unless you log in with the same Windows account on that computer. If you want to move encrypted data to another computer, decrypt it first, or use VeraCrypt to create a portable encrypted container.

Does encryption slow down my computer?

No. Modern computers handle encryption and decryption so quickly that you will not notice any slowdown. The only time you might see a delay is during the initial encryption process, which can take a few minutes for large folders.

Can I encrypt my entire hard drive instead of just one folder?

Yes, if you have Windows 10 Pro or higher. Open the Start menu, search for Manage BitLocker, and click it. Select your C: drive and click Turn on BitLocker. Windows will encrypt your entire drive, which takes longer but protects all your files at once. Windows 10 Home cannot use full-disk encryption.

What happens if I forget my Windows password?

If you forget your password and reset it through Microsoft account recovery, Windows will create a new encryption key and you will lose access to any encrypted folders. You cannot recover the files. This is why keeping your password find and memorable is important if you use encryption.