5 Ways To Show/Hide File Extensions In Windows 10

File name extensions in file explorer ribbonFile name extensions in file explorer ribbon

A file extension is the last part of the file name coming after the last dot (.). For example, if we have created a Microsoft Word file, its file extension will show up as .docx. File extensions help us to identify the file type associate a program with the file which can open it in a readable manner.

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

  1. Go to Run –> control folders

    control folders

  2. Go to View tab
    Folder Options View tab
  3. Un-check “Hide extensions of known file types”
    Hide extensions for known file types
    Hide extensions for known file types

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:

  1. Open File Explorer (Windows Key + E)
  2. Go to View Tab on the Ribbon menu
    View tab in file explorer
  3. Check “File Extensions” under Show/Hide section
    File name extensions in file explorer ribbon

Checking File Extensions will show the file extensions while unchecking it will hide the extensions.

Using Registry Editor

  1. Open Registry Editor by going to Run –> regedit

    Opening regedit

  2. Navigate to the following key:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
  3. Double-click HideFileExt from the right-hand pane. 
  4. Set the value to 0 to show File extensions of known files and 1 to hide File extensions.
    Show file extensions in Windows using Registry
    Show file extensions in Windows using Registry

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.

5 Ways To Show/Hide File Extensions In Windows 10 1  Hide File Extensions (108 bytes, 2,233 hits)

5 Ways To Show/Hide File Extensions In Windows 10 1  Show File Extensions (108 bytes, 1,994 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.

  1. Open Domain Group Policy Management Editor
  2. Go to User Configuration –> Preferences –> Control Panel items –> Folder Options
  3. Right-click Folder Options on the left-hand pane and select New –> Folder Options (Windows XP) or Folder Options (Atleast Windows Vista)
  4. This will open the regular Folder Options window. You can make changes to this window and the changes will be made across the domain or where the group policy is applied.
    Group Policy management folder options for domain
    Group Policy management folder options for domain

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.

If you liked this post, Share it on:
Usman Khurshid is a seasoned IT Pro with over 15 years of experience in the IT industry. He has experience in everything from IT support, helpdesk, sysadmin, network admin, and cloud computing. He is also certified in Microsoft Technologies (MCTS and MCSA) and also Cisco Certified Professional in Routing and Switching.

Get Updates in Your Inbox

Sign up for the regular updates and be the first to know about the latest tech information

Talk to us now

Talk to us straight and get your questions answered right away

Tell Us About Your Project