Skip to content

Always show file extensions — via Apple Support

Hidden settinglow riskmacOS 14 Sonoma and later

By default Finder hides many file extensions, so 'report.pdf' and 'report.pdf.app' can look the same. Showing every extension tells you exactly what kind of file you're about to open, which is useful for security too.

Relaunch the app it changes (Finder, Dock…) to see it

The easy way

  1. The easy way: in Finder choose Finder > Settings > Advanced and turn on Show all filename extensions.
  2. Or in Terminal run the command below.

Command

Run in Terminal (Applications › Utilities).

defaults write NSGlobalDomain AppleShowAllExtensions -bool true; killall Finder

Undo

defaults delete NSGlobalDomain AppleShowAllExtensions; killall Finder
The same Advanced pane has Show warning before changing an extension. Turn it off if renaming extensions is part of your routine, but the warning helps stop you from renaming files by mistake.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every macOS version, so keep the undo handy.

file extensionsfinderfile typesAppleShowAllExtensions

More in Finder