Hidden files are there to protect system settings, but you can view them whenever you need to

A hidden file is straightforward a file your operating system has marked so it does not show up in your normal folder view. Windows and Mac both hide certain system files by default — things like configuration files that control how your computer runs. You can turn on the setting to see these files anytime, and it takes less than a minute. The steps differ between Windows and Mac, but both are straightforward once you know where to look.

You might need to see a hidden file if you are looking for a configuration file you created, troubleshooting a problem, or organizing files that someone else hid. The file itself is not locked or protected — it is just invisible until you change one setting.

Key Takeaways

  • On Windows, open File Explorer, click the View tab, and check the box next to "Hidden items" to see all hidden files at once.
  • On Mac, open Finder, press Command+Shift+Period to toggle hidden files on and off when ready.
  • Hidden files are marked by a dot at the start of the filename on Mac, and by a faded appearance on Windows.
  • Hiding a file again is just as straightforward — use the same setting to turn the visibility back off.

How to show hidden files on Windows

Open File Explorer by pressing Windows key + E, or by clicking the folder icon on your taskbar. Navigate to the folder where your hidden file should be.

At the top of the window, click the View tab. In the ribbon menu that appears, look for a checkbox labeled Hidden items. Click it to turn it on. All hidden files in that folder will now appear, usually shown in a lighter or faded color to distinguish them from regular files.

The setting stays on for that folder, so you will see hidden files there every time you open it. If you want to hide them again, click the same checkbox to turn it off.

How to show hidden files on Mac

Open Finder by clicking the Finder icon in your dock, or by pressing Command+Space and typing "Finder". Navigate to the folder where your hidden file is located.

Press Command+Shift+Period (the period key, also called a full stop). This keyboard shortcut toggles hidden files on and off when ready. When hidden files are visible, they appear with a dot at the very beginning of the filename — for example, .config or .bashrc. Press the same keys again to hide them.

This shortcut works in any Finder window, so you can turn the visibility on or off as many times as you need without changing any settings.

Why files get hidden in the first place

Your operating system hides certain files to prevent accidental changes. System configuration files, preference files, and cache files all control how your computer works. If you delete or modify them by mistake, you could cause problems. Hiding them keeps them out of the way for everyday file management.

You or another user can also manually hide a file. On Windows, right-click a file, select Properties, check the "Hidden" box, and click OK. On Mac, select a file, press Command+I to open Get Info, and check "Hide extension" — though this hides only the file type suffix, not the whole file. To hide the entire filename on Mac, you would need to rename it to start with a dot.

What to do if you cannot find the file you are looking for

If you have turned on hidden files and still cannot see what you need, the file might be in a different folder than you expected. Use your operating system's search function to look for it by name. On Windows, press Windows key + S and type the filename. On Mac, press Command+Space and type the filename into Spotlight.

If the search finds the file, it will show you the full path — the folder location — so you know where to look next time. If the search finds nothing, the file may have been deleted, or it may be on an external drive or cloud storage service that is not currently connected.

How to organize hidden files so you do not lose track of them

If you are creating your own hidden files for organization purposes, keep a list somewhere visible of what you have hidden and where. A straightforward text file on your desktop with the filenames and their locations will save you time later. You could also create a folder specifically for files you want to keep out of sight, then hide that folder instead of hiding individual files.

Another approach is to use your operating system's tagging or labeling system. On Mac, you can add color labels or tags to hidden files so they are easier to spot when you turn visibility on. On Windows, you can add files to your Quick Access menu so you can reach them without navigating through folders.

Frequently Asked Questions

Can I hide a file so no one else can see it?

Hiding a file makes it invisible in normal folder view, but it does not password-protect it. Anyone with access to your computer can turn on the hidden files setting and see it. If you need actual privacy, use encryption or password protection instead of just hiding the file.

What if I accidentally delete a hidden file?

If you delete a hidden file, it goes to your Recycle Bin (Windows) or Trash (Mac) just like any other file. You can recover it by opening the Recycle Bin or Trash, finding the file, and restoring it. If you have already emptied the Recycle Bin or Trash, recovery becomes much harder and may require professional data recovery tools.

Do I need to unhide a file before I can use it?

No. A hidden file works exactly the same as a visible one. Programs can open and use hidden files without any problem. Hiding only affects whether the file shows up in your folder view — it does not change how the file itself works.

Why does my Mac show files starting with a dot?

On Mac, filenames that start with a dot are system files or configuration files. The dot is part of the actual filename, not just a marker. When you turn off hidden file visibility, these dot-files disappear along with other hidden files.