How to Bulk Rename Image Names

Bulk renaming image filenames is one of the many SEO tasks that seems so simple, like renaming 2000 product photos from IMG_4382.jpg to something much more meaningful. Some systems, like Shopify, will even use the filename as default alt text if no regular alt text has been entered. Google reads out the filename when it indexes an image, and when that filename is poorly devised, that is a missed ranking signal for product name searches in Google search, Google Images and in Google Shopping feeds.
Files for updating image filenames for this client from last year. Of the 1,400 images, 905 of them were either default camera file names (e.g. DSC_0041.jpg, IMG_20250912_143522.jpg) or supplier file names with a supplier code (e.g. SKU88291_01.png). Not a single keyword had been added to these files. Names were updated using a tool that allowed bulk changes, in about an hour. Product pages appeared in Google Images in about 3 weeks without any other changes to the content.
In this guide we cover Why Filename matters, Filename Convention for Ecommerce websites, Bulk Rename Tools for Windows and Mac and Online equivalent for Small Batches. We also cover specific requirements for Shopify and provide a Free tool for Bulk Image Renaming that will automatically generate the correct pattern for you.
In this post
- Why image filenames matter for SEO
- The naming convention that works
- Bulk rename tools for Windows
- Bulk rename tools for Mac
- Online rename tools
- Shopify-specific rename workflow
- Common mistakes to avoid
- FAQ
Why image filenames matter for SEO
Google says that the filename of an image (i.e. the file name on your server, i.e. my-cat.jpg) is one of the signals Google uses to understand what is in an image, along with things like the alt text, the surrounding content on the page, and any structured data that you might markup. So, a file named blue-merino-wool-sweater-front.jpg tells Google that the image is a photo of the front of a blue Merino wool sweater. A file named IMG_4382.jpg tells Google nothing.
Three places where filenames directly affect your store:
- Google Images. Product photos with descriptive filenames rank higher in Google Images, which drives traffic that most stores completely ignore. Shoppers searching “navy linen blazer” in Google Images will see results where the filename and alt text match. Your DSC_0041.jpg is invisible.
- Google Shopping. The image URL in your product feed includes the filename. Clean filenames reinforce relevance signals in the feed. Our Google Shopping feed optimization guide covers this in detail.
- Shopify alt text fallback. When you upload an image to Shopify without setting alt text, Shopify uses a cleaned-up version of the filename as the default alt. If the filename is junk, the alt text is junk, and you have lost two signals instead of one.
– why fixing a problem once fixes multiple related issues with your filenames- like setting default alt text, improving image search rankings and feed relevance. See our full Shopify product image SEO guide to learn more about the SEO signals that product images provide.
The naming convention that works
Keep it simple. Product image file names follow this format: product-name-variant-angle.jpg (eg. cool-guy-gray-front.jpg).
Examples:
merino-wool-sweater-navy-front.jpgmerino-wool-sweater-navy-back.jpgmerino-wool-sweater-navy-detail.jpgleather-tote-bag-brown-lifestyle.jpg
Rules to follow:
- Use hyphens between words, not underscores. Google reads hyphens as word separators.
- All lowercase. No mixed case.
- No special characters, no spaces, no accented letters.
- Keep it under 50 characters total when possible.
- Include the primary keyword for the product naturally. Don’t keyword-stuff.
- Include the variant (color, material, size) if it’s a variant-specific image.
- End with the angle or context: front, back, side, detail, lifestyle, swatch.
What NOT to do: don’t fill your file names with all possible keywords (like “best”) and try to sneak in a quick SEO grab. best-cheap-navy-blue-merino-wool-mens-sweater-buy-online-2026-front.jpg looks like spam. I try to use a file name that contains just enough information to describe the picture, without coming on like a used car salesman.
Bulk rename tools for Windows
PowerRename (PowerToys) – Best Free Option. Microsoft offers a suite of software utilities called PowerToys, which can be downloaded free from the Microsoft Store or from GitHub. PowerRename is part of this group of utilities and it makes it very easy to rename a group of files at the same time. With simply a right mouse click on a group of files you can use find and replace, regex search or a numerical sequence to rename files.
Using it for product images: select all files in the folder, right click and choose PowerRename, enter a regex pattern to strip the camera prefix from the file names and replace with a pattern for the product name. You can preview individual renames before carrying them through. The regex mode fully supports capture groups, so you can strip part of the file name and replace it with something else from the product name while keeping other parts of the file name intact.
Another free option for bulk file renaming is the Bulk Rename Utility. This little program has been around for years, and its interface looks like it was last updated around 2004. But hey, it’s free, it’s powerful, and it’s designed to handle large quantities of files and can even support multiple renaming rules at the same time. There’s a bit of a learning curve with this program, but once you get the hang of it (gives it 10 minutes) you’ll save hours of time in the long run.
For most retailers, PowerRename alone will be sufficient. PowerRename is included as part of the Microsoft sponsored open-source project, PowerToys, but for those where 500 files being renamed in under a minute is still too slow, the complex file renaming capabilities provided should be more than up to the task. The process also utilises regex and, provided the appropriate match and rename syntax is used, it should be straightforward to master.
Bulk rename tools for Mac
ISO/We also have a built-in tool on the MacBook Pro for bulk renaming images, which most people aren’t aware of. Once you have selected all the images you wish to rename in the Finder, simply right-click (or control-click) on one of them and select “Rename X Items” from the resulting contextual menu. You’ll be presented with three modes: replace text, add text and format, which includes sequential numbering. This gives you the ability to swap out the camera prefix for something more descriptive, for example, but for true organisation and tagging of images, you’re better off bringing in the heavy artillery with a dedicated image-renaming tool.
Automator exists in the form of an application built into macOS and an.workflow file. An “Rename Finder Items” action exists within Automator and you can create a workflow and have several rename steps (remove prefix, add product name, add sequence number etc) and then save it as a Quick Action. It is totally free and exists on every Mac already, but seems underused.
NameChanger (Mac, Free) – This free third-party utility provides a straightforward interface for performing regex-based file renames. Simply drag files into the dropzone at the top of the window, enter in the correct pattern for the rename, preview the changes and then proceed with the rename. It’s an excellent alternative to using Automator for a simple one-shot rename operation.
Shopify recently added the ability to edit URL handles in the Content > Files section, which is a step forward. But for product images, there is still no bulk rename option, and changing a URL handle after upload breaks any links to the old URL. The cleanest approach is still to rename your files before uploading. Always.
Online rename tools
If you are renaming a small batch of products and don’t want to pay for software, there are online batch file rename utilities available. However, online utilities require that you upload your product images to their server so be very cautious with using online utilities with sensitive or products that have not been released yet. It’s better to stick with local utilities for such needs.
This is a free, browser-based tool that can rename all of your Bulk images directly on your computer without having to upload anything. It will generate the renamed files on your computer according to the above pattern, using the patterns for the Product Name, Variant and Angle that you can set up yourself. It will also generate a CSV file that lists all the old Bulk image file names and their corresponding new file names for your reference.
Other online options include: Bulk Rename (http://bulkrenameutility.co.uk/index.php?option=com_mvp) and other regex rename tools floating about on the web. Best suited for small numbers of files (less than 50). Once you reach that threshold, it is generally easier to use a local tool.
Shopify-specific rename workflow
Shopify now lets you edit the URL handle of a file from Content > Files, but this only changes the URL slug, not the original filename that search engines have already indexed. Changing the handle also breaks any existing references to the old URL across your storefront and external links. For product images specifically, there is still no bulk rename option in the admin. In practice, the safest workflow remains: rename locally first, then upload with the correct filename from the start.
So the workflow is: rename locally first, then upload.
- Export your current images. Use Shopify’s product export CSV or our CS Export Product Images app to download all product images with their current filenames.
- Organize into folders. Sort images by product or collection so you can apply naming patterns per group.
- Rename using a bulk tool. PowerRename on Windows, Finder or Automator on Mac, or our bulk image renamer online.
- Re-upload to Shopify. Use the product editor for small batches. For hundreds of images, use CS Smart Bulk Image Upload to match renamed files to products by SKU.
- Update alt text. Even with good filenames, set proper alt text on every image. Check your current alt text coverage with our image audit tool.
For stores that already have 1000s of bad image names: is it worth re-uploading all over again? If you’re in a super competitive niche then yes it is worth it. The traffic you get from Google Images alone could make it worth it re-doing everything. But if you sell industrial supplies to 50 customers each month, it probably just isn’t worth the headache.
Common mistakes to avoid
- Using underscores instead of hyphens. Google treats hyphens as word separators. Underscores get ignored.
blue_sweaterreads as “bluesweater” to Google.blue-sweaterreads as “blue sweater.” Use hyphens. - Renaming after upload. While Shopify now lets you edit URL handles in Content > Files, changing them breaks existing links and doesn’t help with bulk product images. Rename before you upload to avoid headaches.
- Keyword stuffing. A filename with 15 keywords is spam. Keep it descriptive and under 50 characters.
- Forgetting variant info. If you have a red and a blue version of the same product, include the color in the filename. Otherwise Google thinks both images are the same thing.
- Using spaces. Spaces in filenames become %20 in URLs. Ugly, potentially broken in some tools, and unnecessary. Use hyphens.
- Not keeping a mapping. Rename 500 files without a record and you will lose track. Our bulk image renamer outputs a CSV map automatically.
For the complete guide to image SEO including alt text, image compression, image lazy load and using rich data on product images, read our guide to product image SEO. This blog post focuses on one single point – the filename – because this is the easiest to get wrong if you don’t include it at the point of upload, and subsequently, it is also the hardest to amend correctly later on.
FAQ
Do image filenames really affect SEO?
Yes. These images could use better filenames and Google’s documentation tells us that the filename actually conveys meaning to the search engines. Using descriptive filenames in your image files can help images rank better in Google Images and is another relevance signal that is replicated in your product feeds.
Can I rename images after uploading to Shopify?
Shopify now allows editing the URL handle of files in Content > Files, but this changes the URL and breaks existing links. For product images, there is no bulk rename. The safest approach is to rename files before uploading to avoid broken references later.
Should I use hyphens or underscores in filenames?
Hyphens. Google treats hyphens as word separators (but not underscores), so blue-sweater.jpg is “two words”, while blue_sweater.jpg is “one word”.
What is the best free bulk rename tool for Windows?
5 Microsoft PowerRename (part of Microsoft PowerToys). Free, regex supported and can be used directly in File Explorer’s search box, or added as a right-click context menu option. I favour the search box method myself, as this allows for easier filtering and previewing of changes. Alternatively, the excellent free Bulk Rename Utility has no problem handling as many rename rules as you like.
What is the best free bulk rename tool for Mac?
Finder can rename a few items at a time in an easy to use format, but for true power use Automator (which comes in the Applications folder on your MacBook Pro) or NameChanger (a free app).
How long should a product image filename be?
Include name, flavor/variant, and angle. Under 50 characters is optimal. Do not keyword stuff (there’s little reward and considerable penalty).
Does renaming images help Google Shopping rankings?
Yes. The image url in your product feed is the filename of the image which is enhanced by having a descriptive filename as well as the product name in the title image.
Related reading
- Shopify product image SEO guide
- Shopify image filename and SEO deep dive
- Google Shopping feed optimization
- Variant images FAQ on rubikvariantimages.com
- Combined Listings explained on rubikify.com
First, I worked on the bulk image file renamer. I pasted in the current names of the images, selected out the product name pattern, and it spat out the new names with a downloadable CSV that maps the old to the new for reference. This little bit of work, which literally took 10 minutes, will save me from re-uploading 2,000 images six months from now when I finally want to optimize the images for SEO.
