How to Mass Rename Files in macOS

Original Source:

Renaming a single file in macOS is straightforward, but when it comes to bulk renaming multiple files, whether it’s 10 or 100, you certainly don’t want to do it one by one. Hidden within macOS is a feature that allows you to do just that, and it’s quite simple.

mass rename files in macOSmass rename files in macOS

In this article, I’m going to demonstrate how this feature works and explore the extent of its capabilities in terms of bulk renaming files.

First, navigate to the folder containing all the files you wish to rename. If they are scattered across different locations, it’s best to consolidate them into one folder.

Select all the files (Command + A), right-click, and then choose “Rename.”

Selecting all files for renaming in macOSSelecting all files for renaming in macOS

This is where the real action begins.

If you want to disregard their current filenames and sequentially number them, for example: image-1.png, image-2.png, image-3.png, etc., adjust the following settings:

Custom Format: image-
Start Numbers At: 1

Sequential mass renaming settingsSequential mass renaming settings

Here’s the results:

Result of sequential mass renamingResult of sequential mass renaming

If you wish to retain the existing filename but add the text “(done)” in front of all the files, do the following:

Under the “Format” dropdown, change it to “Add Text.“
With “Add Text” and “Before Name” selected, type in “(done).”
Click “Rename.”

Adding text before filenamesAdding text before filenames

Here’s what you’ll get:

Result of adding text before filenamesResult of adding text before filenames

This feature also allows you to bulk find and replace certain text in all filenames. For instance, if we want to remove all instances of “copy” from the filenames, here’s what we do:

Select “Replace Text” from the dropdown.
In “Find,” insert “copy“
In “Replace with” leave it blank.

Find and replace text in filenamesFind and replace text in filenames

And voilà, all instances of “copy” in the filenames are removed.

Result of find and replace in filenamesResult of find and replace in filenames

One important note: before you confirm the mass renaming of your files, take a look at the “Example” that shows you how the output will look. However, even if you make a mistake and realize it after the mass renaming, you can still hit Command + Z to mass undo all changes.

Preview of mass renaming resultPreview of mass renaming result

The post How to Mass Rename Files in macOS appeared first on Hongkiat.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *