How to Lock a Folder with a Password in Windows 11/10 (Free, No Software Options)

How to Lock a Folder with a Password in Windows 11/10 (Free, No Software Options)

Windows 11 doesn’t have a simple “lock this folder with a password” button. But you can still protect a folder for free. Here are the methods that actually keep files private, from easiest to strongest.

Best free option: install 7-Zip, right-click the folder → 7-Zip → Add to archive → set Archive format: 7z, enter a password, tick Encrypt file names → OK. Then delete the original folder.

Method 1: 7-Zip password archive (free, works everywhere)

  1. Download 7-Zip from 7-zip.org and install it.
  2. Right-click your folder → Show more options → 7-Zip → Add to archive.
  3. Choose 7z format, type a strong password twice, tick Encrypt file names.
  4. Click OK, check the .7z opens with your password, then delete the original folder.

This uses AES-256 encryption, so without the password the files can’t be opened, even on another PC.

Securing private files on a Windows PC
Encryption keeps files safe even if someone copies them · Photo: Unsplash

Method 2: Built-in EFS encryption (Windows Pro/Enterprise)

  1. Right-click the folder → Properties → Advanced.
  2. Tick Encrypt contents to secure data → OK → Apply.
  3. Back up the encryption certificate when Windows prompts you.

EFS locks files to your Windows account: other users can’t open them, but anyone logged in as you can. Not available on Windows Home.

Method 3: BitLocker / BitLocker To Go

To protect a whole drive or USB stick: right-click the drive → Turn on BitLocker (Pro editions) and set a password. Windows Home users with supported hardware get Device encryption under Settings → Privacy & security.

Typing a password on a laptop keyboard
Use a strong password you won’t forget; there’s no recovery · Photo: Unsplash

Method 4: Hide a folder (not real security)

Right-click → Properties → tick Hidden. It only hides the folder from casual view; anyone can show hidden items. The old “.bat folder locker” tricks are just as weak. Don’t use them for anything sensitive.

Which method should you use?

NeedUse
Lock a few personal files7-Zip encrypted archive
Protect from other users on the same PCEFS (Pro) or separate user accounts
Protect a whole drive or pen driveBitLocker / BitLocker To Go
Just keep it out of sightHidden attribute
Encrypted USB drive with BitLocker
BitLocker To Go protects whole USB drives · Photo: Unsplash

Related guides

Frequently asked questions

Can I lock a folder with a password in Windows 11 without software?

Not directly. EFS (Pro) and BitLocker encrypt without extra software; 7-Zip is the easiest free option for a password.

Is hiding a folder safe?

No. Hidden folders are easy to reveal. Use encryption instead.

What if I forget the 7-Zip password?

The files can’t be recovered. Store the password safely.

Does EFS work on Windows 11 Home?

No. EFS and BitLocker management are in Pro/Enterprise editions.

How do I lock a pen drive?

Use BitLocker To Go: right-click the USB drive → Turn on BitLocker.