# How to show file extensions on a Mac

Canonical page: https://leversmac.com/show-file-extensions-mac

> Show the .pdf, .jpg and other extensions on every file in Finder, or on one file with Get Info, and why some files still hide theirs.

[Atta 🐬](https://x.com/attacomsian)

Maker of Levers

Updated November 17, 2026

Quick answer

In Finder, choose Finder › Settings, click **Advanced**, and select **Show all filename extensions**. Every file’s name then ends in its extension, such as .pdf or .jpg, even files set to hide theirs. For one file only, select it, press Command-I, and under Name & Extension deselect **Hide extension**.

[Levers](#levers) turns the same setting on or off with one click from the menu bar.

## How to show file extensions for every file

1. Click the Finder icon in the Dock.

2. Choose Finder › **Settings** in the menu bar.

3. Click **Advanced** at the top of the window.

4. Select **Show all filename extensions**. Deselect it to go back to hiding them.

On older versions of macOS, Finder › Settings is called Finder › Preferences. The checkbox is in the same place.

macOS hides most filename extensions, so a file called Report.pdf shows as Report. That looks tidy, but it hides what kind of file it is, and two files named Report can be a PDF and a Word document. There are two settings: one in Finder Settings for every file, and one in each file’s Get Info window. The first one wins when it’s on.

## Ways to show file extensions on a Mac

| Way                                | Where                          | Shows every file’s extension | No Terminal needed |
| ---------------------------------- | ------------------------------ | ---------------------------- | ------------------ |
| Show all filename extensions       | Finder › Settings › Advanced   | Yes                          | Yes                |
| Hide extension, deselected         | Get Info › Name & Extension    | One file at a time           | Yes                |
| The AppleShowAllExtensions command | Terminal, then Finder restarts | Yes                          | No                 |
| Levers                             | The menu bar                   | Yes                          | Yes                |

Yes Partly No

## How to show the extension of one file

If you only care about a few files, change them one by one and leave the rest as they are:

1. Select the file in Finder.
2. Choose File › Get Info, or press **Command-I**.
3. Open the **Name & Extension** section.
4. Deselect **Hide extension**. Select it again to hide the extension.

## Why do some files still hide their extension?

When **Show all filename extensions** is off, each file follows its own **Hide extension** checkbox, so some files show their extension and others don’t. When it’s on, every extension shows, even on files with Hide extension selected. To see them all, turn on the Finder setting; to see just one, deselect Hide extension in that file’s Get Info window.

## How to show file extensions with Terminal

The Finder checkbox is a setting called **AppleShowAllExtensions**. These two commands turn it on and restart Finder; the same first command with false in place of true turns it off.

```
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
killall Finder
```

## The warning when you change an extension

With extensions shown, it’s easier to change one by accident while renaming a file, so Finder asks first: “Are you sure you want to change the extension…?” If you rename files often and know what you’re doing, deselect **Show warning before changing an extension** in Finder › Settings › Advanced. Changing the extension doesn’t convert the file: a PDF renamed to .jpg is still a PDF, and may no longer open.

## Or switch it with one click in Levers

We make Levers.

Levers sits in your menu bar. Its Show File Extensions switch turns on the same setting as the Finder checkbox and restarts Finder, so every file shows its extension. Click it again and the setting goes back to what it was before.

- Every extension shown, without opening Finder Settings
- The setting you had before, back with the next click
- Next to Show Hidden Files, Path Bar and the other Finder switches

Good to know

- It’s the Finder setting, for every file. It doesn’t change a single file’s Hide extension checkbox.
- Finder restarts each time you flip it.
- Needs macOS 15 Sequoia or later.
- One payment, no subscription, with a 14-day refund.

[See all switches](https://leversmac.com/features/switches)

## Questions people ask

### How do I show file extensions on a Mac?

In Finder, choose Finder › Settings, click Advanced and select Show all filename extensions. Every file then shows its extension, such as .pdf or .docx.

### How do I show the extension of just one file?

Select the file, press Command-I, open Name & Extension and deselect Hide extension. This matters only while Show all filename extensions is off; when it’s on, every extension shows anyway.

### Why are file extensions hidden on my Mac?

macOS hides most of them to keep names short. Show all filename extensions, in Finder › Settings › Advanced, stays off until you turn it on.

### Does showing extensions change my files?

No. Only how Finder shows the names changes. The files, and their full names, stay as they are.

### Is there an app that shows file extensions on a Mac?

Yes. Levers has a Show File Extensions switch in your menu bar: one click shows every file’s extension in Finder, and the next puts the setting back as it was. It costs from $6.99, paid once.

## More guides

- [Show hidden files](https://leversmac.com/show-hidden-files-mac)
- [Path bar and status bar](https://leversmac.com/finder-path-bar-status-bar-mac)
- [Restart Finder](https://leversmac.com/restart-finder-mac)
- [Eject all disks](https://leversmac.com/eject-all-disks-mac)
- [All guides](https://leversmac.com/guides)
