Batch Renaming: Prefix, Suffix and Numbering

Open Tool Batch Rename

Produce a list, then apply it

Browsers cannot rename files on disk, so the correct use is generating an old-to-new mapping you then apply locally. Fields cover prefix, suffix before the extension, replacing the original name with a sequence, starting number and zero padding, with sample prefix and suffix values. Controls generate the list, load a sample, clear, copy and download. The list also reveals collisions before anything is renamed, cheaper than rolling back afterwards.

Steps

  1. Paste the current filenames, one per line.
  2. Set a shared prefix such as a project code and underscore.
  3. Set a shared suffix placed before the extension, which is preserved.
  4. Enable sequence replacement with a starting number and padding width.
  5. Generate and review each new name for collisions.
  6. Download the list, back up originals, then apply it with a local script or file manager.

Ordering, padding, collisions

Padding decides whether sorting works, since two digits fail past the hundredth file where one hundred sorts before eleven. Starting numbers are usually one or zero, and continuing batches must join the previous range. Replacing names with numbers discards information, so photography files benefit from capture dates as prefix or suffix. Collision detection asks whether a new name already exists; two identical new names in one list mean the rule is ambiguous and needs wider padding or a unique field. Extensions must survive or the system cannot identify the file type.

Common mistakes

Too little padding and scrambled order. Sequence replacement wiping original information. Duplicate new names overwriting each other. Extensions renamed away until files will not open. Starting numbers breaking the previous range. And running without backups until errors cannot be undone.

Where a web page cannot act

Actual renaming needs local scripts or file manager batches. Content-based grouping needs info and hash tools. Huge rule-based jobs belong in a command line with rollback. And expecting one-click renaming in a browser will fail, since pages have no write access to disk.

⏫︎