How to Password Protect a Folder in Windows 11

If you share a Windows 11 computer with family members or roommates, you likely have certain files—such as financial documents, tax returns, or personal diaries—that you want to keep completely private. Merely hiding the folder is not enough to stop a determined snooper. To guarantee your privacy, you must encrypt the folder.

There are two primary ways to password protect a folder in Windows 11: using the built-in Windows encryption tool (which is tied to your Windows user account), or using a highly secure third-party tool like 7-Zip (which allows you to create a custom password that anyone can use to unlock the file).

Method 1: Use Windows Built-In Encryption (EFS)

The Encrypting File System (EFS) is built directly into the Pro, Enterprise, and Education versions of Windows 11. (Note: This feature is completely disabled in Windows 11 Home edition).

Unlike old-fashioned password protection, EFS does not ask you to type a password every time you double-click the folder. Instead, it ties the encryption mathematically to your specific Windows user account. If you are logged in, the folder opens normally. If someone else logs into the computer using a different account, they will receive an “Access Denied” error if they try to open it.

  1. Open File Explorer and locate the folder you want to protect.
  2. Right-click the folder and select Properties.
  3. Ensure you are on the “General” tab and click the Advanced… button near the bottom right.
  4. A small “Advanced Attributes” window will appear. At the bottom of this window, check the box labelled Encrypt contents to secure data.
  5. Click OK to close the small window, then click Apply on the main Properties window.
  6. A warning box will appear asking if you want to encrypt just the folder, or the folder and all its contents. Select Apply changes to this folder, subfolders and files and click OK.

The folder icon will now display a small yellow padlock, indicating it is securely encrypted.

Crucial Warning: Because EFS is tied to your Windows user account, if your computer crashes and you lose access to your account, those files are permanently gone. Windows will immediately prompt you to back up your encryption certificate to a USB drive after completing Step 6. Do not skip this step!

Method 2: Use 7-Zip to Create a Password-Protected Archive

If you are using Windows 11 Home, or if you want to email the secured folder to someone else and give them a password to open it, you must use third-party software. The best, safest, and most popular free tool for this is 7-Zip.

Step 1: Install 7-Zip

Open your web browser, navigate to 7-zip.org, download the installer, and run it. The installation takes less than five seconds.

Step 2: Encrypt the Folder

  1. Open File Explorer and locate the folder you want to protect.
  2. Right-click the folder. Because you are on Windows 11, you must click Show more options at the bottom of the new context menu to see the classic menu.
  3. Hover over 7-Zip, then click Add to archive…
  4. The massive 7-Zip interface will open. Do not panic; you only need to change two settings.
  5. Under the Archive format drop-down menu, ensure zip is selected.
  6. Look at the bottom right corner in the Encryption section. Type your desired password into the “Enter password” box, and type it again in the “Reenter password” box.
  7. Click OK at the bottom of the window.

Step 3: Delete the Original Folder

7-Zip will create a new, compressed ZIP file (which looks like a folder with a zipper on it) in the same location. This new ZIP file is heavily encrypted.

However, 7-Zip does not delete the original, unprotected folder. If you leave the original folder sitting on your desktop, anyone can still read your files. You must manually right-click the original folder and permanently delete it. Now, the only surviving copy of your data is securely locked inside the encrypted ZIP file.

Whenever you (or anyone else) double-clicks that ZIP file to open it, Windows will immediately pop up a prompt demanding the password before revealing the contents.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.