See all files

How to show hidden files and folders on Windows 10

You can list hidden files and folders in a number of ways, and in this guide, you'll learn how to complete this task on Windows 10 using File Explorer, Command Prompt, and PowerShell.

Windows 10 show hidden files

On Windows 10, sometimes you may need to access hidden files and folders to change system or apps settings. Usually, these items are hidden to avoid clutter or prevent accidental deletion of important components that may corrupt the operating system.

If you want to see hidden files and folders, Windows 10 offers a number of ways to complete this task using File Explorer, Command Prompt, and even PowerShell.

In this guide, you will learn the easy steps to show hidden items on Windows 10.

How to show hidden files with File Explorer

To show hidden files and folders in File Explorer, use these steps:

  1. Open File Explorer on Windows 10.

  2. Click on the View tab.

  3. Under the “Show/hide” section, check the Hidden items option.

    Show hidden files and folders in File Explorer
    Show hidden files and folders in File Explorer

Once you complete the steps, File Explorer will show the hidden as well as unhidden items, but it’ll continue to hide other protected files. 

Show hidden protected operating system files

To see hidden protected operating system files, use these steps:

  1. Open File Explorer.

  2. Click on the View tab.

  3. Click the Options button.

    File Explorer folder options button
    File Explorer folder options button
  4. Click the View tab.

  5. Under the “Advanced settings” section, check the Show hidden, folders, and drives option. 

  6. Clear the Hide protected operating system files option. 

    Show hidden operating system files
    Show hidden operating system files
  7. Click the Apply button.

  8. Click the OK button.

Once you complete the steps, you will now be able to see hidden files as well as protected Windows 10 files within File Explorer.

How to show hidden files with Command Prompt

To display hidden files and folders while in Command Prompt, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the  Run as administrator option.

  3. Type the following command to list hidden files for the location and press Enter:

    dir /adh

    Show hidden files using Command Prompt
    Show hidden files using Command Prompt

When working with the dir command, you can display hidden content in several ways using the following switches:

  • /a – only shows hidden folders.
  • /a:d – only shows all directories.
  • /a:h – only shows all hidden files.
  • /adh – shows a combination of the options above.

After you complete the steps, the command will allow you to see hidden files and folders while in Command Prompt without changing the File Explorer settings.

How to show hidden files with PowerShell

You can also see a list of hidden and protected operating system files using PowerShell with these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to view all the hidden files and folders for the location and press Enter:

    dir -Force

    Show hidden files using PowerShell
    Show hidden files using PowerShell

Once you complete the steps, the command will show hidden files and folders, but it will not change the folder options in File Explorer.

This guide focuses on Windows 10, but this feature has been available for a long time, which means that the steps will also work on Windows 8.1, Windows 7, and older versions.