Skip to content
TECHNOARTH IT for offices and small businesses.
Windows

How to show file extensions in Windows 11 (and spot fakes)

Windows hides the end of file names (.pdf, .xlsx, .exe), and that makes attachment scams easier. Learn how to show extensions on every office PC, recognize dangerous files, deal with blocked attachments in Outlook and choose the app that opens each type.

How to show file extensions in Windows 11 (and spot fakes)

The extension is the part after the last dot in a file name: .pdf, .docx, .xlsx, .zip, .exe. It tells Windows which program should open the file. By default, Windows hides extensions for known file types, so anyone who receives bills, invoices and spreadsheets by email loses the most useful clue for deciding whether it’s safe to click.

In this article
  1. How to show file extensions in Windows 11
    1. Through Folder Options (Windows 10 and 11)
    2. It applies per user, not to the whole PC
  2. Why this protects the office
  3. Extensions you’ll see every day
    1. Spreadsheets with macros (.xlsm and .docm)
  4. Blocked attachments in Outlook
  5. Choose the app that opens each extension
  6. Can I change a file’s extension?
    1. Which path to take
  7. On your phone
  8. Frequently asked questions

How to show file extensions in Windows 11

The quickest route is in File Explorer itself, on the Windows 11 command bar:

  1. Open File Explorer (shortcut Windows + E).
  2. On the top bar, select View and then Show.
  3. Select File name extensions. The change takes effect right away, without restarting.

Microsoft’s article Common file name extensions in Windows gives the same path and, for Windows 10, points to the check box in the Show/hide group on the View tab.

Through Folder Options (Windows 10 and 11)

If File Explorer’s bar looks different or you prefer the classic method:

  1. In File Explorer, select See more (the three dots) and then Options.
  2. Open the View tab.
  3. Clear Hide extensions for known file types and select Apply.
Folder Options on the View tab with Hide extensions for known file types unchecked and the Apply button highlighted
Uncheck Hide extensions (1) and click Apply (2): names now show .pdf, .exe, .zip — making a fake “invoice.pdf.exe” easy to spot.

It applies per user, not to the whole PC

The setting lives in the profile of whoever changed it: if reception and accounts share a PC with separate sign-ins, each person turns it on in their own account. Add the step to your new-machine setup checklist, alongside printers and network folders.

Why this protects the office

The most common email scam turns hidden extensions to its advantage. A file named invoice.pdf.exe appears as invoice.pdf when extensions are hidden. The icon can be faked too: a program can display the picture of a PDF or a spreadsheet. With extensions visible, the .exe at the end gives the trick away.

Other variations worth teaching the team:

  • Very long names with lots of spaces before the real extension, so the .exe falls outside the visible part of the window. Widen the Name column or use the Type column.
  • Shortcuts (.lnk): Windows never shows this extension, even with the option turned on. A shortcut called “Contract.pdf” can point to a command. Be wary of any file with the little shortcut arrow on its icon that arrives by email or inside a ZIP.
  • Compressed files (.zip, .rar, .7z, .iso) that hide the program one level down. Open the archive and check the extensions inside before running anything.
  • Attached .html pages that mimic the Microsoft 365 sign-in screen to steal passwords. A legitimate supplier sends a PDF or a link to its own portal, not a page asking you to type your password.

If someone on the team has already opened an attachment like this, disconnect the PC from the network (cable or Wi-Fi) and follow the ransomware response checklist. To train your eye on the emails themselves, see how to spot phishing.

Extensions you’ll see every day

ExtensionWhat it isRisk as an attachment
.pdfPDF document (bills, invoices, contracts)Low, if it comes from a known sender
.docx / .xlsx / .pptxWord, Excel and PowerPointLow
.docm / .xlsmWord or Excel with macrosHigh: macros run code
.csvPlain-text spreadsheet (exports from business software)Low
.xmlData file, such as an electronic invoiceLow
.jpg / .png / .heicImages (.heic comes from iPhones)Low
.zip / .rar / .7zCompressed archivesMedium: check what’s inside
.exe / .msi / .bat / .cmd / .ps1Programs and scriptsHigh: don’t open from email
.js / .vbs / .scr / .lnk / .htmlScripts, screen saver, shortcut, web pageHigh

Spreadsheets with macros (.xlsm and .docm)

Since Office’s security changes, macros in files downloaded from the internet or received by email are blocked, and Excel or Word shows a Security risk banner saying Microsoft has blocked macros from running because the source of the file is untrusted. That block is deliberate. If the spreadsheet comes from a supplier or accountant you know, and they confirmed sending it by phone or another channel, Microsoft’s article A potentially dangerous macro has been blocked explains how to unblock just that file:

  1. In File Explorer, right-click the file and choose Properties.
  2. On the General tab, select Unblock near the bottom.
  3. Select OK and open the file again.
Properties of an .xlsm file on the General tab with the Unblock box checked and highlighted
Only check Unblock (1) after confirming with the sender that the macro-enabled workbook is legitimate.

If the Unblock box doesn’t appear, the same article suggests other options, such as saving the file to OneDrive or adding the folder as a Trusted Location in the Excel or Word Trust Center. In businesses with managed Microsoft 365, the block may also come from a policy set by the administrator.

Blocked attachments in Outlook

Outlook stops many file types from being sent or received, such as .exe, .bat, .js, .msi, .vbs, .lnk and .mdb (Access database), according to the article Blocked attachments in Outlook. When a legitimate file really does need to reach someone, such as the installer for an accounting program, the cleanest of the options Microsoft suggests is to put the file in OneDrive or SharePoint and send the link.

The same article also mentions renaming the extension before sending. It works, but it teaches the team that renaming attachments is normal, and that’s exactly what a scammer will ask them to do. Prefer a shared link restricted to the people who need it. That also helps with data protection when the file contains customer or employee data, because you control who opens it and can revoke access later. If the link won’t open for the recipient, see OneDrive not syncing.

Choose the app that opens each extension

In offices it’s common for PDFs to open in the browser when the team needs Acrobat to sign them, or for a .csv exported from the business system to open in Notepad. To change that, as described in Change default apps in Windows:

  1. Open Settings > Apps > Default apps.
  2. Under Set a default for a file type or link type, type the extension (for example, .pdf).
  3. Select the result and choose the app from the list.
Windows 11 Settings at Apps › Default apps, with the .pdf extension set to Adobe Acrobat highlighted
Type the extension in the search box and click the result (1) to choose which program opens that file type for this user account.

Can I change a file’s extension?

You can, but changing the end of the name doesn’t convert the file, as Microsoft itself explains: only the name changes, and the content stays the same. Renaming photo.heic to photo.jpg or report.pdf to report.docx just stops the file from opening. To convert it properly, use the program that created it: File > Save As in Word or Excel, or File > Export where available.

Renaming makes sense to correct a mistake, for example a .csv file that some system saved as .txt. With extensions visible, select the file, press F2, change only the part after the dot and confirm the warning that the file might become unusable. If the file sits in a shared network folder, first make sure nobody has it open; permission details are in share a folder on the network in Windows 11.

Which path to take

  • You just want to see the file type: turn on File name extensions in File Explorer.
  • The file opens in the wrong program: change it in Default apps.
  • You need the file in another format: use Save As or Export, never a rename.
  • Attachment blocked in Outlook: send a OneDrive or SharePoint link.

On your phone

File apps on Android and iPhone usually show only the icon. If an attachment looks like a bill or an invoice, open it on the PC, where the extension is visible, or confirm with the sender.

Frequently asked questions

I turned the option on, but some files still have no extension. Why?

Shortcuts (.lnk) and a few special types never show their extension in Windows. Use the Type column in Details view to confirm what each file is.

Do I have to do this on every computer?

Yes, and for every user on every computer, because the setting is stored in the profile of whoever turned it on.

Share

About the author

TECHNOARTH Editorial Team

The TECHNOARTH newsroom: technology tutorials, guides, comparisons and news produced with AI assistance and checked against manufacturers’ official sources.

Reviewed by Arth Moraes — Arth Moraes is the editorial pen name of the person responsible for TECHNOARTH, who sets the agenda, reviews and approves every tutorial before publication and is accountable for corrections.