Skip to content
Follow
Windows

How to Hide and Unhide Files and Folders in Windows 11

Richard
Written by
Richard
Mar 15, 2026 Updated Aug 13, 2026 4 min read
How to Hide and Unhide Files and Folders in Windows 11
How to Hide and Unhide Files and Folders in Windows 11

Hiding files and folders in Windows 11 lets you keep personal documents private or clean up a messy desktop in just a few clicks. File Explorer , the built-in app you use to browse your computer, includes a simple checkbox that makes any item invisible.

Windows hides system files by default to stop you from accidentally deleting or changing important setup files. You can undo this setting anytime when you need to find or edit those hidden items.

⚡ Quick Answer

To hide or unhide files and folders in Windows 11, right-click the item, select Properties, and then check or uncheck the Hidden box in the General tab. You can also use the `attrib` command in Windows Terminal.

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.
Right-click context menu with Properties option highlighted
Right-click context menu with Properties option highlighted

File Properties dialog showing Hidden checkbox in General tab
File Properties dialog showing Hidden checkbox in General tab


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.
Right-click folder menu displaying Properties selection option
Right-click folder menu displaying Properties selection option

Properties menus offer another direct route for folder management. Right-clicking a target directory brings up the required access panel. Marking the Hidden box inside the General tab tucks the folder away, while clearing the mark reverses the action. Clicking OK saves the configuration.

Folder Properties window with Hidden checkbox and apply options
Folder Properties window with Hidden checkbox and apply options

How to Hide or Unhide Files Using Commands

Command-line environments like Windows Terminal or Command Prompt offer a faster batch method for modifying files. Opening either utility provides the interface needed for text-based modifications. Typing the ‘attrib +h’ command followed by the file’s full path hides the target, while ‘attrib -h’ brings it back. Pressing Enter executes the instruction.

  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:

💻Code
attrib +h "full_path_to_file"

To unhide a file:

💻Code
attrib -s -h "full_path_to_file"
📝Good to Know
Replace full_path_to_file with the actual file location, including the name and extension.

Example:

💻Code
attrib +h "C:\Users\YourName\Desktop\secret.txt"
attrib -s -h "C:\Users\YourName\Desktop\secret.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:

💻Code
attrib +h "full_path_to_folder"

Unhide:

💻Code
attrib -s -h "full_path_to_folder"

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

Modifying entire directories alongside their contents requires specific command-line switches. Hiding a directory tree relies on 'attrib +h "full_path_to_folder*" /s /d'. Reversing this state uses 'attrib -s -h "full_path_to_folder*" /s /d'. Swapping the placeholder text points the utility at the correct directory.

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

Unhide:

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

Example:

💻Code
attrib +h "C:\Users\YourName\Desktop\MyFolder" | attrib +h "C:\Users\YourName\Desktop\MyFolder*" /s /d
attrib -s -h "C:\Users\YourName\Desktop\MyFolder" | attrib -s -h "C:\Users\YourName\Desktop\MyFolder*" /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.

Hidden files and folders will now appear, though their icons will look faded.

To hide them again, 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.

Windows 11 conceals specific directories by default to maintain a tidy File Explorer. Item properties menus or command-line utilities provide reliable ways to toggle visibility states. Once revealed, concealed content displays with a translucent icon overlay.

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

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Show Hidden Files, Folders, and Drives in Windows 11
Windows How to Show Hidden Files, Folders, and Drives in Windows 11
How to Show or Hide Preview Pane in File Explorer in Windows 11
Windows How to Show or Hide Preview Pane in File Explorer in Windows 11
How to Show or Hide the Details Pane in Windows 11 File Explorer
Windows How to Show or Hide the Details Pane in Windows 11 File Explorer
How to Change File Explorer Layout in Windows 11
Windows How to Change File Explorer Layout in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

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