How to show file extensions on Windows 10

You can show extensions for known files when browsing with File Explorer, and here's how to do it on Windows 10.

File Explorer show extensions settings
File Explorer show extensions settings / Image: Mauro Huculak
  • To show file extensions on Windows 10, open File Explorer, click “View,” and check the “File name extensions” option. Or open “Folder Options” and clear the “Hide extensions for known file types” option.
  • Alternatively, you can enable this feature from the Settings app or by using Command Prompt or PowerShell.

UPDATED 11/13/24: On Windows 10, a file extension refers to the three or four letters after the period at the end of the filename, which indicates the format type (such as .txt, .docx, or .pdf).

While not strictly necessary for file functionality, extensions offer several benefits. For example, they provide a quick way to identify a file’s format, making selecting the right program to open it easier. In addition, they give you an easier way to modify compatible file types. For instance, you can change a .txt file to a .bat file for scripting purposes.

The only caveat is that File Explorer doesn’t show extensions by default since it adds unnecessary visual clutter, helps to prevent mistakes that can make the file inaccessible, and improves security. However, showing extensions can also make the experience of working files a little easier.

In this guide, I will teach you the steps to show extensions for files while using File Explorer on Windows 10.

Warning: If you use the Command Prompt methods, note that modifying the Registry can cause serious problems if not used properly. It’s assumed you know what you’re doing and created a full backup of your system before proceeding.

Show file extensions on Windows 10 from File Explorer

To show file extensions on Windows 10, use these steps:

  1. Open File Explorer on Windows 10.

  2. Click the View tab.

  3. Check the “File name extensions” option.

    Show file extensions on File Explorer

Enable extensions from Folder Options

You can also enable file extensions from the “Folder Options” settings using these steps:

  1. Open File Explorer.

  2. Click the View tab.

  3. Click the Options button.

  4. Click the View tab.

  5. Clear the “Hide extensions for known file types” option.

    Show extensions for known files on File Explorer

  6. Click the Apply button.

  7. Click the OK button.

Once you complete the steps, File Explorer will show the extensions for known file types.

Show file extensions on Windows 10 from Settings

To make file extensions visible from the Settings app, use these steps:

  1. Open Settings.

  2. Click on Update & security.

  3. Click on For developer.

  4. Click the File Explorer setting.

  5. Check the “Change settings to show file extensions” option.

    Change settings to show file extensions

  6. Click the Apply button.

After you complete the steps, the extensions for files will now show in File Explorer. 

If these settings are grayed out, you may have to change them from within the “Folder Options” page in File Explorer.

This guide focuses on Windows 10, but the ability to hide and show file extensions has been around for long time, which means that you can use the same steps to show extensions on Windows 8.1, Windows 7, and older versions.

Show file extensions on Windows 10 from Command Prompt

To show file extensions through the Command Prompt (or PowerShell), use these steps:

  1. Open Start.

  2. Search for Command Prompt or PowerShell, right-click the top result, and choose the Run as administrator option.

  3. Type the following command to show extensions for files and press Enter:

    reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f

    Command Prompt show file extensions

After you complete the steps, File Explorer will start displaying file extensions on Windows 11.

If you want to undo the changes, you can use the same instructions, but in step 3, run this reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 1 /f command.

Update November 13, 2024: This guide has been updated to ensure accuracy and reflect changes to the process.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 15 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 21 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].