User Agents

Web browsers and everyday web tech, explained

Windows 11: Show File Extensions Easily

· 5 min read · Extensions

In this article
  1. Why File Extensions Are Hidden by Default
  2. How to Show File Extensions in File Explorer
  3. How to Show Extensions for a Single File or Folder
  4. What Changes When Extensions Are Visible
  5. Common Problems and How to Avoid Them
  6. Alternatives: Using the Right-Click Menu and Power User Menu
  7. Security Implications: Why You Should Turn It On
  8. Frequently Asked Questions

To show file extensions in Windows 11 File Explorer, open any folder, click the View menu in the toolbar, then select Show and check File name extensions. This toggle applies to all folders immediately, and you can reverse it the same way.

Why File Extensions Are Hidden by Default

Windows has hidden file extensions since Windows 95, when Microsoft decided that most users didn't need to see the .txt, .jpg, or .exe suffix on every file. The reasoning was to reduce clutter and prevent accidental renaming of the extension, which could break a file. However, this default hides important information: a file named report.pdf could actually be report.pdf.exe – a malicious executable disguised as a PDF. Knowing how to show extensions is a basic security habit for anyone who downloads files from the internet.

How to Show File Extensions in File Explorer

There are two built-in methods, both equally effective. Choose whichever feels faster.

  1. Via the View menu (Windows 11 22H2 and later): Open File Explorer (Win+E). Click the View button near the top of the window. Hover over Show, then click File name extensions to check it. The change applies instantly to all folders.
  2. Via Folder Options (all Windows 11 versions): Open File Explorer. Click the three-dot (…) menu in the toolbar, then select Options. In the Folder Options dialog, go to the View tab. Scroll down the Advanced settings list, uncheck Hide extensions for known file types, and click Apply then OK.

Both methods toggle the setting globally – you don't need to repeat it per folder. The View menu method is quicker, but Folder Options also lets you adjust other visibility settings in the same place.

How to Show Extensions for a Single File or Folder

If you only need to see the extension of one file, you don't have to change the global setting. Right-click the file, select Properties, and look at the Type of file field – it shows the extension in parentheses, e.g., “Text Document (.txt)”. Alternatively, you can temporarily rename the file and look at the full name in the rename box, but be careful not to change the extension accidentally. For a single folder's view, you can't override the global setting per-folder – the toggle is system-wide.

What Changes When Extensions Are Visible

Once enabled, every file in File Explorer shows its full name, like budget.xlsx, photo.png, or setup.exe. This makes it easier to identify file types at a glance and to spot mismatches – for example, a file called invoice.pdf that is actually an executable. The setting also affects the file name when you rename files: you'll see the extension and can change it, but you should only do so if you know what you're doing. Changing an extension doesn't convert the file; it just tells Windows which program to open it with, and a wrong extension can make a file unopenable.

Common Problems and How to Avoid Them

The most common issue users run into is accidentally renaming the extension. For instance, if you rename notes.txt to notes (removing .txt), Windows will warn you that the file may become unusable. If you confirm, the file won't open in Notepad when double-clicked. To fix it, rename it back to notes.txt.

Another problem: some file types have multiple extensions, like .tar.gz – showing extensions helps you see both, but renaming only the last part can break the archive. Also, if you have “Hide extensions” enabled and you create a new text file, Windows names it New Text Document.txt but hides the .txt – once you show extensions, you'll see the full name. This can be confusing but is harmless.

If the View menu option is greyed out, you might be in a special folder (like Libraries) or have a group policy that disables it. In most cases, the Folder Options method still works.

Alternatives: Using the Right-Click Menu and Power User Menu

Some third-party tools and registry tweaks can add a toggle to the right-click context menu, but you don't need them. Windows 11's built-in toggle is sufficient. If you prefer keyboard shortcuts, you can press Alt + V to open the View menu, then P to open Show, then E to toggle extensions – but this only works if the menu is accessible via keyboard. A more reliable alternative is to use the Win + E shortcut to open File Explorer, then use the mouse. There's no dedicated keyboard shortcut to toggle extensions directly.

Security Implications: Why You Should Turn It On

Hiding extensions is a known social engineering vector. Attackers often name malicious files like photo.jpg.exe – if extensions are hidden, Windows only shows photo.jpg, and the user double-clicks it, running the executable. Showing extensions makes these tricks obvious. It's a simple, effective layer of protection, especially for less technical users. Even if you're careful, it's a good practice to enable it on any shared or family computer.

Frequently Asked Questions

Does showing file extensions affect file performance or system speed?

No. It only changes how file names are displayed. It has zero impact on file access speed, system performance, or battery life.

Can I show extensions only for certain file types?

No, the setting is global. You cannot show extensions for .exe files but hide them for .jpg. However, you can always view a file's type in the Properties dialog.

Will showing extensions break my files if I rename them?

Only if you change the extension itself. If you rename the base name (e.g., from report to final), the file remains fine. If you change the extension to something else, Windows may not know which app to use, and the file may not open correctly.

Why did Windows hide extensions in the first place?

Microsoft started hiding them in Windows 95 to make the interface cleaner and to prevent users from accidentally breaking file associations. It was a design choice that has persisted, but it also created security risks that security experts have criticized for years.

Is there a way to show extensions on a per-folder basis?

No, the setting is system-wide. However, you can use the “Apply to Folders” option in Folder Options, but that only applies view settings like sorting and column layout, not the extension visibility.

Does this setting apply to OneDrive or cloud-synced folders?

Yes, it applies to all folders in File Explorer, including OneDrive folders, because it's a system-wide display setting, not a per-folder property.