← All tools

Batch Rename Files

Rename many files at once in your browser with find and replace, prefixes, cleanup, and numbering. Download a ZIP or rename in place.

This tool runs entirely in your browser. Your input is never uploaded.

What this tool does

Add a set of files, or a whole folder, and rename every one of them with a shared set of rules. The list updates live as you type, so you always see the final names before anything happens. Nothing is uploaded; the files are read and renamed on your device.

Simple template

You do not need to understand regular expressions for the common jobs. Pick Simple template, then choose a preset: Number only gives 1.jpg, 2.png, and so on while keeping each file's extension; Name + number gives photo_1.jpg; Number + name gives 1_photo.jpg; Keep original name leaves everything untouched. The number's start, step, and digit padding are set right below the presets.

For anything else, type your own template. {n} is the number and {name} is the original name, so {name}-{n} produces report-1.txt, report-2.txt. The extension is always preserved. The list order decides the numbering, so sort by name first if the sequence matters.

Advanced rules

The rule pipeline is still there for cases a template cannot express. Rules run in a fixed order, so the result is predictable:

  1. Find and replace — plain text or a regular expression, with optional case sensitivity. $1 and friends work in regex mode. Choose whether the pattern also touches the extension.
  2. Prefix and suffix — added to the name, before the extension.
  3. Letter case — keep, lowercase, UPPERCASE, or Title Case.
  4. Spaces and characters — turn spaces into hyphens or underscores, strip characters that are illegal on Windows and macOS, and collapse repeated separators.
  5. Extension — keep it, lowercase it, replace it with another, or remove it.
  6. Numbering — add a zero-padded counter before or after the name, with a configurable start, step, and separator. Put {n} in the prefix, suffix, or replacement to place the number exactly where you want it.

The order of the list decides the numbering. Sort by name or drag rows with the Up and Down buttons to fix the sequence.

Safety checks

Target names are validated before you apply them. Duplicates inside the same folder, path separators, invalid characters, names that end in a dot or space, and reserved Windows names such as CON or LPT1 are flagged in red. With auto-rename conflicts on, duplicate targets get a -1, -2 suffix instead of colliding.

Applying the rename

  • Download .zip packs every changed file under its new name. Folders you added keep their structure inside the archive, and the ZIP is stored without recompression, so large files are not compressed a second time.
  • Rename in place appears in Chromium-based browsers when you opened the folder with the folder picker. It calls the File System Access API to rename the originals directly, after you grant permission. No download is needed. In browsers without that API, use the ZIP instead.
  • Copy names puts the new file names on the clipboard, one per line, ready for a shell script.

The original files are never modified unless you use in-place rename and confirm the browser's permission prompt. Everything stays local.

Related tools

A growing collection of browser-only tools. Your data stays on your device whenever the browser can handle the task.