bulkrename
.com

How to Rename Multiple Files at Once on Windows, Mac and Linux

Updated

Renaming a hundred files one by one takes an afternoon. Every major operating system can rename many files in one step, and for everything the built-in tools cannot do there are command lines and browser tools. This overview shows the quickest method on each system and helps you pick the right one.

Before you start: decide on the new names

Bulk renaming works with patterns, so decide on the pattern first. Typical patterns are a common base name with a running number (invoice_001.pdf), the old name with something added (IMG_4821_lisbon.jpg), or a piece of text replaced in every name (draft becomes final-review). Two rules save trouble later:

  • Every new name must be unique. A pattern without a number or the old name gives all files the same name, and most tools then either stop or overwrite files.
  • Try the method on a few copies first. Most tools show a preview; use it.

Windows: File Explorer, PowerRename or PowerShell

  1. Open the folder in File Explorer and select the files (Ctrl+A for all, Ctrl+click for single files).
  2. Press F2, type the new base name, for example holiday, and press Enter.
  3. Explorer names the files holiday (1).jpg, holiday (2).jpg and so on and keeps every extension. Ctrl+Z undoes the rename.

For search and replace, regular expressions or custom numbering, install Microsoft PowerToys and use PowerRename from the right-click menu. In PowerShell, one line replaces text in every name:

PowerShell
Get-ChildItem -File -Filter '*draft*' | Rename-Item -NewName { $_.Name -replace 'draft', 'final' }

All three methods are explained step by step in the guide to bulk renaming files in Windows.

Mac: the Finder rename dialog

  1. Select the files in a Finder window.
  2. Control-click one of them and choose Rename.
  3. Choose Replace Text, Add Text or Format from the pop-up menu. Format replaces the names with your own text plus an index, a counter or the date.
  4. Check the example at the bottom of the dialog and click Rename. Command+Z undoes it.

Finder numbers files in the order they are sorted in the window, so sort the window first. Automator, Shortcuts and the Terminal cover the rest; see batch renaming files on Mac.

Linux: file manager, mv and rename

GNOME Files and KDE Dolphin both open a batch rename dialog when you select several files and press F2. On the command line, a loop with mv works in every shell and on every distribution:

bash
for f in *.jpeg; do
  mv -n -- "$f" "${f%.jpeg}.jpg"
done

The rename command is faster for large batches, but it is a different program on Debian and Ubuntu than on Fedora or Arch. The guide to renaming files in Linux explains both versions.

Any system: rename in the browser

If you work on a computer where you cannot install software, on a Chromebook, or simply want renamed copies without touching the originals, use the bulk file renamer on bulkrename.com. It runs in the browser and reads the files on your device without uploading them.

  1. Open bulkrename.com and click Select Files or Select Folder.
  2. Click Number Sequence, Name + Number or Add Suffix, or type a custom pattern such as invoice-2026_[num].
  3. Check the list and correct single names if needed.
  4. Click Download Renamed Files to save a ZIP with the renamed copies.

Which method should you use?

You want to …Quickest option
Give files one name with numbersWindows: F2 in File Explorer · Mac: Finder › Rename › Format
Replace a word in many namesPowerRename, Finder › Replace Text, Linux rename
Rename by rules or file datesPowerShell, a shell loop or a Python script
Repeat the same job every weekA script: PowerShell, batch file, shell or Python
Get renamed copies, originals untouchedbulkrename.com in the browser

Common mistakes when renaming many files

  • Hidden extensions. Windows and macOS hide extensions by default. Turn them on (File Explorer: View › Show › File name extensions; Finder: Settings › Advanced › Show all filename extensions) so you can see what you are changing.
  • Unexpected order. Numbering follows the current sort order of the window or the order in which a command lists the files. Sort by name or date before you start.
  • Numbers without leading zeros. file_10 sorts before file_2 in many programs. Use 001, 002 and so on. The guide to file naming conventions has more rules like this.
  • No way back. File managers can undo the last rename, scripts usually cannot. Run scripts on copies first or use their preview options, such as -WhatIf in PowerShell or -n for rename on Linux.