How do I hide a file or folder in Windows?

Updated: 01/24/2018 by Computer Hope

An easy way to help protect a file or folder from being accidentally deleted is to make it hidden. To hide a file or folder in Windows, follow the steps below.

  1. First, right-click the file or folders icon.
  2. From the drop-down menu that appears, select Properties at the bottom.
  3. You should see a window similar to this one:

File Properties

  1. In the Properties window under the General tab, locate the Attributes: section.
  2. Check the box next to Hidden, the click Apply and OK.

How do I know if it worked?

If you have not enabled the option to view hidden files, the file should no longer be visible in its folder. If show hidden files is enabled, the file will still be visible, but a lightened version of the original; similar to the "hidden.txt" in the example shown below.

Windows hidden file

How do I unhide a hidden file?

If viewing hidden files is enabled a file can be unhidden by following the same above steps, but unchecking the Hidden box.