Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to show file extensions in Windows 11 and Windows 10

Make file-name extensions visible, recognize misleading names and icons, and understand why an extension is a useful clue rather than proof that a file is safe.

Table of Contents

To show file extensions in Windows 11, open File Explorer and choose View > Show > File name extensions. Seeing the final extension helps distinguish a document such as report.pdf from a program named report.pdf.exe. It does not establish whether a file is safe.

Show extensions in File Explorer

Windows 11

  1. Press Windows + E.
  2. Select View > Show.
  3. Enable File name extensions.

Windows 10

Open File Explorer, select the View tab, and check File name extensions in the Show/hide section.

Alternative: Folder Options

Open File Explorer Options from Start search. On its View tab, clear Hide extensions for known file types, then select Apply and OK. Our Folder Options guide illustrates the checkbox.

Microsoft's File Explorer help explains the current Windows 11 menu. Showing extensions is separate from showing hidden files.

Optional command for the current user

If you prefer the command line, the Explorer preference can be set with this command:

reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v HideFileExt /t REG_DWORD /d 0 /f

It changes the current user's HideFileExt value, rather than a machine-wide setting. Refresh or reopen File Explorer and confirm the extensions are visible. Using the checkbox is simpler if you do not normally edit registry settings.

What to check before opening an unfamiliar file

Misleading presentationWhat to look for
Double extensionIn document.pdf.exe, the final extension is .exe. Do not run an unexpected program merely because “pdf” appears earlier in the name.
Right-to-left overrideUnicode text-direction characters can change how a name is displayed. A strange-looking name or a mismatch with the reported file type needs further checking.
Long names or whitespaceA narrow column may hide the end of a long name. Widen the Name column and inspect the file's Properties without opening it.
Familiar-looking iconAn icon is not proof of format or safety. Compare the visible extension and Type of file in Properties with the content you expected.

MITRE documents right-to-left override masquerading. An ordinary name like image.exe.jpg does not by itself demonstrate that technique; without a special text-direction character, its final extension is .jpg.

Verify the source of unexpected downloads or attachments, and keep security scanning enabled. Even a normal-looking document can contain harmful content. Our file types and extensions lesson explains common formats and safer inspection.

Finally, renaming an extension does not convert a file. Use the creating application's Save As or Export function when you need another format.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.