Always show file extensions — via Apple Support
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
- The easy way: in Finder choose Finder > Settings > Advanced and turn on Show all filename extensions.
- Or in Terminal run the command below.
Command
Run in Terminal (Applications › Utilities).
defaults write NSGlobalDomain AppleShowAllExtensions -bool true; killall FinderUndo
defaults delete NSGlobalDomain AppleShowAllExtensions; killall FinderThe 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
- Change Finder settings on Mac — by Apple Support
- Show extensions — by Yann Bertrand, macos-defaults.com
- 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.