Question
Files & FormatsNov 18, 2026Why does Windows hide file extensions by default, and what’s the risk?
Details
What is hidden
File Explorer can “Hide extensions for known file types.” When that is on, familiar endings like .docx, .pdf, and .exe disappear from the name. The desktop looks tidier, but you lose a quick cue about the real file type.
Where the risk is
MITRE ATT&CK technique T1036.007 (Double File Extension) covers malware named like report.pdf.exe. If extensions are hidden, the user may only see report.pdf while actually launching an .exe. Icons can be spoofed too.
How to show them
In File Explorer, turn on showing file name extensions (menu labels vary by Windows version). Seeing the real .exe, .js, or .scr before you open a file beats trusting the icon alone. Preview untrusted attachments in a browser or scanner first.
Also Asked As
Windows hide extensions · show file extensions · pdf.exe trick · double file extension