Working with files

Multi Rename

Rename many files at once with a pattern, search and replace, a case change and a counter, check every new name first, and undo the batch.

Multi Rename renames a whole selection in one go. You build the new names from a pattern, a search and replace, a case change and a counter, all at once, and a preview shows every new name before anything changes on disk.

Multi Rename turning four screenshots into meetup-slide-01 to meetup-slide-04, with the new names in the preview before anything is renamed.
Multi Rename turning four screenshots into meetup-slide-01 to meetup-slide-04, with the new names in the preview before anything is renamed.

Open Multi Rename

  1. Select two or more items in a pane.
  2. Right-click one of them and choose Multi Rename…, or choose File ▸ Multi Rename….

You can also find Multi Rename… in the Command Palette (⇧⌘P).

The entry appears in the context menu only when two or more items are selected; for one item, use Rename. Multi Rename works wherever the location allows renaming, on this Mac and on remote places such as S3.

The window has numbered sections that all apply to every name, in order: 1 Rename pattern, 2 Search & replace and 3 Case (with the counter). Below them are the options and the preview.

Rename pattern

The pattern says what each new name is made of. It starts as {name}, which keeps the original name. Type text around the variables, or click a button to insert a variable where the cursor is:

  • Name, Extension, Range, Counter and Time.
  • Date opens a short list: Today — {date}, Date modified — {modifiedDate}, Date created — {createdDate} and Date modified as YYYYMMDD.
  • All Variables lists every variable with a description and an example taken from the first selected item. Click one to insert it.
VariableWhat it inserts
{name}The original name without its extension
{name:1-3}Characters 1 to 3 of the name; {name:4-} runs from character 4 to the end
{ext}The original extension
{filename}The full original name
{index}A running number (see Counter)
{index:3}A running number with 3 digits, such as 007
{date}Today's date
{time}The current time
{createdDate}The date the item was created
{modifiedDate}The date the item was last modified
{modifiedDate:YYYYMMDD}The modified date written as, for example, 20260412
{directory}The name of the folder the item is in
{workspace}The name of the active workspace

For example, with the screenshots Screenshot 1.png to Screenshot 4.png selected, the pattern meetup-slide-{index:2} gives meetup-slide-01.png to meetup-slide-04.png.

If the pattern contains a variable that does not exist or a range that makes no sense, a message under the field says what is wrong and the rename button stays disabled.

Search and replace

Section 2 Search & replace changes part of each name:

  • Search for: the text to find.
  • Replace with: what to put instead. Leave it empty to remove the text.

Options:

  • Match case: find the text only with the same capital and small letters.
  • First only: replace only the first place the text appears in each name.
  • Whole word: find the text only as a separate word.
  • Regular expression: treat Search for as a regular expression. In Replace with, $1 inserts the first group. Whole word is not available together with a regular expression.

Case and counter

Section 3 Case changes the letter case of the whole new name: Unchanged, lowercase, UPPERCASE, Title Case, Sentence case, camelCase, snake_case or kebab-case.

Counter

The counter numbers the items in the order they are listed. It is used only where the pattern contains a counter variable; if it does not, a hint reminds you to insert Counter into the pattern.

  • Start at: the first number.
  • Step by: how much each next number grows.
  • Digits: how many digits each number has, padded with zeros.

Options

Under the sections:

  • If a name exists: what to do when a new name is already taken by an item that is not being renamed.
    • Show error (default): the row is marked and nothing can be renamed until you fix it.
    • Skip: that item keeps its name; the others are renamed.
    • Replace: the existing item is moved to the Trash first. Vektor Commander asks you to confirm with Replace and Rename before it does this.
    • Append number: a number is added so the name is free. The preview shows the name that will really be used.
  • Preserve extension: keep each file's extension and change only the part before it. On by default.
  • Rename folders: include folders in the selection. When it is off, folders are shown in the preview but left unchanged. Folders never get an extension added.

Check the preview

The Preview table lists every item with its Original and Renamed name. Nothing is renamed until you press the rename button.

Rows with a problem are marked with a symbol and a reason, and a summary says how many items have which problem, for example "2 items have duplicate names". Problems include:

  • an empty name,
  • characters the location does not allow, or a name that is too long,
  • two items getting the same new name,
  • a name already taken in the folder (see If a name exists above).

The rename button stays disabled while a blocking problem remains. Items whose name does not change are shown as unchanged and are not counted.

Items that swap names among themselves (a becomes b while b becomes c) are handled safely: nothing is lost or overwritten.

Rename

The button says how many items will change, for example Rename 4 Items. Click it, or press Return.

Four screenshots are selected and Multi Rename opens; the pattern meetup-slide-{index:2} shows every new name in the preview, Rename renames them and the result lists each one.

A large batch shows Renaming… with a progress bar and a Cancel button. Items already renamed stay renamed when you cancel.

When it is done, the result lists every item with a tick or a cross. If some items failed, each one shows the reason and Retry Failed tries only those again. Click Done to close.

To start over while editing, click Reset: every section goes back to how it was when the window opened. If you close the window with changes, it asks Discard Changes? first.

Undo a Multi Rename

To put the names back after a rename, do one of the following:

  • Click Undo in the result, before you close it.
  • Choose Edit ▸ Undo Multi Rename later, while the file list has the keyboard.

Every renamed item gets its original name back, most recent batch first. If something has changed in the meantime (an item was moved or deleted, or another item now has the original name), that item is reported as not reversed, with the reason, and nothing else is overwritten.

Use Multi Rename in a custom action

Multi Rename can be a step in a custom action. In the action editor, add the Multi Rename step and click Configure…. The same window opens, titled Multi Rename — Action Step, with sample names in the preview, and a Save button.

For an action step there is one more option, Preview before renaming. When it is off, the action renames without opening the window. When it is on, or when no configuration is saved, the window opens when the action runs.

© 2026 Vektor Commander