Guide · Files

How to password protect a folder in Windows 10 and 11

You have a folder you would rather nobody else opened: tax papers, medical letters, private photos. Windows has no setting that asks for a password before a folder opens, but there are ways to get the same result. This guide compares them and shows, step by step, how to lock a folder with a password of its own on any edition of Windows 10 or 11.

Your options, compared

Here is what you can use, and what each one really does:

WayWindows HomeA password of its ownHides what is inside
Hide the folderYesNoNo: anyone who shows hidden items sees it
Encrypt with EFSNo (Pro and up)No: it opens for whoever signs in as youFrom other Windows accounts only
BitLockerNo (Pro and up)For a whole drive, not one folderThe whole drive
A ZIP with a passwordWith an appYesThe files, but a ZIP shows their names
Lock it with OctooloYesYesEverything, names included

EFS is the closest thing Windows has. On Windows 10 or 11 Pro, right-click the folder, choose Properties, then Advanced…, and tick Encrypt contents to secure data. It keeps the folder from other people's Windows accounts, but it asks for no password: anyone who uses your PC while you are signed in opens it as usual.

A ZIP with a password works everywhere and suits files you are sending to someone. For a folder that stays on your PC, locking it is simpler: it becomes one file in the same place, opens with a double-click and your password, and goes back to being a normal folder when you unlock it.

Lock a folder with a password, step by step

Step 1: Open Files and choose Lock

Open Octoolo and choose Files. It asks What do you want to do? and shows four boxes. Under Lock, press A folder… and pick the folder, or drag the folder from File Explorer onto that box. For single files, use Choose files… instead.

Octoolo's Files asking What do you want to do?, with four boxes: Compress, Extract, Lock and Unlock, and below them the switch for File Explorer's right-click menu.
Files: Lock is the third box. The right-click menu in File Explorer does the same.

Step 2: Choose a password, and type it twice

The folder is listed on the left, with how many files it holds. On the right, type a password under Choose a password. The bar under it shows how hard it is to guess, from Very easy to guess to Very strong: aim for Very strong. Then type it again in Type it again, so a typo cannot lock you out.

A good password here is long rather than clever. Four or five ordinary words joined together, like tomato-bicycle-harbor-42, are easy to remember and very hard to guess. Never reuse a password from a website.

Step 3: Add a hint, if you like

The hint is shown when you unlock, to anyone who has the locked file, so make it something only you understand (“the four words on the fridge note”), never the password itself. Octoolo will not accept the password as the hint.

The Lock with a password page: the folder Tax papers 2025 with 37 files and 46 MB on the left; on the right the password typed twice with the meter at Very strong, a hint, the warning to keep the password safe, and the Lock this folder button.
The folder, a Very strong password typed twice, and a hint only you understand.

Step 4: Press Lock this folder

Octoolo encrypts the folder into one file, then reads that file back and checks it against the original. Only when the check passes is the original folder removed. The folder Tax papers 2025 becomes Tax papers 2025.olock, in the same place.

If a file in the folder is open in another program, the lock stops before anything changes and tells you which one: close it there and try again.

From folder to locked file in a few seconds.

Step 5: Check the result

When it is done, Octoolo says Locked and names the new file. Show in folder opens File Explorer on it. Without the password, anyone who finds it sees only its name, its size and your hint: not the files inside, and not even their names.

The Locked card: a green tick, Tax papers 2025.olock, and the buttons Show in folder and Lock something else.
Locked: the folder is now Tax papers 2025.olock.

Open the folder again

Double-click the .olock file in File Explorer. Octoolo opens Unlock with the file's name, where it is, its size and your hint. Type the password and press Unlock. The folder comes back where the locked file was, exactly as it was, and the locked file is removed. Tick Keep the locked file too if you would like to keep it as well.

The Unlock window for Tax papers 2025.olock: its folder, size and date, the hint, the password box, Keep the locked file too, and the Unlock button.
Double-click the locked file: the hint, the password, and Unlock.

Mistype the password and Octoolo says so, and nothing changes: capital letters count, so check Caps Lock.

The Unlock window after a wrong password: That password does not open it. Check it and try again: capital letters count.
A wrong password changes nothing.

An unlocked folder is an ordinary folder again. When you have finished with it, lock it again the same way.

The Unlocked card: a green tick, Tax papers 2025, Show in folder and Unlock another, and the note It is back where the locked file was.
Unlocked, and back where it was.

Keep it safe

  • Keep the password somewhere safe. There is no reset and no copy: if it is forgotten, nobody can open the folder, not you and not Octoolo. Write it down and keep it with your important papers, or store it in a password manager such as Octoolo's Passwords.
  • Keep a backup. A locked file is still an ordinary file: anyone using your PC can move or delete it, they just cannot open it. Copy it to a USB drive or another disk from time to time; it stays locked there too.
  • The original is deleted, not sent to the Recycle Bin. That way no unlocked copy is left behind in the bin.
  • Some folders cannot be locked whole: a whole drive, Windows' own folders, and your Desktop, Documents, Downloads, Pictures, Music and Videos folders themselves. The folders inside them lock fine.

How the lock works

For the curious: your password is turned into a 256-bit key with Argon2id, set to use 64 MiB of memory and take about half a second, so trying passwords one after another is very slow. The folder is then encrypted with XChaCha20-Poly1305, in pieces that are each checked when it is opened, so a locked file that was changed, damaged or cut short does not open, and Octoolo says so. Everything happens on your PC: nothing is uploaded, and the password is never stored.

More details are on the lock a folder and unlock a folder pages.

Questions, answered

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

Not with a password of its own. Windows Pro can encrypt a folder for your Windows account with EFS, and BitLocker encrypts whole drives, but neither asks for a separate password for one folder, and Windows Home has neither.

Does hiding a folder protect it?

No. A hidden folder is only out of sight: anyone who turns on hidden items in File Explorer sees it and opens it as usual.

What if I forget the password?

Then nobody can open the folder, Octoolo included. There is no reset, and the password is not stored anywhere. Read your hint, try the passwords you usually use, and keep the next one in a password manager.

Can I open a locked folder on another PC?

Yes, on any Windows PC with Octoolo: copy the .olock file there, double-click it and type the password.

Can someone delete a locked folder?

Yes. A .olock file is an ordinary file, so it can be moved, copied or deleted; it just cannot be opened without the password. Keep a backup of anything important.

Do I need Octoolo to unlock it?

Yes. Only Octoolo opens .olock files, and locking and unlocking are part of Octoolo Cloud. Unlock what you still need before a subscription ends.

Try it in Octoolo: seventeen apps, one download.

Download for Windows

7 days free, then from $3.99 a month for all 17 apps. Windows 10 and 11.