To hide a folder in Windows 11, right-click it, choose Properties, tick Hidden on the General tab and click OK. As long as File Explorer is set not to show hidden items, the folder disappears from view. Hiding is quick and useful for tidiness, but it is not protection: anyone who turns on Show → Hidden items sees the folder and can open everything in it. If the contents are private, encrypt the folder as well.
Below are both ways to hide a folder, how to show it again, and an honest look at what hiding does and does not do.
Method 1: Hide a folder with Properties
- Open File Explorer and find the folder.
- Right-click it and choose Properties, or select it and press Alt+Enter.
- On the General tab, tick Hidden next to Attributes.
- Click OK. Windows asks whether to apply the change to the folder only, or to the folder, subfolders and files. Choose the second option if you want everything inside hidden as well.
If the folder is still visible but faded, File Explorer is set to show hidden items. Turn that off in the next step.
Make sure hidden items are not shown
- In File Explorer, click View on the command bar.
- Point to Show.
- If Hidden items has a check mark, click it to remove it.
The folder now vanishes from File Explorer, the desktop and most file dialogs.
Method 2: Hide a folder with the attrib command
The attrib command can set the hidden attribute and the system attribute together. A folder marked as both is hidden even from people who have turned on Hidden items, unless they also change a second setting.
- Right-click Start and choose Terminal.
- Type the following, using your own folder path, and press Enter:
attrib +h +s "C:\Users\You\Documents\Private" - To hide everything inside it as well, add
/s /dand point at the contents:attrib +h +s "C:\Users\You\Documents\Private\*" /s /d
To make the folder visible again, run the same command with minus signs: attrib -h -s "C:\Users\You\Documents\Private".
Be careful with the system attribute. It tells Windows the item belongs to the operating system. Do not apply it to whole drives or to folders such as Documents or Desktop, and write down which folders you changed.
How to show a hidden folder again
- Hidden with Properties: in File Explorer, choose View → Show → Hidden items. The folder appears with a faded icon. Open its Properties and clear Hidden to unhide it permanently.
- Hidden with attrib +h +s: open Folder Options (in File Explorer, click the three dots, then Options), go to the View tab and clear Hide protected operating system files (Recommended). Then run
attrib -h -son the folder and turn the setting back on. - If you know the path: type it into the File Explorer address bar and press Enter. Hidden folders open normally when you go to them directly.
What hiding a folder does not do
Hiding is a display setting. The folder and its files are unchanged on the disk. That means:
- Anyone can unhide it. The Hidden items toggle is one click, and the protected files setting is two more. Both are widely known.
- The path still works. Anyone who knows or guesses the path can type it into the address bar.
- Other tools see it. Commands such as
dir /a, many third-party file managers, backup programs and archive tools list hidden items. - Traces can remain. Recent files lists in Start, Office and other apps, along with thumbnails and search results, can point to files that were opened from the folder.
- Copies are not hidden. Upload the folder to cloud storage, copy it to a USB stick or attach a file to an email, and the copy is perfectly readable.
- It does nothing against theft. Remove the drive or boot another system and every hidden file is there in plain view.
This is the same problem as the popular "folder locker" batch file trick, which is explained in our guide to password protecting a folder without software. Both are about hiding, not locking.
Hiding vs encrypting at a glance
| Hidden folder | Encrypted folder | |
|---|---|---|
| Out of sight in File Explorer | Yes, until someone shows hidden items | No, visible but unreadable |
| Contents readable by others on the PC | Yes | No, without the password or key |
| Protected if the laptop is stolen | No | Yes |
| Copies to USB or cloud protected | No | Yes, with password-based encryption |
| Setup time | Seconds | A minute or two |
When hiding is fine, and when to encrypt
Hiding is a perfectly good choice when nothing bad happens if someone finds the folder. Use it for:
- Decluttering: config folders, project archives or downloads you rarely touch.
- Keeping a surprise, such as a gift list, out of casual sight.
- Stopping children from accidentally moving or deleting files.
Encrypt instead when the folder holds anything that would cause harm if read: tax returns, bank statements, ID scans, medical letters, client files, private photos or passwords. In those cases, the question is not whether someone notices the folder but what happens when they open it.
How to hide and encrypt a folder
You can combine both: encryption to protect the contents, hiding to keep the folder out of casual view.
- Encrypt the folder with a password. In Document Key, right-click the folder and choose Encrypt, then set or confirm your password. Its files are protected with AES-256 and need the password to open.
- Let Document Key securely delete the unencrypted originals so no readable copies are left on the disk.
- Optionally, turn on auto-lock so the folder locks itself when you are idle, the PC sleeps or you sign out.
- Then hide the encrypted folder with Properties if you would rather it was not on show.
On Windows 11 Pro you could also use the built-in EFS option, which ties encryption to your Windows account rather than a password. Our guide to password protecting a folder in Windows 11 compares every option side by side.
Quick tips for hidden folders
- Give the folder a plain name. "Private" or "Secret" draws attention the moment someone shows hidden items.
- Check that your backup includes hidden items; most do, but it is worth confirming.
- Turn off recently opened items in Settings → Personalization → Start if you do not want file names appearing there.
- Keep a note of what you hid and how, so you can find it again in a year.
Frequently asked questions
How do I see hidden folders again?
In File Explorer, open View, Show, and turn on Hidden items. Folders hidden with the system attribute also need Hide protected operating system files turned off in Folder Options.
Does hiding a folder stop search finding it?
Not reliably. Hidden files can still appear in some search tools and are fully visible to anyone who changes the view settings.
Can I hide and encrypt a folder?
Yes. Hiding keeps it out of casual view and encryption makes the contents unreadable, which is the part that actually protects it.
