How to Unhide File Extensions in Windows 11 and 10
In this article
File extensions (like .txt, .jpg, or .exe) are hidden by default in Windows 11 and Windows 10. When they're hidden, you can't tell a real PDF from a malicious .exe disguised as one, and renaming a file can accidentally change its type. Unhiding them shows the full filename, making file management safer and clearer. This guide walks you through the steps for both Windows 11 and Windows 10, plus common pitfalls and fixes.
What You'll Need
- Administrator access to the PC (usually your normal account works).
- No extra software — this is built into Windows.
Step-by-Step
The process is nearly identical on Windows 11 and Windows 10. The main difference is the look of the Settings app.
Method 1: Via File Explorer (Both Windows 11 and 10)
- Open File Explorer (press Win + E).
- Click the View button in the top toolbar (Windows 11) or the View tab in the ribbon (Windows 10).
- Hover over Show (Windows 11) or click Options on the right (Windows 10).
- In Windows 11: Click File name extensions to toggle it on. In Windows 10: Click Options → Change folder and search options.
- In the Folder Options dialog, go to the View tab.
- Scroll down in the Advanced settings list and uncheck the box next to Hide extensions for known file types.
- Click Apply then OK.
Method 2: Via Control Panel (Works on Both)
- Press Win + R, type
control foldersand press Enter. - Go to the View tab.
- Uncheck Hide extensions for known file types.
- Click Apply and OK.
Method 3: Windows 11 Quick Toggle (Optional)
- Open File Explorer.
- Click the View menu (top toolbar).
- Click Show and then File name extensions — this toggles it instantly for all folders.
After doing this, you'll see extensions like .docx or .png at the end of every file name. The change applies globally to all folders, not just the one you're in.
Common Mistakes
- Only toggling for one folder: Some users think they need to do it per folder, but the setting is global once you change it in Folder Options.
- Checking the wrong box: Make sure you uncheck Hide extensions for known file types, not Hide protected operating system files (that's a different, more advanced setting).
- Renaming a file and losing the extension: After unhiding, if you rename a file and delete the extension (e.g., change
report.docxtoreport), Windows will warn you. Don't ignore that warning unless you intend to change the file type. - Forgetting to click Apply: If you close the dialog with OK after changing the checkbox, it usually applies, but clicking Apply first is safer.
Tips
- Use the quick toggle in Windows 11: The View → Show → File name extensions toggle is faster than going through Folder Options.
- Show hidden files too: If you also want to see hidden files, in the same Folder Options View tab, check Show hidden files, folders, and drives.
- Know your extensions: Common safe ones:
.txt,.jpg,.png,.pdf,.docx,.xlsx. Be cautious with.exe,.bat,.vbs,.msi— these can run code. - Use the search bar: In Folder Options, you can press Tab then type "hide ext" to jump to the checkbox quickly.
Troubleshooting
Extensions still not showing after changing the setting?
- Make sure you clicked Apply and then OK. If you only closed the window, the change may not have saved.
- Restart File Explorer: Press Ctrl + Shift + Esc to open Task Manager, find Windows Explorer, right-click it and choose Restart.
- Check if you're looking at a shortcut (.lnk) or a file on a network drive — some network locations may have their own view settings.
The setting resets after a reboot or when opening a new folder?
- This can happen if you have a Group Policy setting enforced by your organization. If you're on a work PC, contact your IT admin.
- For personal PCs, make sure you're not in a special folder like "This PC" — the setting should be global, but some system folders (like Control Panel) may ignore it.
I see extensions but they look weird (e.g., .txt.exe)?
- That's normal — it means the file has a double extension, which is often a sign of a malicious file. Be very careful opening it.
Can't find the Folder Options dialog?
- In Windows 11, the classic Control Panel is hidden by default. Use the
control folderscommand as shown above, or search for "File Explorer Options" in the Start menu.
Frequently Asked Questions
Why does Windows hide file extensions by default?
Microsoft hides them to reduce clutter and prevent users from accidentally changing the extension when renaming. However, this also hides potential malware indicators, so many users prefer to show them.
Will unhiding extensions affect my files?
No, it only changes the display. Your files remain exactly the same. Just be careful not to delete the extension when renaming.
Can I unhide extensions for only one folder?
No, the setting is global. There's no per-folder option in Windows. However, you can toggle the quick setting on/off as needed, but it applies to all folders.
How do I hide extensions again?
Follow the same steps and re-check the Hide extensions for known file types box, or toggle off the File name extensions option in Windows 11.
What does "known file types" mean?
It refers to file types that Windows recognizes and has a default app for, like .txt or .jpg. Unknown extensions (like .xyz) are always shown, even when the box is checked.
Is it safe to show file extensions?
Yes, it's generally safer because you can spot suspicious files that pretend to be something else (e.g., a file named "invoice.pdf.exe" is actually an executable).