Skip to content
OddsockLocal
Local
Source text

Formatting

2 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Drop the files in the order you want numbered.
  2. Edit the pattern. {n}, {name}, and {ext} are the tokens.
  3. Download renamed.zip.
  4. Check the names inside before you delete the originals.

What is Batch rename?

Renaming forty files by hand is how a sequence gets a gap and a duplicate. Batch rename applies one pattern and puts the results in renamed.zip. The pattern opens at {n}-{name}{ext}. {name} is the filename without its last extension. {ext} includes the dot. {n} is the position in the drop, starting at 1. note.md dropped first becomes 1-note.md.

Read more

The originals are not renamed on disk. You download a ZIP of copies under the new names. A pattern that produces two identical names is rejected. A pattern that climbs with .. or uses a backslash is rejected. The extension is the last suffix, so archive.tar.gz treats .gz as {ext} and archive.tar as {name}. If that is the wrong split, rename in two passes or fix the pattern.

Making a ZIP without renaming is the ZIP maker, pattern-free, output archive.zip.

Use cases

  • A photographer prefixes a drop with 1-, 2-, 3- before sending a ZIP.
  • A student turns scan.jpg files into numbered pages.
  • A developer flattens a list of logs with an index so dates in the names stay but order is obvious.
  • Someone removes a camera prefix by using a pattern that keeps {n} and {ext} only.
  • A publisher checks that two sources cannot collapse to the same output name.

note.md becomes 1-note.md

One file, note.md. Pattern {n}-{name}{ext}.

renamed.zip containing 1-note.md. The original note.md is untouched.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

No. You get a ZIP of copies. The files you dropped stay as they were.