Windows

How to Lock a Folder with a Password on Windows 11

Learn practical ways to password protect a folder on Windows 11, including built-in options, ZIP files, encryption, and safer methods for keeping files private.

Chris Anderson
Chris Anderson
How-To Writer  •  Sep 21, 2026  •  6 min read

Windows 11 does not include a simple built-in “right-click and set a folder password” feature for regular folders. If you want to keep files private, you need to use a different method depending on how much protection you need and whether you share the PC with other people.

This guide explains the most practical ways to protect a folder on Windows 11, from simple ZIP passwords to stronger encryption and account-based privacy settings.

How to Lock a Folder with a Password on Windows 11

What Windows 11 Can and Cannot Do

It helps to start with one important limitation: Windows 11 does not let you password protect a standard folder in File Explorer with a native password prompt. That means you will not find a simple “set password” option for an ordinary folder the way many people expect.

Why It Matters The right method depends on whether you want casual privacy from other users on the same PC, protection against someone opening your files, or stronger security if the drive is lost or stolen.

Option 1: Use a Password-Protected ZIP or Archive

For many people, the easiest approach is to place the files inside a password-protected archive. This is useful when you want to store documents, photos, or backups in a single locked file.

Best For Quick protection for individual files or small groups of files that you do not need to edit often.
  1. Install a file archiver that supports encryption, such as 7-Zip or WinRAR.
  2. Right-click the folder you want to protect and choose the archiver’s add-to-archive option.
  3. Choose ZIP or 7z format, then set a strong password.
  4. If available, enable encryption for file names as well so the contents are less obvious.
  5. Create the archive and test it by opening it to make sure the password prompt appears.

After that, keep the original unprotected folder somewhere safe or delete it if you no longer need it. If you leave the original files in place, the password-protected archive does not add any real privacy.

Warning A password-protected archive only protects the archive itself. If the original folder is still sitting unprotected on your drive, anyone can open that instead.
Note ZIP encryption support can vary depending on the tool you use. For better protection and more options, 7z archives are often stronger than basic ZIP files.

Option 2: Use Windows File Encryption

Windows includes file encryption features that can protect data on the account that created it. This is different from a folder password: it does not usually ask for a password every time you open the folder, but it does help stop other accounts on the same PC from reading the files.

Key Fact Windows encryption is tied to your account or device setup, so it is better for privacy on a shared PC than for giving a folder its own independent password prompt.
  1. Right-click the folder you want to protect and choose Properties.
  2. Open the Advanced button on the General tab.
  3. Check Encrypt contents to secure data, then select OK.
  4. Apply the changes to the folder and, if prompted, choose whether to encrypt just the folder or the folder, subfolders, and files.
  5. Back up any encryption keys or recovery information if Windows asks you to do so.

This method is useful if you are mainly trying to stop other Windows accounts on the same PC from opening your files. It is not the same as a shareable password lock, so it is not the best choice if you need to move the folder to another PC or give access to someone else later.

Warning If you use encryption, make sure you understand how recovery and account access work. Losing access to the account or recovery information can make the encrypted files difficult or impossible to open.

Option 3: Protect the Folder by Using a Separate Windows Account

If multiple people use the same computer, one of the simplest privacy protections is to store private files in a user account that others cannot open.

Best For Family PCs, shared laptops, and situations where you only need to keep other local users out of your files.
  1. Create a separate Windows account with its own sign-in details.
  2. Sign in to that account and move the private files into that user profile or a private folder.
  3. Make sure other users do not have permission to the folder.
  4. Use a strong password on the account itself.
  5. If needed, turn on account sign-in options such as a PIN or Windows Hello for easier access.

This approach works well because Windows already uses account permissions as a security boundary. In many cases, that is more reliable than third-party folder lockers and easier to maintain over time.

Option 4: Use Third-Party Folder Locking Software

If you specifically want a folder that opens only after entering a password, third-party folder-locking tools are the most direct solution. These apps vary a lot in quality, so choose carefully.

Some apps simply hide folders, which is not the same as protecting them with encryption. Others create a secure vault or lock file that is much harder to open without the password. Encryption is usually the safer choice if the files are important.

Warning Be cautious with folder-locking apps that are unfamiliar or poorly reviewed. A bad app can cause file loss, make recovery difficult, or create a false sense of security.

Which Method Should You Choose?

Quick Tip If the files are sensitive, encryption is usually more meaningful than simple hiding or renaming. Hiding a folder does not stop someone from finding it.

Common Mistakes to Avoid

Note If you store protected files in OneDrive or another cloud sync service, double-check what gets synced. A local folder lock may not protect copies already uploaded elsewhere.

A Practical Recommendation

For most Windows 11 users, the best balance is either a password-protected archive for occasional use or Windows encryption for ongoing privacy on a shared PC. If you need stronger or more convenient folder-level locking, a reputable third-party encryption tool may be appropriate, but it should be chosen carefully.

If you want, I can also create a step-by-step guide for one specific method, such as using 7-Zip, Windows encryption, or a third-party folder locker.

Topics

More from Windows

View all →
How to Fix DISM Error 0x800f0915 in Windows
Windows

How to Fix DISM Error 0x800f0915 in Windows

How to Fix Command Prompt When You Can’t Run It as Administrator
Windows

How to Fix Command Prompt When You Can’t Run It as Administrator

5 Ways to Fix HP Support Assistant When It Won’t Install
Windows

5 Ways to Fix HP Support Assistant When It Won’t Install

Why USB Devices Show Up as Unknown in Windows 11
Windows

Why USB Devices Show Up as Unknown in Windows 11

How to Fix the Windows Fast Startup Error 0xc00000d4
Windows

How to Fix the Windows Fast Startup Error 0xc00000d4

How to Fix a Volume Bar That Keeps Appearing in Windows
Windows

How to Fix a Volume Bar That Keeps Appearing in Windows