Skip to content
TECHNOARTH Technology in practice.
Windows

How to show file extensions in Windows 11 (and why it protects you)

By default, Windows hides the end of file names (.pdf, .docx, .exe). Here’s how to show extensions, what the most common ones are for, how to change an extension safely and how this helps you spot fake files.

The extension is the end of a file name, after the dot: .pdf, .docx, .xlsx, .jpg, .exe. It tells Windows what type of file it is and which program to open it with. The problem: by default, Windows hides the most common extensions.

In this article
  1. How to show extensions
  2. Why it protects you
  3. Most common extensions
  4. Can I change the extension?
  5. FAQ

How to show extensions

Quick way: in File Explorer, click View › Show and check File name extensions.

Through Folder Options (also works in Windows 10):

  1. In File Explorer, click the three dots (…) › Options.
  2. On the View tab, uncheck Hide extensions for known file types.
  3. Click 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.

Why it protects you

Scammers send files with names like invoice.pdf.exe or bill.pdf.scr. With extensions hidden, Windows shows only invoice.pdf — it looks like a PDF, but it’s a program. With extensions visible, the .exe shows up and the scam becomes obvious.

Extensions that run code and deserve suspicion in attachments: .exe, .scr, .bat, .cmd, .js, .vbs, .msi, .lnk, .iso and .html (fake sign-in pages). See how to spot phishing.

Most common extensions

ExtensionTypeOpens with
.pdfPDF documentEdge, Adobe Acrobat Reader
.docx / .docWord documentWord, Google Docs
.xlsx / .xls / .csvSpreadsheetExcel, Google Sheets
.jpg / .png / .heicImagePhotos
.mp4 / .movVideoMedia Player
.zip / .rar / .7zCompressed fileFile Explorer, 7-Zip
.exe / .msiProgram / installerWindows itself (be careful)

Can I change the extension?

Changing the extension doesn’t convert the file. Renaming photo.heic to photo.jpg doesn’t transform the image; it simply stops opening. To convert, use the right program (for example, Save As in Word to create a PDF, or the Photos app to save in another format).

Changing it only makes sense to fix a wrong extension, such as a .csv file that was saved as .txt. Windows warns that the file might become unusable: only confirm if you’re sure.

FAQ

I don’t know which program to open a file with.

Check the extension and look it up in the table above. For PDFs that won’t open, see PDF won’t open. For ZIP files, see how to zip and unzip files.

How do I change which program opens each file type?

Settings › Apps › Default apps › type the extension (for example, .pdf) and choose the app.

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.