Skip to Content
Sindre Sorhus
Back to Supercharge

Updated

How to Copy a List of File Names on Mac

By Sindre Sorhus, who makes the Supercharge app

With Supercharge

  1. Open the settings of Supercharge, click “Tweaks”, and click “Configure…” next to “Context menu items”.
  2. In the “Main Menu” tab, turn on “Copy Filename”.
  3. Select the files in Finder. To select all the files of a folder, press CommandA.
  4. Right-click the files, and choose “Copy Filenames”. For one file, the item is “Copy Filename”.
  5. 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.

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”.

Get Supercharge

Elevate your Mac experience

$20, one-time purchase, plus tax where applicable

Requires
macOS 27 or later
Updated
November 2026
Gumroad rating
5.0/5 (288 ratings)

More about Supercharge

Without an app

Finder copies the names of the files as text too:

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

In Terminal, go to the folder, and copy the names of all its items, one on each line:

Terminal
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.