Hidden files exist on every computer, and your operating system hides them by default
Hidden files are real files stored on your computer — documents, folders, settings, and configuration files — that your operating system deliberately keeps out of sight in File Explorer (Windows) or Finder (Mac). They are hidden because they contain system settings or program data that most people do not need to see or touch. The dot at the start of a filename (like .config or .bashrc) is what marks a file as hidden on Mac and Linux. Windows uses a hidden attribute instead.
You can view these files whenever you want. The process takes about 30 seconds and does not require administrator access or special tools. Once you turn on the setting, hidden files stay visible until you turn it back off again.
Key Takeaways
- Hidden files are marked by a dot at the beginning of the filename on Mac and Linux, or by a hidden attribute on Windows.
- Windows users can show hidden files by opening File Explorer, clicking the View tab, and checking the Hidden Items box.
- Mac users can show hidden files by opening Finder, pressing Command+Shift+Period, and the files will appear immediately.
- Hidden files stay visible after you turn them on until you manually turn them off again.
- Most hidden files are system or program files — deleting them can break your computer, so only open or move files you recognize.
How to show hidden files on Windows
Open File Explorer by pressing Windows key + E, or click the folder icon on your taskbar. Navigate to any folder where you want to see hidden files — your Documents folder, Desktop, or any other location will work the same way.
Look at the top of the File Explorer window and click the View tab. In the ribbon that appears, find the checkbox labeled Hidden Items (it may also say "Show hidden files" depending on your Windows version). Click the checkbox to turn it on. Hidden files and folders will now appear in gray text, slightly faded compared to regular files.
To hide them again later, click the same checkbox to turn it off. The setting applies to all folders on your computer — you do not need to repeat it for each location.
How to show hidden files on Mac
Open Finder by clicking the Finder icon in your dock, or press Command+Space and type "Finder". Navigate to any folder where you want to see hidden files.
Press Command+Shift+Period (the period key, also called a full stop). Hidden files will appear immediately in the folder. They will look slightly faded or grayed out compared to regular files. Press the same key combination again to hide them.
This keyboard shortcut works in any Finder window and applies instantly — you do not need to restart or change any settings.
What hidden files actually are and why they are hidden
Hidden files are configuration files, cache files, and system data that programs and your operating system need to function. Examples include .git folders (used by programmers), .config folders (where programs store settings), and system preference files. Your operating system hides them because accidentally moving, renaming, or deleting them can break programs or your computer itself.
Most people never need to see hidden files. You might need them if you are troubleshooting a program that is not working, looking for a specific configuration file, or following instructions from a support article that tells you to open a hidden folder. If you are not sure whether a file is safe to touch, leave it alone.
Common hidden files and folders you might encounter
On Windows, hidden system folders include AppData (where programs store user data), ProgramData (where programs store shared data), and System32 (core Windows files). On Mac, hidden folders include Library (where programs and the system store settings), .config, and .ssh (used for secure connections).
If you are looking for a specific file or folder and cannot find it, hidden files are often the culprit. For example, if a program says it saved a file to your home folder but you cannot see it, turning on hidden files will usually reveal it. The same applies if you are looking for a .env file, .gitignore file, or any other configuration file that a program or tutorial mentions.
Why some files stay hidden even after you turn on the setting
On Windows, some system files are protected beyond the hidden attribute. Even with hidden files turned on, you may not see files in System32 or other core Windows folders. This is intentional — Windows prevents you from accidentally deleting critical system files. If a support article tells you to edit a file in System32, follow the instructions exactly and do not move or delete anything else in that folder.
On Mac, some files in /System and /Library are restricted even when hidden files are visible. Again, this is a safety feature. If you need to modify a protected file, the instructions will usually tell you to use Terminal or ask for your administrator password.
Frequently Asked Questions
Is it dangerous to show hidden files?
No, turning on the setting is completely safe. Seeing hidden files does not change anything on your computer. The danger comes only if you delete, move, or rename hidden files you do not recognize. If you are just looking at them, nothing bad will happen.
Will hidden files slow down my computer?
No. Hidden files are already on your computer and already running. Showing them in File Explorer does not affect performance at all.
Can I hide files myself, or only system files?
You can hide any file you own. On Windows, right-click a file, select Properties, check the Hidden box, and click OK. On Mac, right-click a file, select Get Info, and check "Hide extension" (or rename the file to start with a dot). Your own hidden files will behave the same way as system hidden files.
What if I accidentally deleted a hidden file?
If you deleted a system file, restart your computer first — sometimes the damage does not show until the next startup. If something is broken, you may need to reinstall the program or use Windows/Mac recovery tools. If you deleted your own file, check your Recycle Bin (Windows) or Trash (Mac) and restore it from there.
Do I need to turn hidden files back off when I am done?
No, but many people do because the faded gray text can be distracting. Leaving hidden files on does not cause any problems. Turn them off whenever you prefer — it is purely a matter of what you find easier to look at.