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

Hidden files exist by default on Windows, Mac, and Linux computers. Your operating system hides them to prevent accidental deletion of files that keep your computer running. You can turn on visibility for hidden files in a few clicks — the files themselves don't move or change, you're just changing what your file manager displays.

The steps differ depending on whether you use Windows or Mac. Both processes take less than a minute and can be undone just as quickly if you want to hide them again.

Key Takeaways

  • Hidden files on Windows start with a dot or have the hidden attribute set; you reveal them through View settings in File Explorer.
  • On Mac, hidden files also start with a dot; you can show them using Finder preferences or a keyboard shortcut.
  • Showing hidden files does not change the files themselves — you're only changing what your file manager displays.
  • Common reasons to view hidden files include finding configuration files, troubleshooting software problems, or locating backup folders.

How to show hidden files on Windows 11 and Windows 10

Open File Explorer and navigate to the folder where you want to see hidden files. Click the View tab at the top of the window. In the ribbon menu, look for a checkbox labeled Hidden items and click it. Any hidden files and folders in that location will now appear, usually shown with a slightly faded icon to indicate they're hidden.

If you want hidden files to stay visible in all folders going forward, you can make this the default. In File Explorer, click File in the top left, then Change folder and search options. Go to the View tab, scroll down to Hidden files and folders, and select Show hidden files, folders, and drives. Click Apply and then OK. From that point on, hidden files will display automatically whenever you open File Explorer.

How to show hidden files on Mac

On Mac, the quickest method is a keyboard shortcut. Press Command + Shift + Period (the period key, not a comma). Hidden files will appear immediately in any Finder window you have open. Press the same combination again to hide them.

If you prefer to use the menu instead, open Finder and click Finder in the top menu bar, then select Settings. Go to the Advanced tab and check the box next to Show all filename extensions and Show hidden files. Close the settings window and hidden files will now be visible in all Finder windows.

What hidden files actually look like

On both Windows and Mac, hidden files typically start with a dot (.) at the beginning of the filename. For example, a hidden configuration file might be named .gitconfig or .bashrc. On Windows, some files are also marked as hidden through a file property rather than a dot, so they won't necessarily have a dot in the name.

When hidden files are visible, they often appear slightly dimmed or grayed out compared to regular files, making it clear they're in a special category. This visual distinction helps you avoid accidentally moving or deleting them.

Common reasons you might need to see hidden files

Configuration files for software often live in hidden folders. If you're troubleshooting a program that isn't working correctly, you may need to access its hidden settings folder to reset it or delete corrupted configuration data. Web developers and programmers regularly work with hidden files like .git folders (used by version control software) or .env files (which store sensitive settings).

Backup software sometimes stores its data in hidden system folders. If you're trying to locate a backup or understand how much space backups are using, you'll need to see these folders. You might also need to access hidden files if you're migrating data between computers or trying to find where a specific application stores its user data.

Why files are hidden in the first place

Operating systems hide certain files to prevent users from accidentally deleting or modifying them. System configuration files, temporary files, and application settings are all candidates for hiding. If you delete a critical system file, your computer may not start properly or a program may stop working.

Hidden files are not encrypted or protected in any special way — they're just marked as hidden. Showing them does not make your computer less secure. However, once they're visible, it's easier to accidentally change them, so only keep them visible if you actually need to work with them.

Hiding files again after you're done

On Windows, simply uncheck the Hidden items box in the View tab, or go back to Folder Options and select Don't show hidden files, folders, and drives. On Mac, press Command + Shift + Period again to toggle hidden files off, or uncheck the option in Finder Settings.

Hiding files again does not delete them or change them in any way. They remain on your computer exactly as they were — you're just telling your file manager not to display them.

Frequently Asked Questions

Can I hide specific files without hiding all hidden files?

Yes. Right-click any file on Windows, select Properties, check the Hidden checkbox, and click Apply. On Mac, right-click a file, select Get Info, and check Stationery Pad (or use a third-party tool like Finder's built-in options). This hides individual files without affecting the system-wide hidden file setting.

Are hidden files the same as encrypted files?

No. Hidden files are simply marked as hidden by the operating system. They're not encrypted or password-protected. Anyone with access to your computer can show hidden files and view them. If you need actual security, you should encrypt sensitive files separately.

What happens if I accidentally delete a hidden system file?

Deleting a critical system file can cause your computer to malfunction or fail to start. If this happens, you may need to reinstall your operating system or restore from a backup. Be cautious when deleting any hidden file unless you're certain what it does.

Do hidden files take up storage space?

Yes. Hidden files use the same amount of storage as visible files. If you're trying to free up space on your computer, you can see how much space hidden files are using by showing them, then checking folder sizes.