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
- Press Windows + E.
- Select View > Show.
- 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 presentation | What to look for |
|---|---|
| Double extension | In 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 override | Unicode 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 whitespace | A 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 icon | An 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.
Reader Comments 0
Sign in with email or Google to join the discussion.