Rename a folder of product photos to a pattern

A folder straight off a camera is DSC_4821.JPG through DSC_4863.JPG, and a bulk catalogue upload wants names that say which product and which shot. Renaming forty files by hand in a file manager is where the mistakes get made - two photos of the blue shirt filed under the green shirt's SKU, discovered a week later in a return.

Set a prefix, a running number and a suffix, and the first four results are shown old name beside new name before you commit to anything. Nothing is decoded or written again: the original bytes are copied into the ZIP under the new name, so a 12-megapixel photo comes out with every pixel it went in with.

Rename images Needs an account. The trial is free and takes a WhatsApp code.

How it works

  1. Add the folder. Photos are numbered in the order they are added, which for a folder selected in one go is the order your operating system lists them in, normally alphabetical.
  2. Set the pattern. A prefix such as shirt-blue, a running number, and a suffix such as main. Any of the three can be left out, and the original name can be kept in the middle if you want to stay able to trace a file back.
  3. Choose the numbering. Start at whatever number you like, and pick the width: 1, 01, 001 or 0001. 001 is the default, and it is the one that still sorts correctly in a file manager once you pass nine files.
  4. Check the preview. The first four renames are listed old to new. If two files would end up with the same name you are warned, because a ZIP will happily hold both and whatever unpacks it keeps only one of them.
  5. Export. The renamed files come back as a ZIP named after your prefix. The files on your disk keep the names they had.

What it handles

  • Prefix, original name, running number and suffix, joined by a hyphen, an underscore or nothing at all
  • Numbering that starts where you tell it and pads to 1, 2, 3 or 4 digits
  • A live preview of the first four renames, so the pattern is checked before it is applied to eighty files
  • A warning when two files would collide on the same name
  • Not one pixel decoded or re-encoded - the original file's bytes go into the ZIP unchanged
  • Characters that Windows and macOS refuse in a file name are replaced with a hyphen, and long names are trimmed to 120 characters
  • An extension override that relabels a file without converting it

Your files stay on your computer

This runs inside your browser tab. The file is read and written on your own device and is never uploaded — not the order PDF, not the customer names and addresses printed on it. There is no upload endpoint to send it to.

Questions

Can it produce Amazon's filename convention, like B01ABCDEFG.MAIN.jpg?
Only part of the way. Put the ASIN in the prefix and MAIN in the suffix and turn the running number off, but the separator choices are a hyphen, an underscore or nothing - there is no dot - so what you get is B01ABCDEFG-MAIN.jpg. Good for your own filing, not what that convention expects.
Can I choose which photo becomes 001?
Not directly. The numbering follows the order the files were added and there is no way to drag them into a different order. The way round it is to add the photos in the order you want them, a few at a time, instead of selecting the whole folder at once.
Does renaming reduce the quality?
No, and that is deliberate. Nothing is decoded or drawn - the file's bytes are copied straight into the ZIP under the new name. A renamed photo is byte for byte the photo you started with, which is not true of any other tool on this site.
Does forcing .png convert my JPG into a PNG?
No. It changes the label on the name and nothing else, and a file called .png that is really a JPEG will be refused by some uploaders and confuse others. The override is for tidying .JPEG into .jpg. To really change the format, use the convert tool.
What happens to files that are already named correctly?
They are renamed along with everything else, because the pattern is applied to the whole run. Leave them out with the x on their card if they should keep their names, and they stay out of the ZIP entirely.

Related tools

Rename images