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
How to show file extensions in Windows 11
The quickest route is in File Explorer itself, on the Windows 11 command bar:
- Open File Explorer (shortcut Windows + E).
- On the top bar, select View and then Show.
- 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:
- In File Explorer, select See more (the three dots) and then Options.
- Open the View tab.
- Clear Hide extensions for known file types and select Apply.

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
.exefalls 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
| Extension | What it is | Risk as an attachment |
|---|---|---|
| PDF document (bills, invoices, contracts) | Low, if it comes from a known sender | |
| .docx / .xlsx / .pptx | Word, Excel and PowerPoint | Low |
| .docm / .xlsm | Word or Excel with macros | High: macros run code |
| .csv | Plain-text spreadsheet (exports from business software) | Low |
| .xml | Data file, such as an electronic invoice | Low |
| .jpg / .png / .heic | Images (.heic comes from iPhones) | Low |
| .zip / .rar / .7z | Compressed archives | Medium: check what’s inside |
| .exe / .msi / .bat / .cmd / .ps1 | Programs and scripts | High: don’t open from email |
| .js / .vbs / .scr / .lnk / .html | Scripts, screen saver, shortcut, web page | High |
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:
- In File Explorer, right-click the file and choose Properties.
- On the General tab, select Unblock near the bottom.
- Select OK and open the file again.

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:
- Open Settings > Apps > Default apps.
- Under Set a default for a file type or link type, type the extension (for example,
.pdf). - Select the result and choose the app from the list.

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.