How to view a computer file extension

To view the file extension of a single file for all versions of Windows follow the steps below. If you want Windows to show the file extensions of every file on the computer by default skip to the show file extensions.

Viewing the file extension of a single file

  1. Right-click the file.
  2. Click Properties.
  3. In the Properties window, similar to what is shown below you should see the "Type of file:" this is the file type and extension. As can be seen in the example below this file is a TXT file with a .txt file extension and in this case opens with the Text Pad program.

Viewing file extension in Windows

Always show file extensions of all files

Users more familiar with computer files and file extensions may want to view all computer file extensions to help with locating and browsing files. To do this follow the steps below for your version of Windows.

Windows 10
Windows 2000, XP, Vista, 7, and 8
MS-DOS and Windows command line
Windows 98 and ME
Windows 95

Always showing file extensions in Windows 10

  1. Open the Control Panel
  2. In the Control Panel search in the top-right type file and in the returned results click File Explorer Options
  3. In the File Explorer Options click View
  4. Uncheck Hide extensions for known file type.

Always show file extensions in Windows 2000, XP, Vista, 7, and 8

  1. Open the Control Panel
  2. Click Folder Options
  3. Click View
  4. Uncheck Hide extensions for known file type.

or

  1. Open My Computer
  2. Click Tools and click Folder Options or click View and then Options depending on your version of Windows.
  3. In the Folder Options window click View tab
  4. Uncheck the box that says Hide file extensions for known file types.

Showing file extensions in MS-DOS

In MS-DOS when typing dir to list all files also lists any files with extensions.

Showing file extensions in Windows 98 and ME

  1. Open My Computer
  2. Click View
  3. Click Folder Options
  4. Uncheck the box that says Hide file extensions for known file types.

Showing file extensions in Windows 95

  1. In Windows 95 open My Computer
  2. Click View
  3. Click Options
  4. Uncheck the box that says "Hide MS-DOS file extensions for files that are registered" and then click on apply and ok.