How to hide a folder in Windows 11 (and really lock it)
You want a folder out of sight: tax papers, private photos, a gift list. Windows 11 can hide it in a few clicks, and one Command Prompt line hides it a little more. Here are both, what hiding can't do, how to keep files from other people on the same PC, and what to use when you want a password.
Hide a folder with Properties (every edition)
It works on Windows 11 and 10, every edition, and for single files too.
- In File Explorer, right-click the folder and select Properties.
- On the General tab, next to Attributes, tick Hidden.
- Select OK. In Confirm Attribute Changes, choose Apply changes to this folder only or Apply changes to this folder, subfolders and files, then select OK. The second hides every item inside as well.
- If the folder is still visible, File Explorer is set to show hidden items. Select View → Show and clear Hidden items.
To unhide it, turn Hidden items back on, open the folder's Properties and clear Hidden. If you hid its contents too, choose Apply changes to this folder, subfolders and files again. On Windows 10, the switch is under View → Options → Change folder and search options, on the View tab: Show hidden files, folders, and drives.
Hide it more completely with attrib +h +s
- Open Command Prompt: select Start, type cmd and select Command Prompt.
- Type the command with your folder's full path in quotes, then press Enter:
attrib +h +s "C:\Users\YourName\Documents\Private" - Check it:
attrib "C:\Users\YourName\Documents\Private"shows S and H before the path.
What the system attribute adds. File Explorer treats an item that is both hidden and system as a protected operating system file, so turning on Hidden items doesn't show it. It appears only when someone unticks Hide protected operating system files (Recommended) in Folder Options: in File Explorer on Windows 11, select See more (…) → Options, then the View tab.
To undo it, clear both at once: attrib -h -s "C:\Users\YourName\Documents\Private". In our test, attrib -s on its own answered "Not resetting hidden file". Use attrib only on your own folders, never on Windows folders or the top of a drive.
Why hiding isn't protection
- Two clicks reveal it. Anyone using your account can turn on Hidden items, and the protected-files box is one more tick.
- Command Prompt lists it. Microsoft's dir reference says that with
/a, dir "displays the names of all files, including hidden and system files". In our test on Windows 11 Home,dir /s /afound a file inside a folder hidden with +h +s. - The files open normally. Hiding locks and encrypts nothing; in the same test, a file inside opened without any prompt.
- Administrators can open everything. Microsoft: administrators "have complete control over the system" and can "access all files".
- Recent lists show it. Files you open from it can appear under Recent in File Explorer and in apps. Microsoft warns of this even for its own OneDrive Personal Vault.
- Unless device encryption or BitLocker is on, the drive can be read in another PC. Microsoft's BitLocker overview notes that data on a lost or stolen device can be reached "by transferring the device's hard drive to a different device".
Hide files from other users on the same PC
If other people use the PC, separate Windows accounts do more than any hidden folder.
- Give each person their own account: Settings → Accounts → Other users, then Add account. Microsoft describes separate accounts as "keeping family members' data private and secure from each other".
- Make the other accounts standard users, and keep administrators few, as Microsoft advises.
- Keep private files in your own user folder (C:\Users\YourName, with your Desktop, Documents and Pictures). On our Windows 11 Home PC, its permissions list only that user, SYSTEM and the Administrators group, so other standard accounts can't open it.
For a folder elsewhere, such as on a second drive, the Security tab in its Properties sets who can open it. That works on NTFS drives only: FAT32 and exFAT, common on USB sticks, have no permissions. What permissions can't stop:
- An administrator. By default, administrators have the right to take ownership of files, and an owner can always change permissions, even when denied access. The takeown command does exactly this.
- Anyone signed in as you. Your account opens your files for whoever is using it.
- Someone with the drive. Microsoft's archived EFS overview: "Permissions on files and folders does not protect against unauthorized physical attacks."
How to hide a folder with a password
No edition of Windows puts a password on a folder. Encrypt the files instead, and hide the folder too if you like:
- EFS (Pro, Enterprise, Education): Properties → Advanced... → Encrypt contents to secure data. It never asks for a password; it unlocks with your Windows sign-in. Microsoft: "File encryption is not available in the Home edition of Windows" (why it's greyed out).
- A 7-Zip archive: the free, open-source 7-Zip packs the folder into a 7z archive with a password and AES-256, and Encrypt file names hides the names. You extract it to use the files. It's a copy: once the archive opens with your password, delete the original folder (deleting is best effort: see what deleting really does on Windows 11). Steps: password-protecting a zip or 7z.
- A file-encryption app such as Clavis Encrypt (below), which encrypts each file where it is.
Also turn on Settings → Privacy & security → Device encryption if your PC offers it; unlike BitLocker, it's available on Windows Home. It protects the drive, not one folder. Make sure you know where its recovery key is (with a Microsoft account, it's saved to that account): see how to find your recovery key.
What each option does
| Option | Out of sight? | Contents encrypted? | Keeps out other standard accounts? | Password of its own? | Editions |
|---|---|---|---|---|---|
| Hidden (Properties) | Until someone turns on Hidden items | No | No | No | All |
| attrib +h +s | Until someone unticks Hide protected operating system files | No | No | No | All |
| Separate accounts, files in your user folder | No | No | Yes (not administrators) | No: your Windows sign-in | All |
| EFS | No | Yes | Yes | No: your Windows sign-in | Pro, Enterprise, Education |
| 7-Zip, 7z with Encrypt file names | The archive shows; the names inside don't | Yes, AES-256 | Yes | Yes | All |
| Clavis Encrypt | The .enc files show, with random names | Yes, AES-256-GCM | Yes | Yes | Windows 10 and 11, Home included |
What can go wrong
- You can't find the folder again. Turn on Hidden items; for +h +s, run
attrib -h -swith the path. - Hidden is taken for protected. Anyone who looks can find and open it.
- A forgotten password means lost files. Nobody can open a 7-Zip archive without its password. Clavis Encrypt gives you a recovery key; keep it off the PC.
- The unencrypted folder stays behind. 7-Zip encrypts a copy; delete the original once the archive opens.
- Copies stay readable. Backups and cloud copies aren't hidden or encrypted just because the original is. See whether Windows backups are encrypted.
Where Clavis Encrypt fits
Clavis Encrypt encrypts files on Windows 10 and 11 (64-bit, Home included, no administrator rights) and Linux. The free plan encrypts files, one or many at once, with AES-256-GCM and a key made from your password with Argon2id. Each becomes an .enc file with a random name, the real name stored inside, so file names don't give anything away (the folder still shows how many files there are, their sizes and dates). You get a recovery key. Encrypting a whole folder in one step is part of Pro ($19 once); decrypting folders is free. It doesn't encrypt whole drives, so keep device encryption on too. It's closed source and hasn't been independently audited; its file format is public, with an open-source decryptor.
Questions
How do I hide a folder in Windows 11?
Right-click the folder, select Properties, tick Hidden and select OK. If it's still visible, clear View, Show, Hidden items in File Explorer.
How do I hide a folder in Windows 11 with a password?
Windows can't put a password on a folder. Encrypt the files instead, with a 7-Zip 7z archive (tick Encrypt file names) or an app such as Clavis Encrypt, then hide the folder too if you like. On Pro, EFS encrypts a folder but unlocks with your Windows sign-in, not a password.
How do I completely hide a folder in Windows 11?
In Command Prompt, run attrib +h +s with the folder's path in quotes. It then stays hidden even with Hidden items on, until someone unticks Hide protected operating system files. dir /a still lists it, so nothing is completely hidden. Encrypt anything private.
How do I hide files from other users on Windows 11?
Give each person their own Windows account as a standard user, and keep your files in your own user folder, which other standard accounts can't open. Administrators still can, so encrypt what really matters.
How do I make a file private in Windows 11?
Keep it in your own user folder under your own account. To keep it from administrators, anyone using your account or anyone who gets the drive, encrypt it with a password. The Hidden box works on files too, but only hides them.
Can an administrator see my hidden files?
Yes. Administrators can show hidden items, open other users' files and take ownership of files that deny them access. Files encrypted with your password they can see and delete, but not read, as long as they never get your password. An administrator can install software on the PC, so don't rely on that if the person you're hiding files from is its administrator.
How do I unhide a folder in Windows 11?
In File Explorer, select View, Show, Hidden items, then open the folder's Properties and clear Hidden. If you hid its contents too, choose Apply changes to this folder, subfolders and files again. If you used attrib +h +s, run attrib -h -s with the folder's path in Command Prompt.
Sources
- Microsoft Support: File Explorer in Windows (View → Show → Hidden items; See more → Options; Windows 10: Show hidden files, folders, and drives)
- Microsoft Learn: attrib (Hidden and System attributes; clear them before changing other attributes)
- Microsoft Learn: File attribute constants (a hidden item "is not included in an ordinary directory listing")
- Microsoft Learn: SHCONTF (hidden items and hidden system items are listed separately)
- Microsoft Learn: [MS-GPPREF] GlobalFolderOptionsVista (ShowSuperHidden "Displays protected operating system files")
- Microsoft Learn (archived): Managing Files, Folders, and Search Methods (to view system files, clear Hide protected operating system files)
- Microsoft Learn: dir (/a lists hidden and system files)
- Microsoft Support: Manage user accounts in Windows (separate accounts; administrators can access all files)
- Microsoft Learn: Access control overview (Security tab; the owner can always change permissions)
- Microsoft Learn: File system functionality comparison (access control lists on NTFS, not on exFAT or FAT32)
- Microsoft Learn: Take ownership of files or other objects (Administrators by default)
- Microsoft Learn: takeown (an administrator recovers access to a denied file)
- Microsoft Learn (archived): Encrypting File System overview (permissions don't protect against physical attacks)
- Microsoft Learn: BitLocker overview (a drive moved to a different device)
- Microsoft Support: Protect your OneDrive files in Personal Vault (an opened file's name might appear in an app's Recent list)
- Microsoft Support: How to encrypt a file or folder (not available in the Home edition)
- Microsoft Support: Device Encryption in Windows (available on Home; Settings path; recovery key attached to your Microsoft account)
- 7-Zip home page (free, open source, AES-256 in 7z)
- 7-Zip help: Add to Archive dialog (Encrypt file names; Delete files after compression is a separate option)
- Clavis Encrypt: the public .enc file format and open-source decryptor
Last checked against Microsoft's documentation on November 15, 2026. The dialog labels, the attrib and dir results and the user-folder permissions are from our own test on a Windows 11 Home PC. Menu names can differ slightly between Windows versions.
Related: keeping files private on a shared family PC, how to encrypt a folder on Windows, locking a folder with a password without software and encrypting a file in your browser.