Why Are Files Hidden in Windows 10? Explained
In this article
Files are hidden in Windows 10 to protect critical operating system components and user data from accidental modification or deletion, and to keep everyday folders like AppData out of sight so the interface stays uncluttered. You can see them by turning on "Hidden items" in File Explorer's View tab, or by using the attrib command to reveal files marked with the hidden attribute. This guide explains the reasons behind hidden files and walks you through showing them safely.
What You'll Need
- A Windows 10 PC with File Explorer (built into every edition).
- Administrator rights if you need to change protected system files (optional for simply viewing).
- Basic familiarity with navigating folders.
Step-by-Step
- Open File Explorer. Press
Win + Eor click the folder icon on the taskbar. - Go to the View tab. In the ribbon at the top, click View. (Menu labels can differ slightly by Windows version and region.)
- Enable Hidden items. In the Show/hide group, tick the checkbox for Hidden items. Files and folders with the hidden attribute now appear slightly dimmed.
- To show protected operating system files (optional). Click Options (or Change folder and search options) on the View tab, then open the View tab in the Folder Options dialog. Scroll down and clear the checkmark for Hide protected operating system files (Recommended). Click Apply and OK. You will see a warning; confirm only if you understand the risk.
- To reveal a specific file via Command Prompt. Open Command Prompt as administrator (search "cmd", right-click, Run as administrator). Navigate to the folder with
cd, then runattrib -h -s "filename"to remove the hidden and system attributes. Useattrib -h -s /s /din the folder to unhide everything recursively — but be careful, as this can expose system files. - To hide a file again. Right-click the file, choose Properties, tick Hidden, and click OK. Or use
attrib +h "filename"in Command Prompt. - To restore default visibility. Return to the View tab and untick Hidden items, and re-tick Hide protected operating system files in Folder Options.
Common Mistakes
- Unhiding system files and deleting them. Files like
desktop.ini,ntuser.dat, or items inC:\Windowsare hidden for a reason; deleting them can break Windows or user profiles. - Using
attrib -h -s /s /don the whole drive. This removes hidden and system attributes from thousands of files, making the system vulnerable and cluttered. Only use it on a specific folder you own. - Confusing hidden files with protected operating system files. The "Hidden items" checkbox does not show protected OS files; you need the separate Folder Options setting.
- Forgetting that some malware hides files. If files disappear unexpectedly, scan for malware rather than assuming Windows hid them.
Tips
- Use the search box in File Explorer to find hidden files by name even when they are not visible.
- Keep "Hide protected operating system files" enabled unless you have a specific reason to change it.
- To see file extensions (often hidden by default), go to View tab and tick File name extensions.
- Hidden files are dimmed; if you see them but they look faded, that is normal.
- For quick toggling, you can add the Hidden items checkbox to the Quick Access Toolbar via File > Options > Quick Access Toolbar.
Troubleshooting
If hidden files still do not appear after ticking the checkbox, try these steps in order:
- Refresh the folder. Press
F5or right-click and choose Refresh. - Check Folder Options again. Open File > Options > View and ensure "Show hidden files, folders, and drives" is selected (not just the ribbon checkbox).
- Restart File Explorer. Open Task Manager (Ctrl+Shift+Esc), find Windows Explorer, right-click and Restart.
- Run a malware scan. Some malware hides files; use Windows Security or another reputable antivirus.
- Check Group Policy (Pro editions). If you are on a managed PC, policy may prevent showing hidden files; contact your administrator.
- Use Command Prompt. Run
dir /ain the folder to list all files including hidden ones, confirming whether they exist.
Frequently Asked Questions
Why does Windows hide files by default?
To protect critical system files from accidental changes and to keep the interface clean by hiding configuration data and temporary files.
Are hidden files dangerous?
No, most are legitimate system or application files. However, malware can also hide itself, so unexpected hidden files should be scanned.
Can I hide my own files?
Yes. Right-click a file, choose Properties, tick Hidden, and click OK. You can also use the attrib +h command.
What is the difference between hidden and protected operating system files?
Hidden files have the hidden attribute set; protected operating system files have both hidden and system attributes and are hidden by a separate setting in Folder Options.
Does showing hidden files affect performance?
No, it only changes what File Explorer displays.
How do I hide a drive?
You can hide a drive using Disk Management or Group Policy, but that is separate from file hiding. For most users, hiding files is sufficient.