How to show file extensions in Windows 11 to avoid viruses

Last update: November 1th 2026
  • Enabling the visibility of file extensions allows you to detect malicious files that disguise themselves with fake names.
  • In Windows 11, you can quickly configure it from the View menu in File Explorer or from the Developer Options panel.
  • It is essential to be wary of files with double extensions or executable formats (.exe, .bat) that claim to be images or documents.

Laptop with cybersecurity text on screen, highlighting the importance of digital security.

You've probably noticed that your files end with extensions like .pdf or .docx, but have you ever stopped to think that Windows hides this information by default? While it might seem like a minor technical detail, that little suffix is ​​the key to knowing exactly what you're dealing with and, more importantly, to avoiding digital traps that could render your computer unusable.

The problem is that by not displaying these extensions, the operating system leaves us somewhat vulnerable. This creates fertile ground for cybercriminals, who exploit this setting to disguise malicious programs as simple photos or text documents. Therefore, enabling the visibility of extensions is one of the most basic and effective security measures that every user should implement today.

What on earth is a file extension and why does it matter?

An anonymous hacker typing on a laptop in the dark, representing the threat of cybercriminals.

To put it simply, a file extension is the group of characters that comes right after the period in a file name. Its main function is to tell the system what type of data the file contains and, therefore, which program to use to open it. For example, if you see a .exe, you know it's an executable (a program), while a .docx is a Word document.

  How to check the support date of your Windows version

The real importance lies in security. If you have file extensions hidden, a malicious file might be called "vacation.jpg," but it could actually be "vacation.jpg.exe." Since Windows doesn't show you the end, you think it's an image, double-click it, and bam! You end up running a virus without realizing it. That's why seeing the full extension is the only way to detect these deceptions at a glance.

Step-by-step guide to enabling extensions in Windows 11

Laptop displaying a security padlock icon, symbolizing the protection of data and files.

Don't worry if you're not a computer expert, because there are several ways to do it. Here are the simplest and most direct:

Quick method from File Explorer

This is the most common and quickest way to do it. Just follow these steps:

  • Use the shortcut Windows + E to open the browser.
  • Go to the top and click on the tab called "Watch".
  • In the dropdown menu, look for the option "Show".
  • Finally, check the box File name extensions.

As soon as you click, you'll notice that all your files immediately reveal their true identity.

Alternative route through System Settings

If for some reason you don't see the top toolbar, you can try accessing it through the general settings:

  • Balance Windows + I to enter Settings.
  • In the left-hand menu, enter the section of "System".
  • Scroll down until you find the section designated "For programmers" and click.
  • Find the File Explorer category and turn on the switch. "Show file extensions".

Other versions of Windows and MacOS

Security analyst analyzing data and code on a laptop under red and blue ambient lights.

If you're still using Windows 10 or 8, the process is slightly different. You need to go to Control Panel , then to "Appearance and Personalization," then to "File browsing options," and within the "View" tab, uncheck the box that says "Hide extensions for known file types."

  Self-Replicating Viruses: From Creeper to Artificial Intelligence

For Mac users (Catalina and later), the process is very intuitive: open Finder , go to "Preferences", go to the "Advanced" tab and check the box "Show all file extensions".

Dangerous extensions you should pay attention to

Laptop screen with hexadecimal code and technical text, representing the internal structure of files and scripts.

Once you can see the file extensions, you should be a little wary. Certain formats are much more likely to carry malware than others. Be especially careful with executable files (.exe, .bat, .msi) , as these can install software on your PC without your knowledge.

You should also be vigilant with Office documents that support macros, such as .docm or .xlsm , as hackers use them to run malicious scripts. Other common formats that can be used as bait include compressed files (.zip, .rar) or even programming scripts like .js or .py . If you receive a file with an unusual extension like .crypz, .cypt, or .locked, it's very likely a ransomware attack , and you should contact an IT expert immediately.

Quick dictionary of common extensions

To help you find what you're looking for, here's a list of the most common formats, divided by their use:

  • Audio and Video: .mp3, .wav, .m4a (audio); .mp4, .mov, .avi, .wmv (video).
  • Images: .jpg, .jpeg, .png, .gif, .tiff, .psd.
  • Documents and Text: .pdf, .txt, .rtf, .docx, .xlsx, .pptx.
  • System and Programs: .exe, .dll, .sys, .msi, .ini.
  • Web and Databases: .html, .aspx, .mdb, .accdb, .csv.
  • Tablets: .zip, .rar, .cab, .iso.

Keeping these labels visible, along with up-to-date antivirus software and an up-to-date operating system, is the best defense against a simple oversight turning into a digital disaster. The key is not to blindly trust the filename and to always check the extension before running any suspicious download.