Show file extensions like .pdf and .docx on your Mac
Quick answer
Open Finder, choose Finder, then Settings…, click Advanced and tick Show all filename extensions. Every file name shows its ending straight away.
Why it happens
Finder hides the end of most file names to keep them short, so report.pdf shows as just report. That makes it hard to tell a picture from a document with the same name. Ticking one box makes Finder show them all.
How to fix it
Click the Finder icon in the Dock so the word Finder appears next to the Apple menu at the top of the screen.
Choose Finder, then Settings…, click the Advanced tab and tick Show all filename extensions.
Finder›Settings…›Advanced›Show all filename extensions
Close the settings window and look at any folder. Names now end in .pdf, .docx, .jpg and so on.
Still not fixed?
Want to hide the ending on just one file instead? Untick Show all filename extensions first, because it overrides the per-file setting. Then select the file, press Command-I, open Name & Extension and tick Hide extension.
Finder›File›Get Info›Name & Extension
Getting a warning every time you change an ending? That's Finder checking you meant it. To stop it, untick Show warning before changing an extension in the same Advanced tab.
Finder›Settings…›Advanced›Show warning before changing an extension
Remember that changing the ending doesn't convert the file. Renaming photo.heic to photo.jpg won't make it a JPEG, so use Export in Preview for that.
If Finder forgets the checkbox every time you restart, contact Apple Support so they can look at your user account.
Terminal
Open Terminal (Applications › Utilities), paste this line and press Return.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true && killall FinderTo undo:
defaults delete NSGlobalDomain AppleShowAllExtensions && killall FinderPro details
Same as the checkbox; Finder restarts to apply.
Questions people ask
How do I see file types on a Mac?
Turn on Show all filename extensions in Finder, Settings…, Advanced. Every file then shows its ending, like .pdf or .docx.
How do I hide the extension on just one file?
Untick Show all filename extensions in Finder, Settings…, Advanced first. Then select the file, press Command-I, open Name & Extension and tick Hide extension.
Does changing a file extension convert the file?
No. It only changes the name. To really change the format, open the file and export it in the new format.
Related fixes
Glad it worked.
Sorry it didn't. Tell us what happened and we'll fix this page.
Do it in one click with PinSet.
Press ⌃ ⌥ Space and type “show file extensions”. PinSet opens Finder for you. One of 2,400+ checked Mac fixes. Works offline.
7 fixes free · Works offline · macOS 26 and 27