Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Hide File Extensions: Windows & Mac Setting Explained

· 6 min read · Home Tech

In this article
  1. What the Setting Actually Does
  2. Why the Setting Exists
  3. How to Change the Setting on Windows
  4. How to Change the Setting on macOS
  5. Common Problems and Misconceptions
  6. Security Implications: Why Showing Extensions Is Safer
  7. How to Choose What’s Right for You
  8. Alternatives to Hiding/Showing Extensions
  9. Frequently Asked Questions

Hiding file extensions is a display setting in Windows and macOS that removes the trailing letters after the dot in a file name (like .txt or .jpg) from view in File Explorer and Finder. When enabled, you only see the base name (e.g., report instead of report.docx), while the file itself remains unchanged. This article explains exactly what the setting does, why it exists, how to turn it on or off, and the security and usability trade-offs you should know about.

What the Setting Actually Does

On Windows, the option is called "Hide extensions for known file types" and lives in File Explorer's Folder Options (also called File Explorer Options). On macOS, the equivalent is "Show all filename extensions" in Finder's Settings under the Advanced tab. The default behavior differs: Windows hides extensions by default for file types it recognizes, while macOS shows them by default (though older macOS versions hid them). When hidden, the operating system still uses the full name internally—the extension is not removed from the file, only from what you see. Renaming a file with extensions hidden can accidentally change the extension if you type a new one, because the hidden part remains.

Why the Setting Exists

The feature dates back to early graphical operating systems. Designers believed that showing extensions confused novice users—files like memo.doc looked cluttered, and the extension seemed like technical noise. Hiding them made icons and names cleaner. However, this convenience created a well-known security risk: a file named invoice.pdf.exe appears as invoice.pdf when extensions are hidden, tricking users into opening malware. Security experts have long recommended showing extensions to avoid this. The setting exists as a compromise between a cleaner interface and user safety.

How to Change the Setting on Windows

On Windows 10 and 11, the steps are:

  1. Open File Explorer (Win + E).
  2. Click the "View" menu in the ribbon (or the three-dot menu in Windows 11) and select "Options" (or "Folder and search options").
  3. In the Folder Options dialog, go to the "View" tab.
  4. Scroll down in the Advanced settings list.
  5. Uncheck "Hide extensions for known file types" to show extensions, or check it to hide them.
  6. Click "Apply to Folders" if you want the change to affect all folders, then OK.

This setting applies to all folders system-wide, not just the current one. You can also toggle it per-folder via the View tab's "Show file name extensions" checkbox in Windows 11's ribbon—a quicker way to see extensions temporarily.

How to Change the Setting on macOS

On macOS (Ventura and later):

  1. Open Finder.
  2. Press Cmd + , (comma) to open Finder Settings.
  3. Click the "Advanced" tab.
  4. Check or uncheck "Show all filename extensions."

If you uncheck it, extensions are hidden for all files. If you check it, all extensions appear, including those that were previously hidden. Unlike Windows, macOS does not have a per-folder toggle; the setting is global. You can also show or hide the extension of a single file by selecting it, pressing Cmd + I to get Info, and expanding "Name & Extension."

Common Problems and Misconceptions

One frequent issue: when extensions are hidden, renaming a file can inadvertently change its type. For example, renaming report.docx to final results in final.docx—fine. But if you type final.txt, you get final.txt.docx because the hidden extension remains. This often confuses users who see the file not opening as expected. Another misconception is that hiding extensions makes files safer or more private; it does not—it only changes the display. Also, some users think that deleting the extension (by renaming to remove the dot) makes the file unreadable; that is true, but only if you actually remove the characters after the dot. With extensions hidden, you cannot easily do that, which is a hidden safety net.

Security Implications: Why Showing Extensions Is Safer

The primary security argument for showing extensions is that it reveals the true file type. Malicious files often use double extensions like photo.jpg.exe or invoice.pdf.scr. When extensions are hidden, the file appears as photo.jpg or invoice.pdf, and a user may double-click it, launching malware. Showing extensions exposes the real type. While modern Windows and macOS display file type icons and may warn about executable files, the extension is still the most direct indicator. For this reason, many IT departments enforce showing extensions via Group Policy on Windows. On macOS, the risk is lower because executables are less common, but the same principle applies.

How to Choose What’s Right for You

If you are a casual user who rarely needs to know file types, hiding extensions can make your folders look cleaner. However, if you work with multiple file types, troubleshoot, or download files from the internet, showing extensions is strongly recommended. You can also adopt a middle ground: keep extensions hidden but rely on the file icon and the "Type" column in File Explorer or Finder to verify what a file is. For most users, the security benefit of showing extensions outweighs the aesthetic cost. A good rule of thumb: if you ever rename files, show extensions to avoid accidental type changes.

Alternatives to Hiding/Showing Extensions

Instead of hiding extensions, you can:

  • Use the "Type" column in File Explorer (right-click column headers) or Finder's "Kind" column to see file type without relying on the extension.
  • Enable "File name extensions" in Windows 11's View ribbon for a temporary toggle without changing the global setting.
  • On macOS, use the Info window (Cmd + I) to view and edit the extension for a single file.
  • Use file management tools like Total Commander or ForkLift that display extensions by default.

These alternatives give you the information without permanently altering the display for all files.

Frequently Asked Questions

Does hiding extensions affect the file itself?

No. The extension is part of the file name stored on disk. Hiding it only changes what you see in the interface. The file remains fully functional and can be opened by the associated program.

Why can't I see extensions even after I unchecked the box on Windows?

If you unchecked "Hide extensions for known file types" but still don't see extensions, check if the folder is using a custom view. Also, some file types (like .lnk shortcuts) always show their extension. Try pressing F5 to refresh, or restart File Explorer from Task Manager.

Can I hide extensions for only certain file types?

No, the setting is all-or-nothing. You cannot hide .txt but show .jpg. However, you can manually hide a single file's extension on macOS via Info, but that is not recommended as it may make the file unopenable.

Is it safe to delete an extension to make a file "extensionless"?

Deleting the extension (e.g., renaming file.txt to file) does not delete the file, but the operating system may no longer know how to open it. You can still open it manually by choosing an app. On Windows, you may need to confirm the change if extensions are shown.

Why does Windows still show extensions for some files even when hidden?

Windows always shows extensions for certain system files (like .exe, .com, .bat) for security reasons. This is hardcoded and cannot be changed. Also, files with unknown extensions (where no program is associated) may show their extension regardless.

Does showing extensions slow down my computer?

No. The setting only affects display, not performance. File Explorer or Finder reads the same directory data either way; the extension is simply rendered or not.