Batch file renamer
Recompute new file names in bulk with a numbering template, find-and-replace, regular expressions or case conversion — with a live preview that flags duplicates, collisions with existing files and illegal characters. File-name text only, no disk access.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Preview
Each line is original / new name / status (ok, unchanged, duplicate, existing, invalid or empty).
Enter file names to preview
File-name text only: no disk access, no EXIF timestamps, no pinyin conversion and no ZIP packaging. Copy the preview into a local script to run it.
What this tool does
- Number a batch of photos: turn IMG_001.jpg into 01-IMG_001.jpg or photo-001.jpg.
- Fix naming conventions in bulk: replace `_final`, `副本` or spaces with hyphens, or lower-case everything.
- Check for problems before renaming: duplicate targets, collisions with existing files and illegal characters are all flagged in the preview.
Example
Input
IMG_001.jpg IMG_002.jpg
Output
IMG_001.jpg IMG_001-1.jpg ok IMG_002.jpg IMG_002-2.jpg ok
The default numbering template is {name}-{n}, so IMG_001.jpg becomes IMG_001-1.jpg; the ok status means the row can be renamed safely.
Frequently asked questions
Does it actually rename files on my disk?
No. It only computes new names in the browser and shows a preview: no disk access and no file-system permission requests. Copy the result into a local script (or your favourite renaming tool) once you are happy with it.
What do the duplicate / existing / invalid statuses mean?
duplicate means two rows produce the same new name; existing means the new name collides with a file that is not being renamed; invalid means the new name contains characters such as \ / : * ? " < > |; empty means the result is blank; unchanged means the row did not change and ok means it can be renamed safely.
Which placeholders does the template support?
{n} is the number (padded to the zero-padding width), {nn} is the number padded to at least two digits, {name} is the original base name without the extension and {ext} is the extension without the dot. The template must contain {n} or {nn}, and when it contains {ext} the extension is no longer appended automatically.
Can it use pinyin or EXIF capture times?
No. Pinyin conversion needs a Chinese lexicon and EXIF capture time needs the binary contents of each photo; neither can be done as pure text calculation, so this tool works on a name list plus rules only.
How is the extension detected?
It is split at the last dot: archive.tar.gz has the base name archive.tar and the extension .gz. With "Keep the extension" enabled, replace, regex and case conversion only touch the base name; disable it to include the extension.
Keywords:batch renamefile renamerfile-rename