How to show file extensions, view file extensions on Windows

Windows File Explorer offers a lot of options to change how you view files. What you might not know is that one important option is disabled by default, even though it's crucial to the security of your system.

File extensions are important

File extensions are three- or four-letter suffixes that appear after the final period of a file name, such as .txt, .exe, or .pdf. These extensions act as identifiers so that the operating system (and you) can instantly recognize what type of file they are.

Windows uses file extensions to determine which application to launch when you double-click a file. For example, an .exe file will launch an application, while a .docx file will open a Word file in Microsoft Word . Many programs save files with a specific file extension, which can then only be opened in that program (or a compatible third-party tool).

How to show file extensions, view file extensions on Windows
Executable file in Windows

One important advantage of being able to see file extensions is the ability to detect potentially dangerous files. Certain extensions such as .exe, .bat, .cmd, .vbs, and .scr (among others) can be malicious files designed to run malicious code on your system. These files often use file extensions used by legitimate Windows tools and programs, so detecting them can be quite difficult.

Despite their importance, file extensions are hidden by default in all modern versions of Windows. This is done to create a cleaner user interface in File Explorer. However, malware creators often use hidden extensions to disguise malicious executables as harmless-looking documents to trick users into running malware on their PCs, so it’s best to leave them visible.

Show file extensions on Windows

Luckily, showing file extensions on Windows only takes a few clicks. On Windows 11, just open File Explorer with the Windows key + E shortcut , click View in the top bar, hover over Show , and select File name extensions . You’ll see the file extensions for all the files saved on your computer.

How to show file extensions, view file extensions on Windows
File name extensions option in File Explorer

If you don't see the top bar in File Explorer, you can also show file extensions from Windows settings. Follow these steps:

  1. Press Windows key + I to open Windows Settings . Go to the System tab and select For developers .
  2. Expand the File Explorer section by clicking on it, then make sure the Show file extensions slider  is turned on.
How to show file extensions, view file extensions on Windows
How to show file extensions, view file extensions on Windows

Especially if you're using an older version of Windows, Control Panel is also useful for displaying file extensions:

  1. Open the Start menu and search for Control Panel . Click the corresponding option.
  2. Change Category to Small icons if needed, then select File Explorer options .
  3. In the View tab , make sure that the Hide extensions for known file types option  is unchecked.
How to show file extensions, view file extensions on Windows
How to show file extensions, view file extensions on Windows

You can also show file extensions by making a small change to the Windows Registry, but you should avoid doing this. The three methods above will work on any version of Windows you’re using in 2025 and are much less error-prone. However, if you want to quickly show file extensions, just run this command in Windows Terminal or PowerShell :

reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f

This command will add the necessary entries to the Windows Registry to tell File Explorer to start displaying file extensions. Remember to refresh File Explorer with the F5 key to see the changes.

How attackers exploit hidden file extensions

As mentioned, hackers often exploit hidden file extensions on Windows to disguise malicious files as harmless files. For example, a file named image.png.exe will appear as a PNG image file in File Explorer with a hidden file extension, when in fact it is an executable file that can run malicious code or malware when launched.

This technique is called a “double extension attack,” and it’s the most common type of file extension attack you’ll see. Fortunately, as long as the file extension is enabled, these malicious EXE files  are fairly easy to spot and avoid. However, this isn’t the only technique that tries to use hidden extensions to trick you. Some other common methods include:

Technique

For example

Describe

Right-to-Left Override (RTLO)

image[RTLO]gpj.exe appears as image.exe.jpg

The attacker used the Unicode character U+202E to reverse the file name.

Whitespace Padding

document.pdf[insert 100 spaces].exe

You can put more whitespace between the fake and real file extensions, so the real file extension will be pushed off the screen even if the file extension is displayed.

Icon Manipulation

The document.exe file with a PDF icon

This is a simple technique where criminals will change the malicious file's icon to a more familiar icon, such as a PDF or JPG icon.

PIF file

document.pif

The PIF file extension is automatically hidden by Windows, even if file extensions are enabled. However, PIF files are rarely used in modern versions of Windows.

As you can see, there are a number of tricks an attacker can use to trick you into running a malicious executable file that you might think is an image. However, by spending just a few seconds displaying file extensions on Windows, you can fall for this trick before you accidentally launch any malware on your PC.

File extensions help identify the type of file you're dealing with, but Microsoft's default practice of hiding them in File Explorer leaves an opening for malicious files to disguise as malicious. Don't fall for these tricks! Show file extensions and always double-check a file before opening it, especially if it's from the Internet or you didn't ask for it.

Tags: #System

Leave a Comment

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

Solving Windows 11 Something Went Wrong During Upgrade

Solving Windows 11 Something Went Wrong During Upgrade

Struggling with the frustrating "Something Went Wrong" error during Windows 11 upgrade? Discover proven, step-by-step fixes to get your system updated smoothly and securely. Say goodbye to upgrade headaches!

Troubleshooting Windows 11 Printer Error 709 After Update

Troubleshooting Windows 11 Printer Error 709 After Update

Struggling with Printer Error 709 on Windows 11 after a recent update? Discover proven troubleshooting steps to resolve this issue and get your printing back on track without frustration. Step-by-step guide for smooth fixes.

How to Use Windows 11 Accessibility Features 2026

How to Use Windows 11 Accessibility Features 2026

Discover how to harness the latest Windows 11 accessibility features in 2026 to make your computing experience inclusive, efficient, and empowering. Step-by-step guides for everyone.

Troubleshooting Java Development Kit (JDK) Install Failures

Troubleshooting Java Development Kit (JDK) Install Failures

Struggling with JDK install failures? Dive into this comprehensive troubleshooting guide to resolve common Java Development Kit issues on Windows, macOS, and Linux. Get back to coding without the hassle.

Troubleshooting Windows 11 Sticky Notes Database Error

Troubleshooting Windows 11 Sticky Notes Database Error

Struggling with the Windows 11 Sticky Notes database error? Discover proven troubleshooting steps to restore your notes quickly and effortlessly. Get back to productivity without the frustration.

How to Fix Windows 11 Rainmeter Skin Positioning Error

How to Fix Windows 11 Rainmeter Skin Positioning Error

Struggling with Rainmeter skin positioning errors on Windows 11? Discover proven fixes for misalignment, dragging issues, and DPI glitches. Step-by-step guide to restore your desktop perfection.

How to Use Windows 11 Virtual Desktops Correctly

How to Use Windows 11 Virtual Desktops Correctly

Discover how to use Windows 11 virtual desktops correctly to supercharge your workflow. Learn setup, management, and pro tips for seamless multitasking without the overwhelm.

Converting MBR to GPT Without Data Loss in Windows 11

Converting MBR to GPT Without Data Loss in Windows 11

Discover how to safely convert MBR to GPT without data loss in Windows 11. Follow our step-by-step guide using built-in tools and third-party software for a seamless upgrade to modern partitioning.

How to Fix 0x80072ee7 Store Connectivity Error

How to Fix 0x80072ee7 Store Connectivity Error

Struggling with the 0x80072ee7 Store connectivity error? Discover proven, step-by-step fixes to restore your Microsoft Store access quickly and easily. Say goodbye to frustrations!

How to Fix Background Change Error on Windows 11 Pro

How to Fix Background Change Error on Windows 11 Pro

Struggling with background change errors on Windows 11 Pro? This step-by-step guide helps gamers fix the issue fast, restoring your custom setups without hassle. Discover proven methods to personalize your desktop effortlessly.

How to Setup Windows 11 Dynamic Refresh Rate

How to Setup Windows 11 Dynamic Refresh Rate

Discover how to set up Windows 11 Dynamic Refresh Rate for buttery-smooth performance on compatible displays. Follow our step-by-step guide to optimize your PC

How to Fix Windows 11 Memory Leaks in Browsers

How to Fix Windows 11 Memory Leaks in Browsers

Struggling with slow browsers on Windows 11? Discover proven fixes for memory leaks in Chrome, Edge, Firefox, and more. Boost performance and end frustration today.

Solving Windows 11 Photos App File System Error

Solving Windows 11 Photos App File System Error

Struggling with the Windows 11 Photos App File System Error? Discover proven, step-by-step fixes to restore your photo viewing experience without hassle. Updated with the latest troubleshooting tips for seamless performance.

Troubleshooting Windows 11 OBS Studio Black Screen Fix

Troubleshooting Windows 11 OBS Studio Black Screen Fix

Struggling with OBS Studio black screen on Windows 11? Discover proven fixes for smooth streaming and recording. Step-by-step guide to resolve black screen issues quickly and easily.

Solving GPT Partition Style Not Supported on Old PCs

Solving GPT Partition Style Not Supported on Old PCs

Struggling with "GPT Partition Style Not Supported" error on your old PC? Discover proven solutions to convert partitions safely, upgrade your system, and get back to smooth computing without data loss. Perfect for legacy hardware users.