By default, file types are hidden in Windows 10. It can be a security risk as we could run an executable whose icon was set as a document type. Normally the viruses and other malware disguise their executables as documents or pictures. A user can, unknowingly, double-click and run the file expecting the file to open in its appropriate program. Instead, the executable could wreak havoc on the system. That’s why it is recommended to change the Windows setting to always show file extensions. In this article, we share five ways to show file extensions in Windows.

How to show file extensions in Windows 10

Although these methods will work in earlier versions of Windows like Windows 8.1, Windows 8, Windows 7 and even Windows XP, but since we have only tested these on Windows 10, that’s why we have specified the specific Operating System.

Using Folder Options

That’s it. Now you will see the file extensions for each filetype.

Using File Explorer

Windows 10 File Explorer ribbon interface makes it easier to instantly show or hide file extensions. Here are the steps to show/hide file extensions in Windows Explorer: Checking File Extensions will show the file extensions while unchecking it will hide the extensions.

Using Registry Editor

Usually, the changes will be immediate. If you don’t see the changes, you may want to restart File Explorer from the task manager or restart the computer altogether.

Using Command Line

Command line method can be used to quickly change the File extension settings for many computers at once. You can create a batch file with the following commands and run the batch file on any computer to change the settings immediately. To hide file extensions using command line, open command-prompt and run the following command: reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f To show file extensions, run the following command: reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f For your ease, you can download the batch files from below and run them according to your situation.   Hide File Extensions (108 bytes, 1,610 hits)   Show File Extensions (108 bytes, 1,483 hits)

Using Group Policy Editor

This method is limited for system administrators who want to implement the show or hide file extensions policy across their domain network. Which method do you prefer to show or hide file extensions on your computer? We have listed all the techniques used for almost all versions of Windows including Windows 10, Windows 8.1, Windows 7, Windows Vista and even Windows XP. These methods also work for Windows Server Operating Systems including Windows Server 2008, Windows Server 2012, Windows Server 2016 and Windows Server 2019. Also see:

3 Ways to Show/Hide Security Tab in Windows 104 Ways To Set Default Apps Properly in Windows 10How To Show Hidden And Protected Files And Folders In Windows 11/104 Ways To Change Network Type In Windows 10 (Public, Private, Or Domain)4 Ways To Hide And Show The Taskbar In Windows 11/10