How to Password Protect a Folder in Windows 11

Windows 11 has no setting that puts a password on an ordinary folder. The dependable options are an encrypted archive made with the free, open-source 7-Zip app, or Microsoft’s OneDrive Personal Vault, which verifies your identity before it opens. With 7-Zip, select the folder, click Add, choose 7z, enter a password, check Encrypt file names, and click OK.

These steps work on Windows 11 Home and Pro, including the current release. They also work on Windows 10, which stopped getting security updates on October 14, 2025. On a Mac instead? Disk Utility can password protect a folder on a MacBook Air.

Which Method Should You Use?

Method What unlocks it Editions
7-Zip encrypted archive A password you choose Home and Pro
OneDrive Personal Vault Microsoft account plus a second check Home and Pro
Encrypting File System (EFS) Your Windows sign-in Pro, Enterprise, Education
Separate user accounts Each person’s own sign-in Home and Pro

On a shared family PC, giving each person a standard account keeps them out of your Documents and Desktop folders. Go to Settings > Accounts > Other users > Add account, as Microsoft explains in add or remove accounts on your PC.

What You Need to Know First

  • There’s no password recovery. If you forget a 7-Zip password, the files in the archive can’t be opened, and nobody can reset it for you. Store it in a password manager before you start.
  • The archive is a copy. 7-Zip creates an encrypted file. The original folder stays unprotected until you delete it.
  • Hiding a folder isn’t protecting it. Hidden folders and the “folder lock” batch files shared online don’t encrypt anything. Anyone can show hidden folders in Windows 11 in a few clicks. Skip “folder locker” apps from publishers you don’t know, too. The same goes for the invisible folder trick in Windows 11, which only changes the name and icon.

Install 7-Zip

  1. Go to the official 7-Zip download page.
  2. Download the installer for your PC. Most Windows 11 computers need the 64-bit x64 version. Laptops with Snapdragon processors need the ARM64 version. Not sure which you have? Read about how to check whether your Windows 11 PC is 32-bit or 64-bit.
  3. Open the downloaded file and click Install, then Close.

Password Protect a Folder With 7-Zip

  1. Click Start, type 7-Zip, and open 7-Zip File Manager.
  2. Browse to the location that contains your folder, such as C:\Users\YourName\Documents, and click the folder once to select it. Don’t open it.
  3. Click Add in the toolbar. The Add to Archive window opens.
  4. In the Archive box at the top, check the name and save location for the new file. Pick a name that doesn’t reveal what’s inside, because the archive’s own file name is always visible.
  5. Set Archive format to 7z.
  6. Under Encryption on the right, type your password in Enter password and again in Reenter password. Use a long passphrase you don’t use anywhere else.
  7. Make sure Encryption method shows AES-256, then check Encrypt file names. This hides the names of the files inside, not just their contents.
7-Zip Add to Archive window with 7z format, AES-256 and Encrypt file names selected
Choose 7z, enter the password twice and check Encrypt file names.
  1. Click OK. A progress window appears, and when it closes you’ll have a new file ending in .7z in the location you chose.

7-Zip’s 7z format page explains that the format uses AES-256 encryption with a key derived from your password through many rounds of SHA-256 hashing.

You can also start from File Explorer: right-click the folder, click Show more options, then choose 7-Zip > Add to archive. That opens the same Add to Archive window.

Test the Archive Before You Delete Anything

  1. Close 7-Zip, then double-click the new .7z file. 7-Zip asks for the password before showing any files. If it shows the file list right away, Encrypt file names wasn’t turned on, so make the archive again.
7-Zip Enter password prompt for an encrypted archive
An archive with encrypted file names asks for the password before showing anything.
  1. Enter the password. The folder’s contents appear.
  2. Click Extract, choose an empty folder such as a new folder on your desktop, and click OK.
  3. Open a few of the extracted files to confirm they work.

Once the test works, delete the test folder and the original, then empty the Recycle Bin. OneDrive and backup copies aren’t covered by the archive password either. If the original won’t delete, here’s how to force delete a folder in Windows 11.

Open or Update the Protected Folder Later

Double-click the .7z file, enter the password, and open a file or click Extract. Extracted files are unprotected copies, so delete them when you’re done. The archive doesn’t update itself; add changed files back with Add while the archive is open.

Recent Windows 11 updates let File Explorer open some 7z files, but don’t count on it for encrypted ones. People you share with should use 7-Zip, and you should send the password separately from the file.

Use a Password-Protected ZIP Instead

If the recipient prefers ZIP files, set Archive format to zip, enter the password twice, and choose AES-256 as the encryption method. ZIP can’t encrypt file names, so those stay visible. Windows can’t create password-protected ZIP files on its own; its built-in tool only makes ordinary ZIP files in Windows 11.

Alternative: OneDrive Personal Vault

Personal Vault is a protected folder inside OneDrive. Microsoft’s Personal Vault guide says it needs a second check to open, such as a texted or emailed code, the Authenticator app, or Windows Hello. It’s for personal Microsoft accounts only. Without a Microsoft 365 Personal or Family subscription, you can store up to three files in it.

  1. Make sure you’re signed in to OneDrive on your PC. If it isn’t set up yet, sync OneDrive on Windows 11 first.
  2. Open File Explorer, select OneDrive in the left pane, and double-click Personal Vault.
  3. The first time, select Get started, then Verify, choose a method such as Text, and enter the code you receive.
  4. Drag the files you want to protect into the vault.

The vault locks itself after a period of inactivity. To change the wait time, open OneDrive’s Help & Settings, select Settings, and look under the Account tab. Files in the vault can’t be shared until you move them out.

Alternative: Encrypt a Folder With Windows (Pro Editions Only)

Windows 11 Pro, Enterprise and Education include the Encrypting File System (EFS). It doesn’t ask for a separate password. Instead, the folder opens normally when you’re signed in to your Windows account and stays unreadable to other user accounts on the PC. Windows Home doesn’t include it, as the page on encrypting a file or folder confirms.

  1. Right-click the folder and choose Properties.
  2. Click Advanced on the General tab.
  3. Check Encrypt contents to secure data, then click OK.
Advanced Attributes dialog with Encrypt contents to secure data checked
EFS is only available on Pro, Enterprise and Education editions.
  1. Click Apply, choose Apply changes to this folder, subfolders and files, and click OK.

A small lock icon appears on the folder. Windows then offers to back up your encryption key. Accept it, or run cipher /x in Command Prompt as described in Microsoft’s cipher command reference, and keep the .pfx backup on a separate drive. Without that key, a Windows reinstall or a reset account can lock you out of your own files. EFS is only as strong as your sign-in, so change your Windows 11 password if it’s weak.

To protect an entire drive or USB flash drive instead of one folder, use BitLocker in Windows 11. The steps for a flash drive are in how to put a password on a USB flash drive in Windows 11.

When Encrypt File Names Is Grayed Out

  • Encrypt file names is grayed out. That option only works with the 7z format. Change Archive format to 7z.
  • The password doesn’t work. Passwords are case-sensitive, so check that Caps Lock is off and that your keyboard layout hasn’t changed. 7-Zip can’t recover a forgotten password.
  • Encrypt contents to secure data is grayed out. Your PC runs Windows 11 Home, or the folder is on a drive formatted as FAT32 or exFAT, such as many USB flash drives. Use 7-Zip instead, or BitLocker To Go on a Pro edition for a whole USB drive.
  • Personal Vault is missing. You may be signed in with a work or school account, or OneDrive isn’t set up on this PC yet.

Folder Password Questions

Can I password protect a folder in Windows 11 without extra software?

Not with a true folder password. OneDrive Personal Vault adds an identity check, EFS on Pro editions protects folders with your account sign-in, and Windows 11 Home has no built-in folder encryption. 7-Zip is the easiest way to add a password you choose.

Is a 7-Zip password secure?

Yes, if the password is long and unique. The 7z format uses AES-256, and with Encrypt file names turned on, someone without the password can’t even see what the archive holds.

Can I make a folder ask for a password when I double-click it?

Not with Windows’ built-in tools. Apps that claim to do this often only hide the folder. An encrypted 7z archive or Personal Vault gives you real protection.