How to Display Filename Extensions on Windows, Mac, and More

File extensions are those short suffixes at the end of a filename — .jpg, .pdf, .docx — that tell your operating system (and you) what kind of file you're dealing with. By default, most operating systems hide them to keep things looking clean. But for many users, especially those managing files regularly, seeing extensions is genuinely useful. Here's how to turn them on, why it matters, and what affects how that works across different setups.

Why Filename Extensions Get Hidden in the First Place

Operating systems like Windows and macOS decided long ago that most everyday users don't need to see .txt or .png appended to every file. The logic: icons already signal file type, and visible extensions create a small risk — accidentally renaming report.docx to report by deleting the extension while editing the name.

That said, hiding extensions has real downsides. You can't tell the difference between invoice.pdf and invoice.exe at a glance, which is a genuine security risk. Malware often disguises itself as harmless-looking files by exploiting this exact blind spot.

How to Show File Extensions on Windows 🖥️

Windows hides extensions by default, but the toggle is straightforward:

Windows 11

  1. Open File Explorer
  2. Click the View menu at the top
  3. Select ShowFile name extensions

Windows 10

  1. Open File Explorer
  2. Click the View tab in the ribbon
  3. Check the box labeled File name extensions

Windows 7 / 8

  1. Open File Explorer (called Windows Explorer in 7)
  2. Go to ToolsFolder OptionsView tab
  3. Uncheck Hide extensions for known file types
  4. Click Apply to Folders to apply globally

This setting is system-wide — once enabled, extensions appear on all files across all folders. It persists through restarts until you toggle it off again.

How to Show File Extensions on macOS 🍎

macOS handles this through Finder preferences:

macOS Ventura and later

  1. Open Finder
  2. Click Finder in the menu bar → Settings
  3. Select the Advanced tab
  4. Check Show all filename extensions

macOS Monterey and earlier

  1. Open Finder
  2. Go to FinderPreferences
  3. Click the Advanced tab
  4. Check Show all filename extensions

You can also reveal the extension for a single file: right-click it → Get Info → expand the Name & Extension section and uncheck Hide extension.

One nuance on macOS: even with global extensions enabled, some apps save files with the extension hidden at the app level. The Get Info panel is the reliable way to confirm what's actually there.

Showing Extensions in Specific Tools and Environments

Beyond the OS level, some environments handle extensions independently:

EnvironmentHow Extensions Behave
Windows File ExplorerControlled by the View toggle described above
macOS FinderControlled via Finder Settings → Advanced
VS Code / code editorsAlways show full filenames including extensions
Linux (Nautilus/Dolphin)Extensions visible by default; settings vary by file manager
Android / iOSFile managers vary — some show extensions, some don't
Google Drive (browser)Extensions generally hidden; visible when downloading
OneDrive / Dropbox (desktop sync)Follows OS-level extension settings

Linux deserves a brief note: most Linux file managers display extensions by default, though the behavior can differ between GNOME's Nautilus, KDE's Dolphin, and others. If extensions aren't showing, check the file manager's Preferences or View settings.

What Changes When You Show Extensions

Turning on extensions has a few practical effects worth knowing:

  • Renaming files becomes riskier — if you rename a file and accidentally delete the extension, the OS may no longer know how to open it. Windows will warn you; macOS typically will too.
  • Duplicate filenames become clearerphoto.jpg and photo.png look identical without extensions. With them visible, you immediately see they're different formats.
  • Security awareness improves — you can spot suspicious files like document.pdf.exe, which is an executable disguised as a PDF.
  • File management gets more precise — particularly useful when working with code, media files, or data exports where format matters.

The Variables That Affect Your Experience

How useful — or disruptive — showing extensions feels depends on a few factors:

Technical comfort level matters a lot. If you're not used to seeing extensions, the added text can initially feel cluttered. For developers, sysadmins, and power users, it quickly becomes second nature and genuinely speeds up file identification.

File types you work with make a difference. Someone dealing primarily with photos and documents may find extensions less critical. Someone working with data files (.csv, .json, .xml), scripts, or mixed media formats will find them essential.

Operating system version determines exactly where the toggle lives — the steps above vary by version, and future OS updates occasionally move these settings around.

Shared or managed devices introduce another layer. On a work computer managed by IT, these settings may be locked or reset by group policy. On a shared family computer, changing the setting affects every user account (on Windows, the setting is per-user; on macOS, similarly scoped to the individual account).

Cloud storage behavior adds complexity. Files stored in cloud platforms don't always follow local OS display settings when viewed through a browser. The extension behavior there is controlled by the cloud app, not your OS preference.

Whether showing extensions becomes a permanent toggle or something you turn on occasionally for specific tasks really comes down to your workflow, the types of files you handle most, and how comfortable you are with a slightly more technical file view.