Batch rename to a pattern
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 entry name changes, so the pixels, the quality and the metadata come out as they went in. The renaming and the zipping both happen in your browser, so the files are never uploaded.
How it works
- 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.
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, colour 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 will not decode in every browser — a PDF, or a HEIC outside Safari. Those files are still renamed and packed; only the two size tokens come out empty, and the row is marked "size only".
Every tool