# How to Copy a List of File Names on Mac

Updated: November 24, 2026

- [Supercharge](https://sindresorhus.com/supercharge.md): Elevate your Mac experience. Price: $20, one-time purchase, plus tax where applicable. Platforms: macOS. Get it from: [Gumroad](https://sindresorhus.gumroad.com/l/supercharge?wanted=true), [Setapp](https://go.setapp.com/stp181?refAppID=742&utm_medium=vendor_program&utm_content=button). Free trial: [download](https://sindresorhus.com/supercharge#trial). Requires macOS 27 or later. Size: 10 MB. Free older versions for macOS 26 and 15: [download](https://sindresorhus.com/supercharge#older-versions). Gumroad rating: 5.0/5 (288 ratings).

URL: https://sindresorhus.com/guides/copy-file-names-mac

Select the files in Finder, right-click, and choose “Copy Filenames” from [Supercharge](https://sindresorhus.com/supercharge.md). You get one name on each line, which you can paste in Numbers, Excel, or a document. [Without an app](https://sindresorhus.com/guides/copy-file-names-mac#without-an-app), copy the files in Finder, and paste them in a plain text document in TextEdit, which gives their names.

## With Supercharge

1. Open the settings of [Supercharge](https://sindresorhus.com/supercharge.md), click “Tweaks”, and click “Configure…” next to “Context menu items”.
1. In the “Main Menu” tab, turn on “Copy Filename”.
1. Select the files in Finder. To select all the files of a folder, press Command+A.
1. Right-click the files, and choose “Copy Filenames”. For one file, the item is “Copy Filename”.
1. Paste the names. In a spreadsheet, each name goes in its own row.

The names include the file extension, like `report.pdf`. To copy the full paths, use “Copy Path”. See [how to copy a file path](https://sindresorhus.com/guides/copy-file-path-mac.md).

The right-click items cannot show in synced folders, like iCloud Drive and Dropbox. There, select the files, right-click, and choose “Services › Copy Filename”.

## Without an app

Finder copies the names of the files as text too:

1. In Finder, select the files, and press Command+C.
1. In TextEdit, make a new document, and choose “Format › Make Plain Text”.
1. Press Command+V. The names show one on each line, and you can copy them from there.

In Terminal, [go to the folder](https://sindresorhus.com/guides/open-terminal-in-folder-mac.md), and copy the names of all its items, one on each line:

```console
cd ~/Documents/Invoices
ls | pbcopy
```

To copy only some files, use a pattern, like `ls *.pdf | pbcopy`. Supercharge copies the names in one step, without a document in between.
