Batch rename files
Batch rename photos and other files with a pattern of numbers, names, sizes and formats, free and in your browser with no upload. Files go into the ZIP byte for byte, so nothing is re-encoded.
Nothing is re-encoded. The bytes are copied through exactly as they arrived and repackaged with new names.
In detail
Batch rename gives a pile of files new names from a pattern such as {index}-{name}.{ext} and packs them into a ZIP. Nothing is re-encoded: each file goes into the archive as the exact bytes that came off disk, and only the name changes, so the pixels, the quality and the metadata come out as they went in.
Numbers are padded so a batch sorts correctly in a file manager, you choose the starting number and the order, and find-and-replace and case changes tidy the old names first. Two files that would end up with the same name are numbered apart rather than overwriting each other.
Batch rename files at a glance
- Input
- Any files: images, PDFs or anything else
- Output
- One ZIP of renamed files, or a single renamed file
- What it does
- Pattern tokens for index, name, size and format
- Zero-padded numbering with a start value
- Sort by name, size, date or drop order
- Find and replace
- Duplicate names numbered apart
- No re-encoding
- Who it is for
- Photographers, office staff and anyone organizing a folder of files.
- Limits
- The width and height tokens are empty for files this browser cannot draw.
- Privacy
- Runs entirely in your browser: no file is uploaded, and nothing is kept after you close the tab.
How to batch rename files
- Drop the files Any mix of formats. The table lists each current name beside the name it is about to get, and updates as you type.
- Write the pattern {name}, {index}, {ext}, {width}, {height} and {format} are filled in. {index} is padded to three digits so a batch sorts correctly in a file manager, and you set the number it starts from. An unknown token is left visible, so a typo looks like one.
- Set the order As dropped, by name, by size or by date modified. The order decides which file gets which number and the order they are packed in. Sorting by name reads runs of digits as numbers, so img-2 comes before img-10.
- Trim the old names if you need to Find and replace works on the current name before the pattern is filled in. It is plain text rather than a pattern, so a dot means a dot. Case can be left alone or set to lower, UPPER or Title, and the extension is left out of it.
- Download One file is saved directly under its new name. More than one is packed as file4edit-renamed.zip.
Batch rename files: common questions
Does renaming re-encode or degrade the images?
No. Batch rename is the one tool in File4Edit that never decodes anything. Each file is copied into the ZIP byte for byte and only its entry name changes, so quality, color profile and EXIF are untouched.
What happens when two files end up with the same new name?
A number is added rather than one file overwriting another: a second photo.jpg becomes photo-2.jpg, and the affected rows are flagged "numbered". The check is case-insensitive, because Windows and macOS treat Photo.png and photo.png as the same file.
Why are {width} and {height} empty for some of my files?
Those two tokens are the only thing that has to be read out of the file, and some files cannot be drawn by this browser, such as a PDF. Those files are still renamed and packed; only the two size tokens come out empty, and the row is marked "size only".