How to use
- Drop files, or press
Choose folder, to load the files you want to rename. Dropping a folder takes everything inside it, up to 5,000 files. - Pick
Sort by. Numbers are assigned in that order. - Stack rules with
Add a rule. Rules run from top to bottom, and you can switch them off or reorder them. - Check the new names and statuses in the preview table. Colliding names and regex errors are shown in red.
- Press
Build ZIP with new names, and optionally download theMapping CSV.
A browser cannot rename the originals
For security, a web page cannot rename or overwrite files on your computer. So this tool builds a ZIP that contains your files under their new names. Unpack it and tidy the originals yourself. The ZIP is stored without compression, which is fast, and your folder structure is kept. The mapping CSV has two columns, original and new, so you can check later what became what.
Rule types
| Rule | What it does |
|---|---|
| Find and replace | Plain text or regex ($1 groups work), with a match-case option. |
| Add prefix / suffix | Prefix goes before the name, suffix goes before the extension. |
| Add numbering | Set start, step and zero-padded width; place it before, after, or at {n}. |
| Insert date | Modified time or photo capture time as YYYYMMDD, YYYY-MM-DD or YYMMDD_HHmmss. |
| Change case | lowercase, UPPERCASE, or Capitalize Each Word. |
| Delete characters | First N, last N, or a set of characters. |
| Handle spaces | Spaces to _ or -, collapse repeats, trim ends. |
| New-name template | Overwrites the whole name with {name} {n} {n:3} {date} {ext} {parent}. |
| Change extension | Lowercase .JPG to .jpg, or set a given extension. |
With Protect extension on (the default), rules only touch the name before the extension. Turn it off and the whole name, extension included, is the target. A template builds the entire name, so write .{ext} yourself if you want to keep the extension.
Example rule combinations
Number photos in shooting order. Sort by Photo capture time, then stack Insert date (capture time, YYYY-MM-DD, before name, separator _), Add numbering (3 digits, after name, _) and Change extension (lowercase):
| Original | New name |
|---|---|
| IMG_0398.JPG | 2025-08-02_IMG_0398_001.jpg |
| IMG_0405.JPG | 2025-08-02_IMG_0405_002.jpg |
| IMG_0412.JPG | 2025-08-03_IMG_0412_003.jpg |
The capture time comes from the JPEG’s EXIF data; files without it use the modified time. Dates use your device’s time zone.
Tidy spaces. Stack Collapse repeated spaces, Trim leading/trailing spaces, Spaces to _ and all lowercase. Then Meeting Notes Final .TXT becomes meeting_notes_final.TXT (the extension is lowercased by the separate extension rule), and Q3 Report v2.pdf becomes q3_report_v2.pdf.
Add a prefix. Put only the prefix 2025_ in Add prefix / suffix: invoice.pdf becomes 2025_invoice.pdf and receipt.pdf becomes 2025_receipt.pdf.
Name problems fixed automatically
Names Windows cannot use are fixed for you. When a rule produces one, the status column says “Illegal characters fixed”.
| Problem | Fix |
|---|---|
\ / : * ? " < > | and control characters |
replaced with _ |
| Trailing dots and spaces | removed |
CON PRN AUX NUL COM1-COM9 LPT1-LPT9 (even with an extension) |
_ added in front (CON.txt becomes _CON.txt) |
| More than 255 bytes in UTF-8 (Korean takes 3 bytes per character) | the name is cut, the extension is kept |
Colliding names get (2), (3) and so on. Windows and macOS ignore letter case, so A.jpg and a.jpg count as a collision. Collisions are checked within each folder only.
Presets
Save a rule combination under a name and load it later. Presets live only in this browser and disappear if you clear its data. Regular expressions run on short strings like file names, but a complex pattern can still be slow, so try it first in the Regex Tester.
Related tools: ZIP Creator · Find and Replace · Slug Generator · Remove EXIF
Your files are processed in your browser only and are never sent to a server.