How to view a computer file extension
In Windows, you can view the file extension for a single file or all files, all the time. The method for viewing the file extension for a single file is the same in every version of Windows, but viewing all file extensions differs between versions. Select an option below and follow the instructions for viewing file extensions.
To change a file's extension, see: How to change a file extension.
To change the default program that is associated with a file extension, see: How to associate a file with a program in Windows.
Viewing the file extension of a single file
- Right-click the file.
- Select the Properties option.
- In the Properties window, similar to what is shown below, see the Type of file entry, which is the file type and extension. In the example below, the file is a txt file with a .txt file extension. In this case, the file opens with the TextPad program.
Always show file extensions of all files
Users who are more familiar with computer files and file extensions may want to view file extensions permanently to help with locating and browsing files. To do this, follow the steps below for your version of Windows.
Windows 10
- Open the Control Panel.
- In the Control Panel, type file in the Search Control Panel text field. Click File Explorer Options in the search results.
- In the File Explorer Options window, click the View tab.
- Uncheck the box for the Hide extensions for known file type option.
Windows 2000, XP, Vista, 7, and 8
- Open the Control Panel.
- Click Folder Options.
- Click View.
- Uncheck the box for the Hide extensions for known file type option.
- OR -
- Open My Computer.
- Click Tools and click Folder Options or click View and then Options depending on your version of Windows.
- In the Folder Options window, click the View tab.
- Uncheck the box for the Hide file extensions for known file types option.
MS-DOS and Windows command line
In MS-DOS, typing dir to list all files also displays the file extension of each file.
Windows 98 and Me
- Open My Computer.
- Click View.
- Click Folder Options.
- Uncheck the box for the Hide file extensions for known file types option.
Windows 95
- Open My Computer.
- Click View.
- Click Options.
- Uncheck the box for the Hide MS-DOS file extensions for files that are registered option, then click Apply and OK.