Batch File Renamer

Regex rename tester

Paste some file names, write a pattern, and see what each one becomes. Names that would collide are flagged. Nothing leaves your browser.

BeforeAfter

Patterns to try

  • Remove copy markers like (1): find \s*\(\d+\)$, replace with nothing
  • Swap "Smith, John": find ^(\w+), (\w+), replace with $2 $1
  • Zero-pad episode numbers: find E(\d)\b, replace with E0$1
  • Move a date to the front: find ^(.*)_(\d{4}-\d{2}-\d{2})$, replace with $2 $1

Then rename the real files

Batch File Renamer Pro runs the same kind of pattern on your actual files, with the changed part highlighted in every name, clash checks, and Undo even after you quit. Patterns from this page work there too: $1, $2 for groups, lookarounds included.

Questions

Which regex flavour does this page use?

Your browser's. Batch File Renamer supports the same patterns, lookarounds included.

Are my file names uploaded?

No. Everything runs in this page.

Can I do this without regex?

Batch File Renamer Lite's Replace step supports * ? and # wildcards with $1-style captures, free.

Download Batch File Renamer

Download for macOS