File Extension is that which identifies the file type. If you are a regular Windows user, then it is not at all a problem to identify the file type. For it is very important to see file extension to identify the type of file you are trying to open from a security point of view. So in this post, we will see how to hide or show File Extensions in Windows 10/8/7 and why you should show them.
Since file names allow you to use multiple full stops, the real name of a malware file could be realword.docx.exe. But because you have not set Windows to show file extensions, you would see only realword.docx. Thinking its a Word document, you could well end up clicking on it and infecting your computer. If you had, on the other hand, set your PC to show file extensions, you would see its full name – realword.docx.exe, which would help you to identify that it was actually an executable file and in all probability a malware file.
What are File Extensions & how are they useful
Different file types have different extensions. Audio files have .mp3, .wav, .wma, and more based on the program used to open that file. File extensions also help the operating system to identify the corresponding program to open that particular file. So, you should be able to see file extensions to be at the safer side, and we will let you know how to enable options to see file extensions in Windows.
As mentioned earlier, by default Windows does not show file extensions and they are hidden. But, you can toggle the option to see them.
Show File Extensions in Windows 10
There are five ways how you can go about accessing this setting:
- Through the File Explorer Options
- Through Windows Explorer Ribbon
- Using the Registry
- Using Command Prompt
- Using Group Policy Editor.
1] Through Folder or File Explorer Options
Open Control Panel > Appearance and Personalization. Now, click on Folder Options or File Explorer Option, as it is now called > View tab.
In this tab, under Advanced Settings, you will see the option Hide extensions for known file types. Uncheck this option and click on Apply and OK.
Windows 10 users may also search for File Explorer Options in Start search box and open this box.
Now, you can see file extensions for all files anywhere on your Windows system.
In Windows 10/8.1 Explorer, you can access File Explorer Options via Explorer.
Click View > Options > Change folder and search options.
Once here, you can do the needful as explained above.
In Windows 7, open Explorer, press Alt on your keyboard to make the Classic bar appear. Next, click on Tools > Folder Options. Now follow the steps mentioned above.
These are very simple steps to follow, and you do not need any third-party software to view file extensions. Windows provides us with everything which can be easily achieved, and the point lies in knowing and implementing them. This is the first way to see file extensions in Windows 7.
2] Via Windows File Explorer
Open Explorer and click on the View tab. Simply select the File name extensions checkbox, and you are all set.
3] Using the Registry Editor
Hit the WINKEY + R button combination to launch the Run utility, type in regedit and hit Enter. Once Registry Editor opens, navigate to the following key-
Look up for a DWORD entry labeled as HideFileExt.
Double click on the mentioned DWORD entry and set its value as 0. This will show up the hidden file extensions.
A value of 0 will hide the file extensions.
Exit the Registry Editor and then reboot your computer for the changes to take effect.
4] Use Windows Command Prompt
This fix can be used in both the scenarios mentioned above. Insert a bootable drive of Windows 10 installer.
Start by hitting the WINKEY + X combinations and select Command Prompt (Admin) to launch Command Prompt with Administrator Privileges.
Navigate to the root location of that bootable device inside the Command Prompt command line. Once you get there, type in the following to show the file extensions-
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
And then hit Enter.
You can also enter the following command to hide the file extensions,
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f
5] Using Group Policy Editor
You can also use the Group Policy Editor and change the setting here:
User Configuration > Preferences > Control Panel Settings > Folder Options.
Set “Show hidden files and folders” and uncheck “Hide extensions for known file types”.
Thus, you can set your Windows to show file extensions in Windows 10/8. If you have anything to add, please do share it with us through comments.