Hide and Unhide Files and Folders in Windows 11

Want to hide some files or folders on your Windows 11 PC so others don’t see them? Or maybe you want to show hidden ones? This simple guide will help you do that step-by-step.

What Are Hidden Files and Folders?

Hidden files and folders are special items that Windows keeps out of sight by default. They’re marked with a “hidden” tag so you don’t see them unless you want to.

Sometimes, important system files are also hidden to avoid accidental changes.

If you choose to show hidden files, their icons will look a bit faded in File Explorer.


How to Hide or Unhide Files Using File Properties

  1. Find the file(s) you want to hide or unhide.
  2. Right-click the file and choose Properties.
  3. In the General tab, look for the checkbox labeled Hidden.
  4. To hide the file, check the box. To unhide, uncheck it.
  5. Click OK to save.


How to Hide or Unhide Folders Using File Properties

  1. Find the folder(s) you want to hide or unhide.
  2. Right-click the folder and select Properties.
  3. In the General tab, check or uncheck the Hidden box.
  4. Click OK. If the folder has files inside, you’ll see options:
    • Apply changes to this folder only – Only the folder itself will be hidden/unhidden.
    • Apply changes to this folder, subfolders and files – Everything inside will be hidden/unhidden.
  5. Choose what you want and click OK.


How to Hide or Unhide Files Using Commands

If you like using the keyboard and command lines, you can hide or unhide files using Windows Terminal or Command Prompt.

  1. Open Windows Terminal or Command Prompt. You can search for it in the Start menu.
  2. Type the command below and press Enter.

To hide a file:

attrib +h "full_path_to_file"

To unhide a file:

attrib -s -h "full_path_to_file"

Replace full_path_to_file with the actual file location, including the name and extension.

Example:

attrib +h "C:\Users\YourName\Desktopsecret.txt"
attrib -s -h "C\:Users\YourName\Desktopsecret.txt"

How to Hide or Unhide Folders Using Commands

  1. Open Windows Terminal or Command Prompt.
  2. Type the command and press Enter.

Hide or unhide only the folder:

Hide:

attrib +h "full_path_to_folder"

Unhide:

attrib -s -h "full_path_to_folder"

Hide or unhide the folder and everything inside it (subfolders and files):

Hide:

attrib +h "full_path_to_folder" | attrib +h "full_path_to_folder*" /s /d

Unhide:

attrib -s -h "full_path_to_folder" | attrib -s -h "full_path_to_folder*" /s /d

Example:

attrib +h "C:\Users\YourName\DesktopMyFolder" | attrib +h "C:\Users\YourName\DesktopMyFolder*" /s /d
attrib -s -h "C:\Users\YourName\DesktopMyFolder" | attrib -s -h "C:\Users\YourName\DesktopMyFolder*" /s /d

How to Show Hidden Files and Folders in File Explorer

  1. Open File Explorer (press Windows + E).
  2. Click the View menu at the top.
  3. Hover over Show and click Hidden items.

Now you’ll see hidden files and folders, but their icons will look faded.

To hide them again, just uncheck Hidden items.


Summary

  • Hidden files and folders don’t show up by default to keep things tidy.
  • You can hide or unhide files and folders easily from their Properties or by using commands.
  • When visible, hidden items appear a bit faded in File Explorer.
  • Using commands is faster if you want to hide/unhide many files or folders at once.

Now you can keep your files private or show them whenever you need. Happy organizing!

More help and info: Microsoft Support: Show hidden files and folders

Categories:

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *