# Batch Rename

Combine rules to rename files in bulk. Check old → new names live, catch duplicates and invalid names, then save renamed copies as a ZIP or into a folder. Files are never uploaded.

- URL: https://tools.itlibra.com/en/batch-rename
- On-device・No upload
- Last updated: 2026-11-27

## How to use

1. Drop files or use “Choose files” / “Choose folder” (or click “Try a sample”).
2. Add rules — find & replace, numbering, date, case, extension, clean-up, remove characters. They apply top to bottom; reorder them with the arrows.
3. Check “current → new name” in the preview. Changing the order (natural, modified time, size…) also changes the numbering.
4. If duplicates or invalid names appear, fix the rules or turn on automatic resolving.
5. Click “Download ZIP”, or in supported browsers “Save copies to a folder”. Save rule sets you reuse as presets.

## Use cases

- Turn camera names like “IMG\_0001.JPG” into “2024-05-01\_trip\_001.jpg”
- Remove full-width spaces and “final (1)” clutter from documents before sending them
- Pad sequence numbers so files sort correctly in Explorer and Finder
- Unify “.JPEG” and “.Jpg” extensions to “.jpg”
- Restart numbering at 001 in every folder

## What it does

### Eight rule types, freely stacked

Find & replace (regex with $1 groups), prefix/suffix, numbering (start, step, digits, position), dates, letter case, extensions, whitespace and full-width clean-up, and removing characters by count — in any order.

### Invalid names caught before saving

Windows reserved names (CON, NUL, COM1…), forbidden characters \\ / : \* ? " \< \> \|, trailing dots or spaces, names over 255 bytes and duplicates that differ only by case are flagged in the preview.

### Name photos by capture date

The date rule can use the file’s modified time or the photo’s EXIF capture time (DateTimeOriginal), read on your device only when needed.

### Natural sorting and numbering

Sort naturally (2 before 10), by modified time, size or the order added, then number. Numbering can restart in each folder.

### Presets for your rules

Save rule combinations by name in this browser. Only the rules are stored — never file names or contents.


## Supported formats

### Input

- Any file type (multiple files or a whole folder)

### Output

- ZIP of renamed copies (folder structure optional)
- Renamed copies written into a chosen folder (Chrome, Edge…)
- rename-log.csv with old and new names


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| Find & replace (regex, case-sensitive option) | Supported | — |
| Numbering, dates (modified / EXIF), prefix and suffix | Supported | — |
| Case, extension, whitespace and full-width clean-up | Supported | — |
| Detect and resolve duplicates, reserved names, invalid characters, length | Supported | — |
| Rule presets (stored in the browser) | Supported | — |
| Rename the original files on your computer in place | Not supported | A browser limitation — renamed copies are saved instead |
| Write copies into a chosen folder | Partial | Only in browsers with the File System Access API (Chrome, Edge…) |
| Save everything as a ZIP | Partial | Up to 2 GB in total |
| Drag & drop whole folders | Not supported | Use the “Choose folder” button |

## Limits & notes

- Up to 5,000 files at a time.
- ZIP output is limited to 2 GB in total; use “Save copies to a folder” for more.
- Browsers cannot rename your original files. The output is renamed copies; originals stay untouched.
- “Save copies to a folder” skips files whose name already exists — nothing is overwritten.
- If the preview takes longer than 2.5 seconds (for example with an extreme regular expression), it is stopped and saving is blocked until you simplify the rules.
- Phones and tablets can add files and rename them too, but building rules and comparing the list is more reliable on a PC.

## Privacy & safety

Reading files, renaming and zipping all happen inside your browser. Files and file names are never sent to a server. Presets store only the rules.

## FAQ

### Why aren’t my original files renamed?

Web browsers have no permission to rename existing files on your computer. This tool saves renamed copies as a ZIP or into a folder; delete the originals yourself if you no longer need them.

### Can it sort “IMG\_1, IMG\_10, IMG\_2” correctly?

Choose “Name (natural)” as the order: numbers are compared as numbers, so 1 → 2 → 10. Then set the numbering rule to 3 digits for names that sort correctly everywhere.

### How do I use regular expressions?

Turn on “Regular expression” in a find & replace rule. For example find ^IMG\_(\\d+)$ and replace with photo-$1 to turn “IMG\_0012” into “photo-0012”. Mistakes are shown under the rule.

### Which file names are invalid on Windows?

Reserved names such as CON, PRN, AUX, NUL, COM1–9 and LPT1–9, names containing \\ / : \* ? " \< \> \|, and names ending with a dot or space. The preview flags them, and automatic resolving replaces them with safe names.

### Where are presets stored?

Only in your browser (localStorage). Nothing is sent to a server, and only the rule settings are saved. Clearing browser data removes them.
