Skip to content

How-ToOS

How to Show File Extensions and Hidden Files in Windows 11

Windows 11 hides file extensions and hidden items by default. How to show them from File Explorer's View menu, Folder Options, the Settings app or the command line.

By , Systems & Technical Editor

5 min read

How to Show File Extensions and Hidden Files in Windows 11

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.

Method 1: File Explorer's View menu (quickest)

This is the method Microsoft gives for Windows 11, and it only takes a couple of clicks.

  1. Open File Explorer from the taskbar.

  2. Select View on the command bar, then Show.

  3. Select File name extensions to show extensions.

  4. 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.

  1. In File Explorer, select See more on the command bar, then Options.

  2. Select the View tab.

  3. Under Advanced settings, clear Hide extensions for known file types to show extensions.

  4. Select Show hidden files, folders, and drives to show hidden items.

  5. 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.

  1. Open Settings (Windows key + I).

  2. 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.

  3. Expand File Explorer.

  4. 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.

  • attrib +h filename hides a file.

  • attrib -h filename unhides it.

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.

The bottom line

For most people, File Explorer's View > Show menu is all you need: tick File name extensions and Hidden items and you're done. Folder Options and the Settings app's File Explorer toggles do the same job and sit alongside other useful options, while Get-ChildItem -Force and attrib suit quick checks or hiding individual files. Just remember that renaming an extension doesn't convert a file, and leave system files alone.

Sources

  1. 01Microsoft Support: File Explorer in Windows (Show file name extensions, Show hidden files)
  2. 02Microsoft Support: Common file name extensions in Windows
  3. 03Microsoft Learn: Advanced Windows Settings
  4. 04Microsoft Learn: Get-ChildItem (PowerShell)
  5. 05Microsoft Learn: attrib command reference

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

The 10 Best Microsoft PowerToys Utilities in 2026

Best Picks

The 10 Best Microsoft PowerToys Utilities in 2026

PowerToys now has more than 30 utilities. The ten most useful for PC owners in 2026, from Workspaces, FancyZones and PowerRename to File Locksmith and Power Display.

Hannah Vance6 min