Advertisement

How to Show File Extensions in Windows 11

Today, we will review a number of methods to show file extensions in Windows 11. By default, Windows 11 hides all file extensions.

Advertisement

File extensions are two, three or sometimes more letters (can also include numbers) after a file's name and a dot. Take, for example, a text file called Document.txt. "Document" is its name, and ".txt" is a file extension for regular plain text documents.

Hiding file extensions in Windows 11 prevents unintentional breaking files by accidentally changing their extensions when you rename them. Also, it gives a slightly cleaner look to File Explorer. At the same time, hiding file extensions imposes some security risks, as someone may want to harm your system by sending a malicious file disguised as a Word document, image, video, or any other harmless object. Remember: Never open a file that appears to have a regular extension paired with exe, msi, or dll, For example, NotVirus.jpg.exe.

Windows 10 had the "Show file extensions" command on the ribbon in File Explorer. That option could be used for enabling or hiding extensions with just two clicks. In Windows 11, though, File Explorer went through radical design changes. The ribbon has gone, and it took away many convenient options that now are buried deep inside different Windows settings and Control Panel applets.

Show File Extensions in Windows 11

  1. Open the Folder Options dialog by using Windows Search (Win + S); enter "file explorer options in the search box.Open File Explorer Opions From Search
  2. Switch to the View tab.
  3. In the "Advanced Settings" list, find the "Hide extensions for known file types" option and turn off (uncheck) it.Show File Extensions In Windows 11
  4. Click OK to apply the change.

Before:

Windows 11 File Extensions Not Visible

After:

Windows 11 File Extensions Enabled

Hide file extensions in Windows 11

If you want to hide file extensions in Windows 11 and restore defaults, repeat the process above and check the "Hide extensions for known file types" option.

Hide File Extensions In Windows 11

Now, if you open a folder in File Explorer, or refresh your Desktop, the files won't have extensions shown.

However, for specific files File Explorer always hides extensions. And for some of them, it makes them always visible, regardless of the user option reviewed above. For example, you may already noticed that the DLL file extension is always visible.

Show Only Specific File Extensions

The two next chapters will explain you why this happens.

Show only specific file extensions in Windows 11

The standard option to show or hide file extensions in Windows 11 does not allow specifying exclusions. You may want to hide all extensions but exe and msi. Here is how to enable certain file extensions in Windows 11.

To show only specific file extensions in Windows 11, do the following.

  1. Open the Registry Editor in Windows 11. You can use the Win + R shortcut with the regedit command, or any other method you like.
  2. Expand open HKEY_CLASSES_ROOT. here, find the extension you want to appear next to the file name, for example, .docx.
  3. Find the (Default) value and see its value data, also known as ProgID. In our case, it is Word.Document.12. Write it down or remember.Progid
  4. Now, go to the HKEY_CLASSES_ROOT\XXXX key, where XXXX is the ProgID from the previous step. For example, HKEY_CLASSES_ROOT\Word.Document.12.
  5. Click File > New > String Value. Rename the new value to AlwaysShowExt.AlwaysShowExt
  6. Sign out and sign back from your user account. You can also restart the computer to apply the change.

Hide specific file extensions in Windows 11

Similar to the previous section of this article, you can set Windows 11 to show all file extensions except one or several. Repeat all the steps except 5. Instead of AlwaysShowExt, create the NeverShowExt key.

Hide Specific File Extensions In Windows 11

After you restart File Explorer or the entire system, Windows will be showing all file extensions except those with the NeverShowExt keys in the registry with the file extensions enabled in File Explorer.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisment

Author: Taras Buria

Taras is here to cover stories about Microsoft and everything around, although sometimes he prefers Apple. You can stay in touch with him on Twitter.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.