How to Show File Extensions in Windows, Mac, and Beyond

File extensions are the short suffixes at the end of a filename — the .pdf in report.pdf, the .jpg in photo.jpg, or the .exe in setup.exe. Most operating systems hide them by default to keep things looking clean for everyday users. But if you work with files regularly, manage a system, or just want to know what you're actually opening, making extensions visible is one of the most practical settings you can enable.

What File Extensions Actually Do

Every file on your computer has an extension that tells the operating system — and you — what type of file it is and which program should open it. Without seeing the extension, a file named invoice could be a Word document, a PDF, a spreadsheet, or an image. When extensions are hidden, distinguishing between them relies entirely on icons, which aren't always reliable and can be spoofed by malicious files.

Common file extensions by category:

CategoryExamples
Documents.pdf, .docx, .txt, .odt
Images.jpg, .png, .gif, .webp
Audio.mp3, .wav, .flac, .aac
Video.mp4, .mov, .mkv, .avi
Executables.exe, .msi, .dmg, .sh
Archives.zip, .rar, .tar.gz, .7z
Code/Data.html, .json, .csv, .xml

How to Show File Extensions on Windows

Windows hides extensions by default in File Explorer. There are a couple of ways to turn them back on.

Windows 11

  1. Open File Explorer
  2. Click View in the top menu
  3. Hover over Show
  4. Check File name extensions

Windows 10

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

Older Windows Versions (7/8)

  1. Open Control Panel → Folder Options (or File Explorer Options)
  2. Go to the View tab
  3. Uncheck the option that says Hide extensions for known file types
  4. Click Apply

This setting is global — it applies to all folders once changed.

How to Show File Extensions on macOS 🖥️

macOS also hides extensions by default, but gives you both a system-wide option and a per-file override.

System-wide setting

  1. Open Finder
  2. Go to Finder → Settings (or Preferences on older macOS)
  3. Click the Advanced tab
  4. Check Show all filename extensions

For a single file

Right-click the file → Get Info → uncheck Hide extension at the bottom of the Name & Extension section.

This per-file approach is useful when you want extensions visible for specific files without changing the global setting.

File Extensions on Linux

Linux-based systems typically don't rely on file extensions the way Windows does — the OS uses file metadata and MIME types to determine file behavior. That said, extensions are still displayed in most file managers by default. If you're using a GUI file manager like Nautilus (GNOME Files) or Thunar, extensions generally show unless the filename itself omits them.

In a terminal, filenames always display exactly as stored — extensions and all — with no hiding layer involved.

Why Showing Extensions Matters

Security is the most commonly cited reason. A file named vacation_photo.jpg.exe will display as vacation_photo.jpg if extensions are hidden — and that .exe could be malware. Seeing the full filename removes that ambiguity.

File management is another practical reason. Developers, designers, and anyone who handles multiple file types regularly needs to distinguish between a .png and a .svg, or a .csv and an .xlsx, especially when icons look similar or filenames are generic.

Renaming files correctly also depends on seeing extensions. If you rename a file without knowing its extension, it's easy to accidentally delete the suffix and break the file's association with its default application.

Variables That Affect Your Experience 🔍

How useful or disruptive showing extensions feels depends on several factors:

  • Your workflow — Casual users who open files from one or two apps may find hidden extensions cleaner. Power users, developers, and IT professionals almost universally prefer them visible.
  • Operating system — Windows, macOS, and Linux handle extension visibility differently at a system level, and the setting locations change with OS versions.
  • File manager vs. terminal — GUI file managers apply display settings; terminals always show raw filenames.
  • Third-party file managers — Apps like Directory Opus (Windows) or ForkLift (Mac) may have their own independent extension display settings separate from system defaults.
  • Shared environments — On shared or managed computers, folder options may be locked by a system administrator or group policy, limiting your ability to change the setting.

When Extensions Are Hidden for a Reason

Some software ecosystems intentionally abstract file extensions from users — cloud platforms like Google Drive, for instance, display document names without .gdoc or .gsheet extensions because those files don't behave like standard local files. Mobile operating systems (iOS and Android) similarly hide extensions almost entirely, routing file handling through apps rather than a traditional file system.

In those environments, the concept of "showing file extensions" either doesn't apply or works very differently than on a desktop OS.

Whether making extensions visible improves your experience depends heavily on which platform you're primarily working on, how you manage and share files, and how much control you want over what the OS reveals by default.