Out of the box, File Explorer in Windows 11 shows you a file called setup rather than setup.exe, and it keeps hidden files and folders out of sight altogether. That keeps things tidy, but it gets in the way when you're sorting downloads, editing config files, tidying up after a game mod or trying to work out what a strange file actually is. This guide covers four ways to show both, from the two-click View menu option to the Settings app and the command line. It's based on Microsoft Support and Microsoft Learn documentation, checked on 28 November 2026.
Why show extensions at all?
Microsoft explains that Windows file names have two parts separated by a period: the name, and an extension that defines the file type. In its example, expenses.xlsx, the name is expenses and the extension is xlsx. The extension tells Windows which app can open the file and which icon to show.
Seeing extensions is useful for a few everyday reasons:
Spotting what a file really is. Microsoft's list of common extensions describes exe as an executable program file. If something that looks like a document or photo ends in .exe, it's a program, so don't open it unless you trust the source.
Telling similar files apart. A folder of downloads can contain an installer, an archive and a text file all with the same name.
Renaming correctly. With extensions hidden, renaming notes to notes.txt can leave you with a file that is really notes.txt.txt.
This is the method Microsoft gives for Windows 11, and it only takes a couple of clicks.
Open File Explorer from the taskbar.
Select View on the command bar, then Show.
Select File name extensions to show extensions.
Open View > Show again and select Hidden items to show hidden files and folders.
A tick appears next to each option when it's on. Repeat the same steps to turn either one off again.
Method 2: Folder Options
The classic Folder Options dialog is still there in Windows 11, and it's the place to go if you want to change several File Explorer settings at once.
In File Explorer, select See more on the command bar, then Options.
Select the View tab.
Under Advanced settings, clear Hide extensions for known file types to show extensions.
Select Show hidden files, folders, and drives to show hidden items.
Select OK.
These are the checkbox names Microsoft uses in its File Explorer guide. Microsoft's guide also shows how to use See more > Options > Open File Explorer to to make File Explorer open to This PC rather than Home, if you prefer the older layout.
Method 3: the Settings app
Windows 11 also has File Explorer toggles in Settings, aimed at developers and power users.
Open Settings (Windows key + I).
Go to System > Advanced. Microsoft notes that in Windows 11 version 25H2 and later, the former For developers settings now appear on the Advanced page, so on older versions look under System > For developers instead.
Expand File Explorer.
Turn on Show file extensions and Show hidden and system files.
Note the wording of the second toggle: it covers system files as well as ordinary hidden items. That's fine for browsing, but be careful not to move or delete system files you don't recognise. On the same page you'll find Show full path in title bar and Show empty drives, which are handy too. Microsoft says devices managed by an organisation may have these toggles disabled by policy, so on a work PC you may not be able to change them.
Method 4: the command line
If you only need to see hidden files in one folder, or you want to hide or unhide a specific file, the command line is quicker than changing File Explorer settings.
PowerShell
In PowerShell, Get-ChildItem lists the contents of a folder. Microsoft's documentation says the -Force parameter lets it get items that otherwise can't be accessed by the user, such as hidden or system files, and that it doesn't override security restrictions. To list only hidden items, add the -Hidden parameter:
Get-ChildItem -Force shows everything in the current folder, including hidden files.
Get-ChildItem -Hidden shows only the hidden items.
Command Prompt and attrib
The attrib command displays, sets or removes the attributes assigned to files or folders, including the Hidden attribute. Used without parameters, it lists the attributes of all files in the current directory.
Microsoft notes that if a file has the System or Hidden attribute set, you must clear that attribute before you can change any other attributes. Add /s to apply the command to matching files in subfolders, and /d to apply it to folders.
Changing an extension won't convert a file
Once extensions are visible, it's tempting to rename photo.png to photo.jpg. Microsoft is clear that you can change a file name extension, but that won't convert the file to another format or change anything else about it except its name. Use a proper converter or the app's Save As option instead. If you want a different app to open a file type, change the default app rather than the extension; see our guide to changing default apps in Windows 11.
If you come across an extension you don't recognise, Microsoft suggests searching for the extension name in the Microsoft Store to find a compatible app.
More File Explorer tips
With extensions and hidden files on show, File Explorer becomes far more useful for PC housekeeping. Our guide to File Explorer tabs in Windows 11 covers more time-saving tricks, Everything is a faster way to find files across your drives, and you can check a file's hash to confirm a download hasn't been tampered with. If File Explorer itself isn't enough, see our pick of the best free file managers for Windows.