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
- Open File Explorer
- Click the View menu at the top
- Select Show → File name extensions
Windows 10
- Open File Explorer
- Click the View tab in the ribbon
- Check the box labeled File name extensions
Windows 7 / 8
- Open File Explorer (called Windows Explorer in 7)
- Go to Tools → Folder Options → View tab
- Uncheck Hide extensions for known file types
- 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
- Open Finder
- Click Finder in the menu bar → Settings
- Select the Advanced tab
- Check Show all filename extensions
macOS Monterey and earlier
- Open Finder
- Go to Finder → Preferences
- Click the Advanced tab
- 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:
| Environment | How Extensions Behave |
|---|---|
| Windows File Explorer | Controlled by the View toggle described above |
| macOS Finder | Controlled via Finder Settings → Advanced |
| VS Code / code editors | Always show full filenames including extensions |
| Linux (Nautilus/Dolphin) | Extensions visible by default; settings vary by file manager |
| Android / iOS | File 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 clearer —
photo.jpgandphoto.pnglook 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.