Skip to content
Follow
Windows

How to Hide and Unhide Files and Folders in Windows 11

Richard
Written by
Richard
Mar 15, 2026 Updated Oct 4, 2026 5 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 a file or folder in Windows 11 keeps it out of normal view in File Explorer . It’s handy for tidying a cluttered folder or keeping personal documents out of sight. Each item has a Hidden attribute, and you can turn it on or off from Properties or from the command line.

Advertisement

Windows also hides some system files by default so nobody deletes important setup files by accident. When you need to find or edit hidden items, you can switch the view setting on and off at any time.

Hiding is not security. Anyone using your account can turn on Hidden items and see everything. If you need real protection, use a separate user account, NTFS permissions or encryption.

⚡ Quick Answer

Open File Explorer , right-click the file or folder, select Properties, and tick or clear the Hidden checkbox under Attributes. Click OK. The item disappears from view if Hidden items display is off, or use the attrib command in Windows Terminal for multiple items at once.

Advertisement

How to Hide or Unhide Files Using File Properties

This method works the same on Windows 11 Home and Pro. If the item is already hidden, turn on Hidden items first (see the last section) so you can see it.

  1. Open File Explorer and browse to the file you want to hide or unhide.
  2. Right-click the file and choose Properties. The Properties window opens.
  3. Stay on the General tab and find the Hidden checkbox next to Attributes near the bottom.
  4. To hide the file, tick the Hidden box. To unhide it, clear the box.
  5. Click OK to save. If you hid the file and Hidden items is off, it disappears from the folder right away. If it doesn’t, press F5 to refresh.
📝Good to KnowIf the checkbox is greyed out, you probably don’t have permission to change the file, or it sits in a protected location.

Try again from an administrator account.

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

Folders work almost the same way, with one extra question about the contents.

Advertisement
  1. Open File Explorer and browse to the folder you want to hide or unhide.
  2. Right-click the folder and select Properties.
  3. On the General tab, tick or clear the Hidden box.
  4. Click OK. If the folder has anything inside, a Confirm Attribute Changes window appears with two options:
    • Apply changes to this folder only – Only the folder itself is hidden or unhidden. The files inside keep their current state.
    • Apply changes to this folder, subfolders and files – Everything inside is hidden or unhidden too.
  5. Choose the option you want and click OK.

For most cases, hiding the folder only is enough, because nobody can browse into a folder they can't see. Pick the second option when you want the whole tree to change, for example when you later want to unhide everything in one go.

Right-click folder menu displaying Properties selection option
Right-click folder menu displaying Properties selection option

To sum up this method: open the item's Properties and tick or clear Hidden. It is the quickest way to hide or unhide one item at a time, and it needs no extra tools or commands.

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

Windows Terminal or Command Prompt can hide and unhide items with the attrib command. This is much quicker than clicking through menus when you have many items, or when you want to put the commands in a script.

  1. Open Windows Terminal or Command Prompt. Search for either one in the Start menu and click it. A window opens with a prompt.
  2. Type the command below and press Enter.

To hide a file:

Advertisement
💻Code
attrib +h "full_path_to_file"

To unhide a file:

💻Code
attrib -s -h "full_path_to_file"

Replace full_path_to_file with the actual file location, including the name and extension. If the path contains spaces, put the whole path in quotation marks.

The command prints nothing when it works. Check the result in File Explorer, or open the file's Properties and look at the Hidden box.

Example:

Advertisement
💻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

The steps for a single folder are the same as for a file. The folder's path replaces the file path in the command.

  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"

Used this way, the command changes only the folder itself, not the files inside it.

Advertisement

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

To change a whole directory, including its subfolders and every file inside, the attrib command needs extra switches. With the right switches, the change applies to the main folder, all subfolders and all files in one pass. The unhide command below reverses it, and the example shows a complete line.

💻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

Use this setting to show hidden items so you can find them, open them or unhide them. It is a view option, not a change to the files themselves.

Advertisement
  1. Open File Explorer (press Windows + E).
  2. Click the View menu at the top of the window.
  3. Hover over Show and click Hidden items. A tick appears next to it.

Hidden files and folders now appear, and their icons look faded so you can tell them apart from normal items.

To hide them again, go back to View Show and clear Hidden items. The setting stays on until you turn it off, so don't leave it on if you want the folders to look tidy.

⚠️WarningThis option doesn't reveal protected operating system files.

Windows controls those separately in the Folder Options window, and it is best to leave that setting alone.


Summary

  • Hidden files and folders don't show up by default, which keeps things tidy and protects system files.
  • You can hide or unhide files and folders from their Properties or with commands.
  • When visible, hidden items appear faded in File Explorer.
  • Commands are faster when you need to hide or unhide many files or folders at once.
  • Hiding is for convenience, not security.

Hidden items stay out of sight by default, which keeps your folders tidy and prevents accidental deletion of important system data. Whenever you need to reach them, use the Properties window for single items, the command prompt for bulk changes, or the Hidden items view option to see everything.

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 is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 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 *