Batch rename files by date and number, offline

Batch rename hundreds of files with 1FileTool's Rename by Pattern — combine {date}, {name} and {index} tokens, run once, and every file lands in order. Works offline.

Level: beginner4 minOffline: YesFreemac-arm, mac-intel, windows, linuxUpdated 2026-09-26App version 1.10.0

Your progress

Give a folder of camera-named files like IMG_4023.jpg clean, sortable names like 20260926_1.jpg in one run. 1FileTool's Rename by Pattern renames files in place using {name}, {index}, {date} and {ext} tokens — no uploads, no command line.

What you'll need

  • 1FileTool 1.10.0 or later on macOS (Apple Silicon or Intel), Windows, or Linux.
  • A folder of files to rename.

batch-rename-files.zip

Sample files · 1.4 MB

Download sample files
  • DSC_8062.jpg35.1 KB
  • DSC_8155.jpg35.0 KB
  • DSC_8248.jpg34.4 KB
  • DSC_8341.jpg34.4 KB
  • DSC_8434.jpg34.4 KB
  • DSC_8527.jpg34.3 KB
  • DSC_8620.jpg34.0 KB
  • DSC_8713.jpg35.3 KB
  • DSC_8806.jpg35.2 KB
  • DSC_8899.jpg35.3 KB
  • DSC_8992.jpg35.2 KB
  • DSC_9085.jpg35.0 KB
  • DSC_9178.jpg35.0 KB
  • IMG_4023.jpg35.2 KB
  • IMG_4092.jpg35.2 KB
  • IMG_4161.jpg34.1 KB
  • IMG_4230.jpg34.3 KB
  • IMG_4299.jpg34.3 KB
  • IMG_4368.jpg34.5 KB
  • IMG_4437.jpg34.5 KB
  • IMG_4506.jpg35.1 KB
  • IMG_4575.jpg35.2 KB
  • IMG_4644.jpg35.4 KB
  • IMG_4713.jpg35.3 KB
  • IMG_4782.jpg34.9 KB
  • IMG_4851.jpg35.1 KB
  • IMG_4920.jpg35.2 KB
  • PXL_20411.jpg35.1 KB
  • PXL_20822.jpg34.5 KB
  • PXL_21233.jpg34.3 KB
  • PXL_21644.jpg34.3 KB
  • PXL_22055.jpg34.4 KB
  • PXL_22466.jpg34.4 KB
  • PXL_22877.jpg35.0 KB
  • PXL_23288.jpg35.3 KB
  • PXL_23699.jpg35.2 KB
  • PXL_24110.jpg35.2 KB
  • PXL_24521.jpg35.0 KB
  • PXL_24932.jpg35.1 KB
  • PXL_25343.jpg35.1 KB

The ZIP holds 40 synthetic JPGs named the way cameras and phones name them (DSC_*.jpg, IMG_*.jpg, PXL_*.jpg). Extract it to a scratch folder and follow along.

Protect your originals first

Replace source is ON by default: the output overwrites the original file and no backup is kept. Before following along, open Settings › General and turn Replace source off, or pick a separate output folder.

This one matters here: Rename by Pattern renames files in place — there's no output copy to fall back on. When Replace source is on, a rename run can even revert itself and leave your files with their old names. Keep it off.

Steps

1. Open Rename by Pattern

Launch 1FileTool, click Files in the sidebar, and choose Rename by Pattern from the Rename group.

Files › Rename › Rename by Pattern

2. Drop in the files

Drag the 40 sample JPGs (or your own folder's contents) onto the drop zone.

The file list shows every queued file with its size

3. Write the pattern

In the Pattern field, type:

{date}_{index}

The field's hint lists the tokens: {name} (the original base name), {index} (position in the list), {date} (today's date as YYYYMMDD), and {ext} (the file extension). {date}_{index} yields names like 20260926_1.jpg.

Two details worth knowing:

  • The extension is kept automatically. Leave {ext} out and 1FileTool appends the original extension for you.
  • {index} counts from 1 with no padding — 1, 2, 3…. For zero-padded numbers like 001, use the Number Sequentially tool instead.

4. Check the order

{index} numbers files in the order they appear in the file list. Sort your folder the way you want it before dropping it in — oldest to newest, say, if you're stamping dates.

5. Run it

Click Run on 40 files. The result card reports the batch, and every file is renamed in place inside the folder it came from.

The result

The 40 sample files went from this:

IMG_4023.jpg  DSC_8062.jpg  PXL_20411.jpg  IMG_4092.jpg …

to this:

20260926_1.jpg  20260926_2.jpg  20260926_3.jpg  20260926_4.jpg …

One run renamed the whole set — each file counts individually against the free plan's 8 files per day, so this batch of five used five.

Want to preview before committing? Rename by Pattern has no live preview. For prefix/suffix renames, the separate Preview Rename tool shows the old name next to the new one before anything changes.

If it didn't work

  • Files kept their old names after "ready". Replace source was on — it can silently undo a rename. Turn it off and run again.
  • Wrong order. {index} follows the file list order, not the filesystem's. Drop the files already sorted.
  • A name collides. If the pattern produces two identical names in the same folder, the rename fails for the collision — include {index} or {name} to keep names unique.
  • On Linux, clicking the drop zone opens a folder picker. A known quirk — drag the files onto the window instead.

Try next

Try a prefix/suffix rename in the browser first — Preview Rename shows the old name next to the new one before anything changes:

Try it in your browser

This tool also runs in the browser. Try it here first, then do a whole folder at once in the app.

Try Preview Rename Online

Browser File Workflow

No files selected

Files stay in your browser tab. For filesystem automation, archive extraction, and zip workflows, use the desktop app.

Keep the next file job off the internet.

Every tool is in the free download. Upgrade once, when the daily limit starts getting in your way.

PrivateOfflinePay once

No account, no credit card. Pro includes a 7-day money-back guarantee.