Turn on file extensions in File Explorer settings

Windows 10 hides file extensions by default — the part after the dot that tells you whether something is a .txt, .jpg, or .exe file. To see them, open File Explorer, click the View tab at the top, then check the box next to File name extensions. That's it. From that moment on, every file will display its full name including the extension.

This setting applies to all folders you open in File Explorer going forward. You won't need to repeat it for each folder. If you close File Explorer and reopen it later, the extensions will still be visible.

Key Takeaways

  • File extensions are hidden by default in Windows 10, but you can reveal them through the View tab in File Explorer.
  • Once enabled, file extensions appear on all files across all folders without needing to change any other settings.
  • Showing extensions helps you spot suspicious files — a document that claims to be a .pdf but is actually a .exe is a common malware trick.
  • You can still rename files and remove the extension if you want, but Windows will warn you that changing it might make the file unusable.

Why you might want to see file extensions

File extensions tell you what a file actually is. A file named "Invoice" could be a Word document (.docx), a PDF (.pdf), or an image (.jpg) — you can't tell without the extension. When extensions are hidden, someone could rename a dangerous program to look like a harmless document, and you'd have no way to know.

Showing extensions is especially useful if you download files from the internet or receive them from people you don't know well. A file that looks like "Resume.pdf" but is actually "Resume.pdf.exe" becomes obvious when extensions are visible. That extra .exe is the giveaway that something is wrong.

What happens if you hide extensions again

If you want to go back to hiding extensions, the process is the same. Open File Explorer, click View, and uncheck File name extensions. All extensions will disappear from view immediately.

Hiding extensions doesn't delete them or change the files themselves — it just removes them from what you see on screen. The files still have their extensions; Windows is just not displaying them.

Renaming files when extensions are visible

Once extensions are showing, you can still rename files the same way you always have — right-click and select Rename. If you change the extension (for example, changing .txt to .jpg), Windows will ask you to confirm that you want to change the file type. Click Yes if you're sure, but know that changing the extension can make a file stop working if the new extension doesn't match what the file actually contains.

If you want to rename just the filename part and leave the extension alone, select only the text before the dot when you rename. The extension will stay the same.

File extensions for common file types

Here are the extensions you'll see most often:

File TypeExtension
Word document.docx
Excel spreadsheet.xlsx
PDF.pdf
Image (JPEG).jpg or .jpeg
Image (PNG).png
Text file.txt
Program or executable.exe
Compressed folder.zip
Video (MP4).mp4
Audio (MP3).mp3

Extensions that should raise a red flag

Some extensions are more dangerous than others. .exe files are programs that run code on your computer — never open one unless you're certain it came from a trusted source. .bat, .cmd, .com, and .scr files are also executable and can run commands on your system. .msi files are installers and should only come from software you intentionally downloaded.

If you receive a file with one of these extensions disguised as something harmless (like "Document.pdf.exe"), do not open it. The visible extension tells you it's a program, not a document.

Frequently Asked Questions

Will showing file extensions slow down my computer?

No. Showing extensions is just a display setting — it doesn't change how files are stored or how your computer runs. It only affects what you see in File Explorer.

Can I show extensions for only certain file types?

No. The View setting in File Explorer is all-or-nothing — when you turn it on, all file extensions appear. You can't hide extensions for some files and show them for others.

What if a file has two extensions, like .tar.gz?

That's normal. Some file formats use two extensions to describe what the file is and how it's compressed. When you see .tar.gz, the file is a compressed archive. Treat it like any other compressed file — extract it before opening what's inside.

Do I need to show extensions to stay safe online?

It helps. Showing extensions makes it harder for someone to trick you into opening a dangerous file by disguising it as something harmless. But safe computing also means not opening files from untrusted sources, keeping Windows updated, and using antivirus software.