na.to.
📚 All keywords › 💻 Computer Basics › How to show file extensions and spot disguised files
KO EN
📄

How to show file extensions and spot disguised files

Show file extensions in File Explorer and Finder, why renaming an extension does not convert a file, and how to spot tricks like 'photo.jpg.exe'.

📚 Computer Basics · 24/49· ⏱ About 4min read ·Information updated 2026-11-03
📋 Key facts5
Windows 11
File Explorer > View > Show > File name extensions
Mac
Finder > Settings > Advanced > Show all filename extensions
Default
Both Windows and macOS hide some extensions
Disguise example
'contract.pdf.exe' looks like 'contract.pdf'
Extensions to watch
.exe .scr .bat .cmd .js .vbs .msi and others

An extension labels the file type

The letters after the final dot in a file name, such as .jpg, .pdf or .docx, are the file extension. The operating system uses it to decide which program opens the file. By default, however, both Windows and macOS hide the extensions of many files and show only the icon and name. That looks tidy, but it makes the real file type hard to check and makes disguised files easier to fall for, so showing extensions is recommended.

Showing them in Windows 11

Open File Explorer, select View in the menu at the top, then under Show tick File name extensions. In Windows 10, tick the File name extensions box on the View tab of File Explorer. Clearing 'Hide extensions for known file types' on the View tab of Folder Options has the same effect. Once changed, it applies to every folder.

Showing them on a Mac

With Finder in front, open Finder > Settings in the menu bar, go to the Advanced tab and tick Show all filename extensions. In versions before macOS Ventura the menu is called Finder > Preferences. To check just one file, select it, press Command+I to open the Get Info window and look at Name & Extension.

Double-extension disguises

When extensions are hidden, a program named 'contract.pdf.exe' appears as 'contract.pdf'. Attackers use this to dress up email attachments or files sent by messenger as documents or photos that run malware when opened. With extensions shown, you can see at once that the very end of the name is the real extension. Icons can be faked easily, so do not trust the icon alone.

Extensions to be especially careful with

Opening files with the following extensions can run a program or commands. If one arrives in an email or message you were not expecting, do not open it; check with the sender through another channel. They are often hidden inside compressed files such as .zip.

  • Windows programs: .exe .msi .scr .com
  • Scripts and commands: .bat .cmd .js .vbs .ps1
  • Shortcuts: .lnk (can launch another program)
  • Disk images: .iso .img (opening them reveals the files inside)
  • Mac apps and installers: .app .pkg .dmg

Renaming the extension does not change the format

Changing a file name from .png to .jpg does not convert the image to JPEG. Only the label changes, so the file may fail to open or open in the wrong program. That is why both Windows and macOS warn you when you try to change an extension. To change the format, use Save As or Export in an app such as Paint or Preview.

Changing which program opens a file

If a type of file opens in an app you do not want, change the associated program. In Windows 11, right-click the file, choose Open with > Choose another app, and you can set that app to always open the same type. You can also change it under Settings > Apps > Default apps. On a Mac, select the file, press Command+I to open Get Info, pick an app under Open with and click Change All.

When you meet an unfamiliar extension

Do not open a file with an extension you have never seen before searching for it. Websites that urge you to install an 'extension opener' sometimes bundle ads or malware. Common formats such as documents and photos open fine in apps built into the operating system, and for work files the surest way is to ask the sender which program made them. Menu names are based on Windows 11 and macOS Ventura or later (as of November 2026).

🔗 More in this category

🌍 Search the web for this

Each button runs this keyword on that search engine