user@s3-3:~/s3-3/tools/how-to-automate-file-renaming-in-bulk $ cat index.md
S3-3 Tech Guides & Tools
~/tools/how-to-automate-file-renaming-in-bulk
How-to · Jun 2026

How to Rename Files in Bulk Without Doing It One by One

Batch renaming is one of those tasks that looks tedious when you face 200 files named IMG_4892.jpg through IMG_5091.jpg and want them named by date and subject. Done manually, it takes an hour. Done with the right tool, it takes two minutes. Both Windows and Mac have decent built-in options for simple cases, and free dedicated tools handle anything more complex.

Windows: File Explorer's Built-In Rename

For the simplest case — renaming a batch of files with a numbered sequence — Windows Explorer handles it without any additional software:

  1. Select all the files you want to rename (Ctrl+A to select all in a folder, or Ctrl+click individual files).
  2. Press F2 (or right-click one of the selected files and choose Rename).
  3. Type the base name you want (for example, "vacation-2026") and press Enter.
  4. Windows renames all selected files as "vacation-2026 (1).jpg", "vacation-2026 (2).jpg", and so on.

This covers the common case of standardizing a batch of photos or exports. The limitation is that you cannot control the numbering format (padded zeros, starting number) or apply more complex rules like adding a date prefix or stripping certain characters.

Windows: PowerRename (Free via PowerToys)

Microsoft's free PowerToys package includes PowerRename, a context-menu integration that adds powerful rename capabilities to File Explorer. After installing PowerToys (available free from the Microsoft Store or GitHub):

  1. Select the files you want to rename in Explorer.
  2. Right-click and choose "PowerRename" from the context menu.
  3. The PowerRename window appears with two fields: "Search" and "Replace."
  4. Type what you want to replace in Search, and what to replace it with in Replace.
  5. A preview pane shows the before-and-after for all selected files before you commit.
  6. Click Rename to apply.

PowerRename supports regular expressions (enable the "Use Regular Expressions" toggle) for advanced pattern matching. Practical examples:

  • Replace all spaces with hyphens: Search , Replace -
  • Remove a specific prefix: Search IMG_, Replace (empty)
  • Change extension from .JPG (uppercase) to .jpg: Search \.JPG$ (regex), Replace .jpg
  • Add a prefix to all files: Search ^ (regex, matches start), Replace project-alpha-
Always check the preview: PowerRename shows a live preview of every rename before applying. Review it before clicking Rename — a wrong regex can mangle all your filenames simultaneously.

Mac: Finder's Rename Feature

Mac Finder includes a rename feature for multiple selected files:

  1. Select multiple files in Finder.
  2. Right-click and choose "Rename [X] Items..."
  3. A dialog appears with three modes:
  • Replace Text: Find and replace text within all selected filenames.
  • Add Text: Add text to the beginning or end of all filenames.
  • Format: Rename all files with a base name plus a sequential number or date, replacing current names entirely.

Finder's rename feature covers most everyday cases: adding a project prefix, numbering a sequence, removing a common substring. For anything more complex, a dedicated tool is needed.

Cross-Platform: Bulk Rename Utility (Windows, Free)

Bulk Rename Utility (bulkrenameutility.co.uk) is a free Windows application that provides the most comprehensive batch rename options available without scripting:

  • Add, remove, or replace text anywhere in the filename
  • Insert sequential numbers with configurable padding, start value, and step
  • Insert file metadata: date taken, creation date, modification date, EXIF data from photos
  • Change case (all uppercase, all lowercase, title case, sentence case)
  • Strip or change file extensions
  • Apply multiple operations simultaneously, previewed before execution

The interface is dense with options, which looks intimidating at first. The key is that all changes preview in real time in the file list — you can see exactly what every filename will become before clicking Rename. Hover over any control for a tooltip explaining it.

A common use case: organizing a folder of downloaded photos named by camera (DSCF0001.jpg) into date-prefixed files. Use the "Date" section to insert the file's creation date, the numbering section for a sequence, and the Replace section to remove the original camera prefix. The preview shows each output filename before you commit.

Mac: A-Better-Finder-Rename (Trial) or Renamer

On Mac, Renamer (renamer.app, free trial) is the equivalent of Bulk Rename Utility — a dedicated batch rename app with a visual rule builder. You add rename rules as stacked steps: first strip a prefix, then add a date, then number the sequence. Each rule's effect is previewed cumulatively.

Command Line: When You Need Scripting

For very large batches or complex patterns, a short script can process thousands of files instantly. On Windows PowerShell:

Get-ChildItem *.jpg | Rename-Item -NewName { $_.Name -replace 'IMG_','photo-' }

This renames every .jpg file in the current folder by replacing "IMG_" with "photo-". On Mac/Linux, a similar result with bash:

for f in IMG_*.jpg; do mv "$f" "photo-${f#IMG_}"; done

Scripting is faster than any GUI tool for very large file counts, but requires comfort with the command line. For most users, PowerRename on Windows or Finder's rename on Mac covers 90% of practical needs.