index

Show File Extensions in Finder

Show filename extensions in Finder to help identify file types.

defaults write NSGlobalDomain AppleShowAllExtensions -bool true && killall Finder
Scope: current user
Compatibility and recovery
OS requirements
Apple documents the Finder setting for macOS Tahoe 26. The defaults command is untested on a recorded OS version.
Tested on
Not tested by this project on a recorded OS version.
Prerequisites
Record whether Show all filename extensions is selected. The Terminal command requests no administrator elevation and terminates Finder.
Effect
The Finder control shows extensions even when a file has Hide extension selected. The command writes a global user preference; Finder relaunch and application timing are unverified.
Undo or removal
In Finder > Settings > Advanced, restore Show all filename extensions. Turning it off restores each file's individual Hide extension behavior.

Documentation reviewed 2026-10-03. Source 1

Report outdated instructions · Opens a draft on GitHub for you to review and submit.

In Finder > Settings > Advanced, select Show all filename extensions. Check a file with a known extension, such as a .pdf. To undo, restore the checkbox to its original state. Turning it off lets each file’s Hide extension setting apply again.

Apple documents the checkbox. The AppleShowAllExtensions command is unverified here and terminates Finder. Changing extension visibility does not convert a file to another format.