Fix a folder that is hidden

We'll show hidden folders, rule out the Hidden attribute or system folders, then make the folder visible or create a new visible folder.

Category
Troubleshooting · Home maintenance
Time
5–15 min
Last reviewed
What you'll need
  • Access to File Explorer (Windows) or Finder (Mac) View options
  • Administrator rights (to unhide some system folders)

Step-by-step diagnostic

Step 1 of 7
Show full guide

Steps

Goal: Show hidden folders, then unhide the specific folder or create a new visible one.

  • Confirm you need to see a folder that is not visible in File Explorer or Finder.
  • Good: You find the folder after enabling “Show hidden files”—proceed to unhide it.
  • Bad: You still do not see it—check the path or suspect malware.

Show hidden files

Goal: Enable viewing of hidden files and folders.

  • Windows: File Explorer > View tab > check “Hidden items”. Or Control Panel > File Explorer Options > View > “Show hidden files, folders, and drives”. Mac: Finder > press Command+Shift+. (period) to toggle hidden files.
  • Good: Hidden folders appear, possibly dimmed or grayed out.
  • Bad: Still no folder—open the known path (e.g. C:\Users\You\AppData or ~/Library) and look again.

Unhide the folder

Goal: Remove the Hidden attribute so the folder is visible by default.

  • Windows: Right-click the folder > Properties. Uncheck “Hidden” and click OK. Choose “Apply to this folder, subfolders and files” if prompted. Mac: Use chflags nohidden /path/to/folder in Terminal, or rename a dot-prefixed folder to remove the leading dot.
  • Good: Folder is now visible without enabling “Show hidden files”.
  • Bad: Folder will not unhide—check permissions, or run attrib (Windows) if malware may have set System attribute.

Malware

Goal: Restore a folder hidden by malware and remove the threat.

  • Run a full antivirus scan. Windows: Open Command Prompt as administrator, run attrib -h -s /d /s "D:\path\to\folder" (adjust path) to remove Hidden and System attributes. If malware is found, quarantine and remove it. Verify the folder is restored.
  • Good: Folder visible and malware removed.
  • Bad: System still compromised—consider a technician.

When to get help

  • You suspect malware hid the folder and antivirus cannot remove it.
  • The folder is on a work or school computer and you lack permission to change attributes.
  • The folder appears corrupted or you need data recovery—contact a specialist.

Verification

  • The folder is visible in File Explorer or Finder.
  • You can open the folder and access its contents.
  • The folder remains visible after refreshing or restarting Explorer/Finder.

Escalation ladder

Work from the device outward. Stop when the problem is fixed.

  1. Show hidden files Enable "Show hidden files" in File Explorer or Finder.
  2. Unhide the folder Right-click > Properties (Windows) or Get Info/chflags (Mac); uncheck Hidden.
  3. Malware check Run antivirus; use attrib -h -s to restore if malware hid the folder.
  4. Create new folder If corrupted, create a new folder and copy files.
  5. Call a pro Malware, no permission, or data recovery—contact IT or a technician.

What to capture if you need help

Before calling support or posting for help, have these ready. It speeds everything up.

  • Folder path
  • Whether "Show hidden files" is enabled
  • Hidden attribute status
  • Suspected malware (yes/no)
  • Steps already tried

Have you enabled "Show hidden files" in File Explorer or Finder?

Windows: View tab > Hidden items. Mac: Command+Shift+. or defaults write com.apple.finder AppleShowAllFiles TRUE.

Enable "Show hidden files, folders, and drives" (Windows) or use Command+Shift+. (Mac). Good: hidden folders now appear (possibly dimmed). Bad: still do not see the folder—check the path or parent folder.

You can change your answer later.

Enable and retry

Enable "Show hidden files" in File Explorer (View > Hidden items) or Finder (Command+Shift+.). Open the folder location. The folder should appear, possibly dimmed.

Do you see the folder (possibly dimmed)?

Hidden folders may appear grayed out or dimmed when "Show hidden" is on.

If you see the folder: right-click > Properties (Windows) > uncheck Hidden. Mac: Get Info > click the lock to allow changes if needed, or chflags nohidden. Good: folder unhidden. Bad: do not see folder—check path, or suspect malware.

You can change your answer later.

Unhide the folder

Windows: Right-click > Properties > uncheck Hidden > OK. Mac: chflags nohidden /path/to/folder, or rename to remove leading dot. The folder should now be fully visible.

Do you know the exact path?

Some folders (AppData, Library) are in fixed locations. Type the path in the address bar.

Windows: Type C:\\Users\\YourName\\AppData in the address bar. Mac: Go > Go to Folder > ~/Library. If the folder appears, unhide it. If not, the folder may have been deleted or moved—check Recycle Bin or backups.
Question

Do you know the path?

You can change your answer later.

Do you suspect malware hid the folder?

Malware sometimes hides folders and creates fake shortcuts.

Run a full antivirus scan. Windows: Use attrib -h -s /d /s "path" in Command Prompt (admin) to remove Hidden and System. If malware is found, remove it before restoring. Consider a technician if the system is compromised.
Question

Suspect malware?

You can change your answer later.

Call a pro

If you lack permission on a work/school computer, contact IT. If the folder is corrupted or you need data recovery, consider a specialist. Do not delete the folder until data is recovered.

Reviewed by Blackbox Atlas

Frequently asked questions

Why would a folder be hidden?
The folder has the Hidden attribute set (Windows) or is prefixed with a dot (Mac/Linux). System folders like AppData and ProgramData are hidden by default. Malware sometimes hides folders.
How do I show hidden folders in Windows?
File Explorer > View tab > check "Hidden items". Or: Control Panel > File Explorer Options > View tab > select "Show hidden files, folders, and drives".
How do I show hidden folders on Mac?
Finder: Press Command+Shift+. (period) to toggle hidden files. Or: Terminal, run defaults write com.apple.finder AppleShowAllFiles TRUE, then killall Finder.

Rate this guide

Was this helpful?

Thanks for your feedback.

Continue to