Why your computer hides files in the first place

Your operating system hides certain files by default to protect you from accidentally deleting or changing something that keeps your computer running. These hidden files are usually system files, configuration files, or backup files that most people never need to touch. When you enable hidden files, you can see them alongside your regular documents and folders — but they remain just as straightforward to delete, so this is a "look but be careful" setting.

You might need to see hidden files if you're troubleshooting a problem, looking for a configuration file a program created, or trying to find a backup your computer made automatically. Once you turn on the setting, it stays on until you turn it off again.

Key Takeaways

  • Hidden files are usually system or configuration files that your computer hides to prevent accidental deletion.
  • On Windows, you turn on hidden files through File Explorer's View menu or through Folder Options in Settings.
  • On Mac, you use Terminal or a keyboard shortcut to show hidden files, and the setting persists until you reverse it.
  • Hidden files appear slightly faded or dimmed on most systems so you can still tell them apart from regular files.
  • Deleting a hidden file can break your computer or a program, so only delete one if you know exactly what it does.

Showing hidden files on Windows

The fastest way on Windows is through File Explorer. Open File Explorer (the folder icon on your taskbar), then look at the top menu bar. Click the View tab, and you'll see a checkbox labeled Hidden items. Click it once to turn it on. Hidden files now appear in your folders, usually shown slightly faded or with a different icon so you can tell them apart.

If you don't see a View tab at the top, your menu bar might be hidden. Press Alt on your keyboard to make it appear, then click View.

This setting stays on for all folders until you uncheck it again. If you want to turn it off later, go back to View and uncheck Hidden items.

Showing hidden files on Mac

On Mac, the quickest method is a keyboard shortcut. Open Finder, then press Command + Shift + Period (the period key, also called a full stop). Hidden files appear when ready in your folders. Press the same keys again to hide them.

If the keyboard shortcut doesn't work on your Mac, you can use Terminal instead. Open Terminal (search for it in Spotlight by pressing Command + Space, then type Terminal). Paste this line and press Enter: defaults write com.apple.finder AppleShowAllFiles TRUE. Then type killall Finder and press Enter. Finder restarts and hidden files now show. To hide them again later, repeat the process but replace TRUE with FALSE.

The keyboard shortcut method is simpler if it works on your version of Mac, since you can toggle hidden files on and off without opening Terminal each time.

What hidden files actually look like

On Windows, hidden files usually appear slightly faded or grayed out compared to regular files. Their names often start with a period or have names like "thumbs.db" or "desktop.ini". System folders like "System32" or "Windows" are also hidden by default.

On Mac, hidden files appear slightly dimmed and their names almost always start with a period — for example, ".DS_Store" or ".bash_profile". These are configuration files that programs and your system use to remember settings.

In both cases, the faded appearance is intentional: it's a visual reminder that these files are different from your regular documents and folders.

Common hidden files you might encounter

On Windows, you'll often see .git folders (used by programmers for version control), AppData folders (where programs store settings), and $Recycle.Bin (your Recycle Bin's storage location). You might also see pagefile.sys or hiberfil.sys, which are system files Windows uses for memory and sleep mode.

On Mac, common hidden files include .DS_Store (stores folder view settings), .bash_profile or .zprofile (configuration for Terminal), and .ssh folders (used for find connections). You might also see .Trash, which is Mac's version of the Recycle Bin.

Unless you know exactly what a hidden file does, leave it alone. Deleting the wrong one can cause your computer or a specific program to stop working correctly.

Hiding files again when you're done

On Windows, go back to File Explorer, click the View tab, and uncheck Hidden items. The hidden files disappear from view but remain on your computer — they're just hidden again.

On Mac, press Command + Shift + Period again to toggle hidden files off, or use Terminal to run the same command with FALSE instead of TRUE.

Turning off the setting doesn't delete anything. It just returns your folders to their normal appearance, hiding the system and configuration files again.

Frequently Asked Questions

Can I permanently delete a hidden file?

Yes, but only do this if you know exactly what the file does. Deleting system files or configuration files can break your computer or stop a program from working. If you're unsure, search the file name online first to learn what it is.

Why do some files stay hidden even after I turn on hidden files?

Some files are protected by your operating system and won't show even with hidden files turned on. These are critical system files that Windows or Mac prevents you from viewing or deleting. This is a safety feature.

Do hidden files take up storage space?

Yes, hidden files use storage just like regular files. Hiding them only changes whether you can see them, not whether they exist on your computer.

If I show hidden files, will my computer run slower?

No. Turning on the setting to view hidden files doesn't change how your computer runs. It only changes what you see in your folders.

What's the difference between a hidden file and a deleted file?

A hidden file still exists on your computer and your programs can use it — you just can't see it normally. A deleted file is removed from your computer entirely (though it may be recoverable from the Recycle Bin or Trash for a while).