How to Show File Extensions in Windows 11 and 10 (and Spot Fake .pdf.exe Files)

Two files in an email are both called “Report”. One is a Word document, one is a PDF, and you cannot tell which is which because the part after the dot is missing. Windows hides it by default for file types it knows. To show file extensions in Windows 11, open File Explorer, click View, point to Show and tick File name extensions. It takes about three seconds and applies to every folder. This guide also covers Windows 10, the Options dialog, a registry one-liner, and a safety habit that matters more than the setting itself: spotting a fake invoice.pdf.exe.

Where to find the File name extensions option in Windows 11 and Windows 10
Show file extensions: the same option, two layouts

Show file extensions in Windows 11

  1. Press Win + E to open File Explorer.
  2. Click View in the toolbar at the top.
  3. Hover over Show at the bottom of the menu.
  4. Click File name extensions so a check mark appears.

Names now read report.docx and report.pdf everywhere, no restart needed. In the same menu, Hidden items shows hidden files. That is a separate setting and has nothing to do with extensions.

Four steps to show file extensions in Windows 11 File Explorer
Windows 11: View, Show, File name extensions
광고

Windows 10, and the Options dialog that works on both

On Windows 10 the same switch sits in the ribbon. Open the View tab and tick File name extensions in the Show/hide group.

The older route works on both versions. On Windows 11, click the three dots (See more) in the toolbar and choose Options. On Windows 10, click Options at the right end of the View tab. You can also type “File Explorer Options” in the Start menu. Then:

  1. Open the View tab and scroll the Advanced settings list.
  2. Clear Hide extensions for known file types.
  3. Click Apply, then OK.

The wording is backwards: the box says “Hide”, so you untick it to show extensions. In the View menu route you tick “File name extensions”. Same result, opposite check mark.

The command-line way for many PCs

The setting is one number in the registry: HideFileExt, where 0 shows extensions and 1 hides them. It lives under your own user key, so you do not need administrator rights. In Command Prompt:

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

Or in PowerShell:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name HideFileExt -Value 0

Open Explorer windows may not update on their own. Press F5 in each one, or reopen File Explorer.

Comparison of three methods to show file extensions in Windows
View menu, Folder Options and registry compared
광고

Why this setting is a security habit

When extensions are hidden, invoice.pdf.exe shows up as invoice.pdf. This trick has been used for years: the MITRE ATT&CK framework lists it as “double file extension” (T1036.007) and names showing extensions as the mitigation. Security vendors such as ESET describe the same .pdf.exe and .pdf.scr lures.

With extensions visible, you read the name from the right. Only the last extension counts.

File nameWhat it really isVerdict
report.pdfA PDFNormal
report.pdf.exeA program, dressed as a PDFDo not open
photo.jpg.scrA screen saver, which is a programDo not open
notes.txt.docxA Word document with an odd nameCheck the sender

Three more cues help: the icon does not match what the name claims, the file is tiny for a “document”, and it arrived inside a ZIP or RAR from someone you did not expect.

Hidden versus visible file extensions on a fake invoice.pdf.exe file
The same file with extensions hidden and shown

Renaming files without breaking them

Once extensions show, F2 lets you edit the whole name, dot included. Change only the part before the last dot. If you change the extension, Windows asks you to confirm. The file contents do not change, so a JPG renamed to .png is still a JPG. If you did it by mistake, press Ctrl + Z or rename it back, and it usually opens again.

Extensions still hidden? Check these in order

What you seeTry this
Box ticked, names unchangedPress F5, or close and reopen File Explorer.
Only .exe stays hiddenThat type may have a NeverShowExt value under HKEY_CLASSES_ROOT\exefile. Back up the registry before deleting it, and sign out afterwards.
Setting turns itself offA policy on a work or school PC. Ask your IT team.
No toggle in the menuYou are in an older layout. Use Options, View, Advanced settings instead.
Settings app shows a toggleNewer Windows 11 builds may offer it under System, Advanced, File Explorer. The label depends on the build, so the View menu is the safer route.

Heads-up: a few file types, such as DLL, show their extension even when the global setting hides it. Windows controls this per type with AlwaysShowExt and NeverShowExt values. Do not edit those unless you know why.

Checklist for safely working with file extensions in Windows
Checklist: file extensions in Windows

Frequently asked questions

Is it safe to show file extensions in Windows?

Yes. It only changes how File Explorer displays names. No file is touched. It is actually safer, because you can see that a file is a .docx and not an .exe.

Does renaming the extension convert the file?

No. Renaming photo.jpg to photo.png leaves the data as JPG, and many programs will refuse to open it. To really convert a file, use Save As or an export option in the program that made it. Microsoft says the same on its common file name extensions page.

Why are extensions still hidden after I ticked the box?

Refresh the folder with F5 or reopen File Explorer first. If one type stays hidden, such as .exe, that type may have a NeverShowExt value in the registry. On a work PC, a policy can also switch the setting back, so ask your IT team.

Is the setting per folder or for the whole PC?

For your Windows user account. Tick it once and it applies to every folder. Other user accounts on the same PC keep their own setting.

Do I need administrator rights?

No. The setting is stored under HKEY_CURRENT_USER, so a standard account can change it.

Does this work on Windows 10?

Yes, with a different layout. Open the View tab and tick File name extensions in the Show/hide group. Microsoft ended Windows 10 support on October 14, 2025, so the menu will not change again.

Sources: Last checked November 18, 2026, on Windows 11. Microsoft Support: Common file name extensions in Windows. MITRE ATT&CK: Double File Extension. ESET WeLiveSecurity: Threats lurking in PDF files. Registry details are cross-checked with How-To Geek and Winaero. Menu names can change with Windows updates.

광고

#FileExtensions  #Windows11  #Windows10  #FileExplorer  #HiddenFiles  #DoubleExtension  #PhishingSafety  #RenameFiles  #WindowsTips  #MetaTrend

Found this useful? Share it.