How to show or hide filename extensions on Mac

Learn how to show or hide file extensions in macOS in order to make the icons on your Mac easier to read or save some screen space and improve legibility.

Various file extensions on Mac

macOS hides file extensions by default. For example, PNG images are displayed without the .png extension, installed apps don’t show the .app extension append to their file name, and so on. This makes it easier to read the icons, uncluttering your view, but can lead to confusion. I prefer to see file extensions so the Finder can perform different operations depending on file type. Follow along as we show you how to show or hide file extensions for all files on your Mac or just specific ones.

Show or hide extensions for all files

  1. Open a new Finder window on your Mac.
  2. Click Finder > Settings or Preferences in the menu bar at the top of the screen.
  3. Select the Advanced tab.
  4. Toggle the box for Show all filename extensions to show or hide extensions for all files in the Finder.
Show all filename extensions in Finder on Mac

Important: Be careful when renaming a file to avoid accidentally removing or changing its extension.

Show or hide extension for one file

With the Show all filename extensions option turned on in the Finder settings, your Mac will show file extensions even with the Hide Extension box ticked in the file’s Get Info window. If you’d like to toggle extensions on a per-file basis, be sure to disable the Show all filename extensions option, then follow the steps below:

  1. Right-click a file in the Finder and choose Get Info from the menu.
  2. Toggle the Hide Extension box to show or hide the extension for this file.
Hide extension or show it for one file on Mac

Related tips: