Why you need to see file extensions

A file extension is the short code at the end of a filename — the .docx in "resume.docx" or the .jpg in "photo.jpg". By default, Windows and Mac hide these extensions, which means you might not know what type of file you're looking at. This matters because a file named "invoice" could actually be a Word document, a PDF, or a spreadsheet, and you won't know until you open it.

Showing extensions helps you spot problems: a file that looks like "document.pdf.exe" is actually an executable program disguised as a PDF, which is a common way malware spreads. It also prevents accidental mistakes, like saving a file as the wrong type or trying to open an image file in a text editor. Once you turn on extensions, you'll see them for every file on your computer.

Key Takeaways

  • File extensions are hidden by default on both Windows and Mac, but turning them on takes less than a minute.
  • Seeing extensions helps you spot suspicious files — like "document.pdf.exe" — that are actually programs pretending to be documents.
  • On Windows 11, go to View in File Explorer and check the box for "File name extensions".
  • On Mac, open Finder, go to View menu, and select "Show filename extensions".
  • Once enabled, extensions stay visible for all files until you turn them off again.

How to show extensions on Windows 11

Open File Explorer by pressing the Windows key and typing "File Explorer", then click the result. At the top of the window, click the View tab. In the toolbar that appears, look for a checkbox labeled "File name extensions" and click it. The checkbox will fill in, and from that moment on, every file will display its extension.

If you're using Windows 10, the steps are nearly identical: open File Explorer, click View at the top, then check the box for "File name extensions". The setting applies to all folders and files immediately.

How to show extensions on Mac

Open Finder by clicking the Finder icon in your dock (the blue and white face icon). In the menu bar at the top of your screen, click View. A dropdown menu will appear. Click "Show filename extensions" — you'll see a checkmark appear next to it. All files will now display their extensions in Finder.

If you want to hide extensions again later, follow the same steps and click "Show filename extensions" a second time to uncheck it. The setting applies to your entire Mac, not just one folder.

What common file extensions mean

Once you turn on extensions, you'll start seeing them everywhere. Here are the ones you'll encounter most often:

ExtensionFile TypeWhat It Is
.docxWord documentText document created in Microsoft Word
.pdfPDF documentFormatted document that looks the same on any device
.xlsxExcel spreadsheetSpreadsheet with rows, columns, and calculations
.jpg or .pngImage filePhoto or picture
.mp4 or .movVideo fileMovie or video clip
.exeExecutable programApplication or program that runs on Windows
.zipCompressed folderMultiple files bundled and compressed into one
.txtText filePlain text with no formatting

Red flags to watch for once extensions are visible

The main reason to show extensions is to spot files that don't match what they claim to be. A file named "invoice.pdf.exe" is actually a program, not a PDF — the real extension is .exe, and the .pdf is just part of the filename. Programs disguised this way are a common delivery method for malware.

Be suspicious of any file where the extension doesn't match what you expected. If someone emails you a "photo.jpg.exe" or a "resume.docx.exe", do not open it. Similarly, if you download a file and the extension is something you don't recognize, search for that extension online before opening it. Legitimate files from trusted sources will have extensions that match their purpose.

Changing a file's extension

Once extensions are visible, you can change them by right-clicking a file and selecting "Rename" (Windows) or clicking the filename once and pressing Enter (Mac). You can then edit the extension directly. For example, you could rename "photo.jpg" to "photo.png", though this doesn't actually convert the file — it just changes the label.

Changing extensions is useful for fixing mistakes (like a file saved as .txt that should be .csv), but it won't change what the file actually is. If you rename a Word document to have a .pdf extension, it's still a Word document inside — it just won't open properly in a PDF reader. Only use this when you understand what you're doing.

Frequently Asked Questions

Will showing extensions slow down my computer?

No. Showing or hiding extensions is just a display setting and has no effect on your computer's speed or performance. It only changes what you see on screen.

Can I show extensions for only certain files?

No. The setting applies to all files on your computer at once. Once you turn it on, every file will display its extension. You can turn it off the same way if you change your mind.

What if I accidentally change a file's extension?

Right-click the file, select Rename, and change the extension back to what it was. If you're not sure what the original extension was, you can often find it by right-clicking the file, selecting Properties (Windows) or Get Info (Mac), and looking at the file type listed there.

Do I need to show extensions to stay safe?

It's not required, but it helps. Showing extensions makes it easier to spot suspicious files before you open them. You can stay safe without it by being careful about what you download and never opening unexpected attachments, but extensions give you one more layer of visibility.

Will my files look different after I turn on extensions?

Only in how they appear in File Explorer or Finder — the actual files themselves don't change. You'll just see the extension code at the end of each filename. The files will still open the same way and work exactly as before.