How to Hide or Show File Extensions in Windows 11
In this article
You can hide or show file extensions in Windows 11 by adjusting a setting in File Explorer. Turning this on displays the full filename including the extension (like .txt or .jpg), while turning it off hides them for a cleaner look. This setting applies system-wide and affects how all files appear in folders. You do not need admin rights or third-party tools—just access to File Explorer and a few clicks.
What You'll Need
- Windows 11 operating system
- Access to File Explorer (usually via taskbar or Start menu)
- Standard user account (admin rights not required)
Step-by-Step
- Open File Explorer by clicking its icon on the taskbar or searching for "File Explorer" in the Start menu.
- Once File Explorer is open, click the "View" tab at the top of the window. This ribbon menu contains layout and display options.
- Look for the "Show" section on the right side of the View tab. There, you will see a checkbox labeled "File name extensions".
- To show file extensions, click the checkbox so a checkmark appears. Now, every file will display its extension (e.g., document.txt, photo.jpg).
- To hide file extensions, uncheck the box. Once unchecked, file extensions will no longer be visible—only the base filename appears.
- Verify the change by navigating to a folder with files. For example, go to Documents or Desktop and look at any file. If the extension is visible, the setting is on; if not, it's off.
- Repeat these steps any time you want to toggle the setting. The change takes effect immediately—no restart or sign-out is needed.
Common Mistakes
- Confusing this with hidden files: Hiding file extensions is not the same as hiding system or hidden files. This setting only affects whether .exe, .pdf, etc., appear after filenames. To manage hidden files, use the "Hidden items" checkbox in the same Show section.
- Looking in the wrong place: Some users expect this setting in Windows Settings or Control Panel. It is only available in File Explorer under the View tab. Do not search system-wide settings for "file extensions"—it won’t be there.
- Expecting per-folder control: The setting applies globally. Once turned on or off, it affects all folders. There is no built-in way to show extensions in one folder and hide them in another.
- Editing the registry unnecessarily: While registry tweaks can modify file display behavior, they are not needed here. The View tab option is reliable and safe. Avoid registry edits unless you’re troubleshooting a deeper issue.
Tips
- Keep extensions visible for security: Malware often disguises itself by using double extensions (e.g., "invoice.pdf.exe"). If extensions are hidden, it appears as "invoice.pdf", making it easier to be tricked. Showing extensions helps spot suspicious files.
- Use keyboard shortcuts: Press Win + E to open File Explorer quickly, then press Alt + H to focus the View tab. Use arrow keys and Enter to toggle the checkbox without a mouse.
- Combine with other View settings: While in the View tab, consider enabling "Hidden items" to see system files, or adjust icon size for better visibility. These settings work together for full control over file display.
- Check after updates: Rarely, Windows updates may reset view preferences. If extensions suddenly reappear or disappear, revisit the View tab to confirm the setting.
Troubleshooting
If the checkbox does not respond or the change does not take effect:
- Close and reopen File Explorer. Sometimes the interface lags. Click the File Explorer icon on the taskbar to ensure it fully reloads.
- Restart Windows Explorer via Task Manager. Press Ctrl + Shift + Esc, find "Windows Explorer" under Processes, right-click, and select "Restart". This refreshes the shell without rebooting.
- Check for third-party file managers. Tools like Explorer++ or custom shell replacements may override default behavior. Disable or uninstall them temporarily to test.
- Run System File Checker. Open Command Prompt as admin and run
sfc /scannow. This checks for corrupted system files that might affect File Explorer. - Test with a new user account. Create a temporary local account in Settings > Accounts > Family & other users. If the setting works there, the issue is profile-specific—backup and reset your main profile if needed.
- Ensure no group policies are enforced. In managed environments (schools, workplaces), administrators may lock view settings. Contact IT if the option is grayed out or missing.
Frequently Asked Questions
Why are some file extensions still hidden even when the setting is on?
Windows treats certain system file types (like shortcuts .lnk) as special. These may remain hidden regardless of the setting. This is normal and intentional for usability.
Can I hide extensions for specific file types only?
No. Windows does not support selectively hiding extensions by file type through built-in tools. The setting is all-or-nothing.
Does hiding file extensions affect file functionality?
No. Hiding or showing extensions only changes how filenames appear. It does not alter the file itself, its type, or how programs open it.
Is it safer to show file extensions?
Yes. Showing extensions helps identify malicious files disguised with fake names. For example, "photo.jpg.exe" appears as "photo.jpg" when hidden, increasing risk of accidental execution.
Why did my file extensions suddenly appear or disappear?
This usually happens after a Windows update, a profile sync, or someone else used your account. Check the View tab setting to confirm and adjust as needed.
Can I use Command Prompt or PowerShell to toggle this?
Not directly. There is no native command to toggle this setting. It is controlled by a registry value under HKEY_CURRENT_USER, but editing it manually is not recommended unless you’re scripting or troubleshooting.