Renaming a cryptic product image filename into a descriptive SEO-friendly version

How to Fix Bad Image Filenames for SEO

16 min read
Image SEOImage FilenamesE-commerceShopifyEtsyWooCommerce

IMG_4521.jpg provides little useful context. A name such as green-leather-handbag.jpg is more descriptive, but a filename cannot prove material or determine where an image belongs in search results.

The majority of product images uploaded to Shopify, Etsy, WooCommerce, and Amazon stores arrive with the filename the camera assigned. Sometimes it is a timestamp. Sometimes it is a sequence number. Sometimes it is literally image.jpg. Every one of those filenames is a missed opportunity to signal relevance to Google Images, which drives significant product discovery traffic for e-commerce.

This guide covers why filenames matter, the exact formula for writing good ones, how each major platform handles them, and how to fix bad filenames you have already uploaded — with and without bulk tools.

Key Takeaways

  • The formula is [primary-keyword]-[secondary-keyword]-[descriptor]-[variant].jpg — hyphens only, all lowercase, 30–55 characters.
  • Shopify and standard WooCommerce setups commonly retain recognizable source filenames, while marketplaces may rename uploads; always inspect the final public URL instead of assuming a platform preserves every name unchanged.
  • Fix filenames before uploading — changing them after the fact on Shopify or WooCommerce requires deleting and re-uploading the image, which risks breaking any already-indexed URL.

Why Image Filenames Matter for SEO

How Google Uses Filenames

Search systems can use image URLs alongside alt text, surrounding page content, links, structured data, and visual analysis. A readable filename adds context, but Google does not publish a fixed weight for it.

The filename commonly appears in the image URL. A descriptive path is easier for people and crawlers to interpret than a generic identifier, but matching words in a path do not guarantee that an image will rank for those queries.

When Google Images ranks results, it looks at multiple signals together: page relevance, alt text, surrounding text, structured data, and the filename. None of these signals is decisive on its own, but each one you get right improves your position relative to a competitor who left that signal blank.

The Compound Effect

A useful filename works best when it accurately agrees with accessible alt text and relevant page content. Embedded file metadata is a separate optional layer and may be changed or removed downstream.

For a handmade candle, consider the difference between these two setups:

| Signal | Weak Setup | Strong Setup | |--------|-----------|--------------| | Filename | 001.jpg | lavender-soy-wax-candle-8oz-handmade.jpg | | Alt text | "candle" | "Lavender soy wax candle, 8 oz, hand-poured" | | EXIF title | (empty) | "Lavender Soy Wax Candle 8oz Handmade" |

The strong setup combines a descriptive filename and useful alt text with file-level metadata. For Google image SEO, prioritize the filename, alt text, relevant page context, crawlability, and appropriate performance; embedded metadata separately carries descriptive information inside the file. If you want to understand how EXIF metadata slots into this picture, What Is EXIF Metadata and Why It Matters for SEO covers that layer in detail.

What Makes a Bad Image Filename

Common Bad Filename Patterns

Most bad filenames fall into one of these categories:

Random camera names — IMG_4521.jpg, DSC_0234.jpg, DCIM_0099.jpg. These are the defaults assigned by cameras and smartphones. They are unique identifiers for your device, not descriptions of your product.

Generic descriptors — image1.jpg, product.jpg, photo.jpg, thumbnail.jpg. These are fractionally better than camera names because they at least indicate what the file is, but they still carry zero keyword signal.

Number-only filenames — 12345.jpg, 001.jpg, 99.jpg. These communicate nothing beyond a sequence.

Extremely short filenames — img.jpg, p.jpg. Abbreviations that mean nothing to a search crawler.

Filenames with spaces — my product image.jpg. Browsers encode spaces as %20, producing URLs like my%20product%20image.jpg. This is ugly, harder to read, and reduces the clarity of the keyword signal.

Filenames with underscores — my_product_image.jpg. This is a subtle but important mistake. Google's algorithm reads hyphens as word separators, so my-product-image.jpg is parsed as three words: "my", "product", "image". Underscores are not word separators in Google's eyes, so my_product_image.jpg is read as one long unrecognized token.

Why These Hurt SEO

Every bad filename is a zero-signal URL in Google's index. Your competitor selling the same leather wallet with the filename mens-brown-leather-bifold-wallet.jpg has a small but real advantage over your IMG_8832.jpg in every Google Images query related to that product. Multiply that across an entire product catalog — a few hundred to a few thousand images — and the cumulative gap becomes significant.

Bad filenames are also a wasted URL structure opportunity. For Shopify and WooCommerce stores, where you control the filename, cleaning this up is free traffic you are leaving on the table.

The Perfect SEO Filename Formula

Formula

[primary-keyword]-[secondary-keyword]-[descriptor]-[variant].jpg

Build the filename from the most important attribute to the least important. Lead with what the product is, then add material, color, or key feature, and optionally a variant (size, finish, style) if it is meaningful to the shopper.

Real Examples by Category

| Product | Bad Filename | Good Filename | |---------|-------------|---------------| | Leather wallet | IMG_1234.jpg | mens-brown-leather-bifold-wallet.jpg | | Summer dress | DSC_4521.jpg | womens-floral-boho-summer-dress-blue.jpg | | Coffee mug | photo.jpg | handmade-ceramic-coffee-mug-12oz-white.jpg | | Running shoes | image1.jpg | mens-black-running-shoes-lightweight.jpg | | Soy candle | 001.jpg | lavender-soy-wax-candle-8oz-handmade.jpg | | Gold earrings | DSC_0421.jpg | gold-hoop-earrings-14k-small-women.jpg | | Macramé wall art | photo1.jpg | macrame-wall-hanging-bohemian-large-white.jpg | | Silver ring | IMG_8832.jpg | sterling-silver-ring-stackable-size-7.jpg |

Rules

Prefer hyphens to underscores or spaces. Hyphens are the conventional separator for readable URL words and avoid encoded spaces.

All lowercase. URLs are case-sensitive on most servers. Mixing cases creates duplicate URL risks and makes filenames harder to type and reference.

Use only necessary descriptive terms. Pick the product type and genuinely useful visible attributes; avoid turning the filename into a keyword list.

Include: product type + material or color + key feature. These three attributes cover most product categories and map directly to how shoppers search.

Keep it concise. There is no universal character limit for SEO, but shorter readable names are easier to manage and share.

Use the correct file extension. .jpg for most product photos, .webp for modern web-optimized images, .png when you need transparency. The extension tells the browser and search crawler the file format.

No special characters. Avoid !, @, #, $, %, ^, &, *, (, ), +, =, ?, /. These characters break URLs or require encoding.

How Filenames Work on Each Platform

Shopify

Shopify controls its image-delivery pipeline and may retain recognizable parts of a source filename in delivered URLs. Inspect the published asset rather than treating preservation or ranking impact as guaranteed.

Changing an established image on Shopify can alter the delivered asset URL or references depending on the current workflow. Treat it as a migration: inspect the resulting URL and avoid replacing indexed assets solely for a speculative filename benefit.

See the Shopify SEO guide for the full picture of how filenames fit into the broader Shopify optimization checklist.

Etsy

Etsy controls the uploaded image's processing and delivered CDN URL. A published asset may use an Etsy-generated identifier, so do not assume the source filename will remain visible or that it will always be stripped.

Do not treat a source filename as an Etsy internal-search tactic or assume how Etsy preserves it after upload. More practically, a consistent local naming workflow can help merchants organize source assets while listing titles, tags, and other exposed fields carry the platform-facing context.

For Etsy-specific SEO, the higher-value work is on your listing title and tags. The Etsy image SEO guide covers where to focus your effort on that platform.

WooCommerce

A standard WordPress upload normally retains a sanitized base filename in the original media URL, while it may add suffixes and generate derivatives. Plugins and CDNs can transform delivered URLs, so inspect the published asset.

One difference from Shopify: you can rename an image's display title in the WordPress Media Library without re-uploading the file, but the underlying URL slug (which contains the filename) does not change from the Media Library editor alone. To change the actual URL, you need to delete the media item and re-upload with the correct name, or use a plugin that handles URL slug updates with proper redirects.

For WordPress-specific filename formulas, Media Library behavior, variation images, and existing-file migration details, use the WooCommerce image filename guide. The broader WooCommerce image SEO guide explains how filenames fit alongside alt text, page context, and performance.

Amazon

Amazon, like Etsy, renames your files on upload. Your filename is replaced by Amazon's ASIN-based image identifier in their CDN. However, Amazon product listings are crawled by Google, and Google Images picks up those listing images. Uploading with a well-named file means any pre-upload indexing — if Google somehow sees the file before Amazon renames it, or if you are linking to images from external sources — carries the right keywords.

More importantly, the habit of naming correctly before upload carries over to your Google Images strategy for your brand website and any external product pages. For a full breakdown of how Amazon product images interact with Google, see the Amazon product image SEO guide.

How to Rename Images Before Uploading

Manual Renaming on Windows

  1. Navigate to the image in File Explorer.
  2. Click the file once to select it.
  3. Press F2 (or right-click → Rename).
  4. Type the new SEO-friendly filename, keeping the extension (.jpg, .webp, .png).
  5. Press Enter.

Manual Renaming on Mac

  1. Click the filename in Finder once to select the file.
  2. Press Enter to activate renaming.
  3. Type the new name, keeping the extension.
  4. Press Enter to confirm.

Alternatively, right-click the file in Finder and choose Rename from the context menu.

Bulk Renaming Without Extra Software

Windows: Select multiple files in File Explorer, press F2, and type a base name. Windows automatically appends sequential numbers — so mens-leather-wallet (1).jpg, mens-leather-wallet (2).jpg, and so on. This works well for variant images of the same product. For a large catalog with different products, you will still need to rename each product group individually.

Mac: Select multiple files in Finder, right-click, and choose Rename. The dialog lets you replace text, add a prefix or suffix, or apply a format with a counter. For mixed products, the same limit applies — you will work through each product grouping separately.

The manual approach is fine for catalogs up to 20 or 30 products. For larger stores, the time cost of manual renaming adds up quickly.

How to Fix Existing Bad Filenames

For Shopify

If your images are already uploaded with bad filenames, the process requires re-uploading:

  1. Open the product in your Shopify admin.
  2. Go to the Media section.
  3. Click the image and download it to your computer.
  4. Rename the downloaded file using the SEO-friendly formula above.
  5. Delete the old image from the product's media in Shopify.
  6. Upload the renamed image.
  7. Update the alt text while you are in the media editor — this is a good time to get both signals right at once.

Repeat for each product image that needs fixing. If you have hundreds of products, prioritize your best-selling items and your highest-traffic landing pages first.

For WooCommerce

Option 1 — Re-upload:

  1. Go to Media Library in WordPress.
  2. Click the image to open its details.
  3. Note the current file URL and which posts use it.
  4. Download the image.
  5. Rename it locally with the correct SEO filename.
  6. Delete the old media item (WordPress will warn you if posts use it).
  7. Upload the renamed file.
  8. Re-attach it to the product and update the alt text.

Option 2 — Rename plugin: Plugins like "Media File Renamer" can update the filename slug and handle redirects from the old URL to the new one, preserving any link equity the old URL had accumulated.

For Etsy

Since Etsy overwrites your filename on upload, renaming existing Etsy listing images will not change how they appear in Etsy's system. The effective work is:

  • Update your listing title to include the most important keyword phrases.
  • Update alt text (Etsy calls this the image description in listing settings).
  • For new listings, name your files correctly before upload to build the habit.

For Amazon

Like Etsy, Amazon's CDN controls the image URL after upload. Focus your optimization energy on:

  • Correct filenames before uploading to any external product pages you control.
  • Accurate product titles that follow Amazon's current requirements.
  • Clear product images that support the listing and customer decisions.

The Bulk Problem

If your store has more than 50 products with bad filenames, manual renaming across every image becomes a project measured in days, not hours. For a store with 200 products and 5 images each, that is 1,000 files to rename, download, delete, and re-upload — with alt text updates on top.

This is the problem ImgSEO solves at the platform level.

Batch Renaming with ImgSEO

How ImgSEO Generates Filenames

ImgSEO analyzes the image and supplied product context to generate a descriptive filename suggestion. Review the result for product accuracy and adapt it to the destination platform before publishing.

The filename is not just written to the file on disk. ImgSEO also embeds related metadata inside its exported files: XMP in JPEG, WebP, and AVIF, with EXIF additionally included for JPEG. That descriptive information remains in the exported source file, but search engines and destination platforms determine whether it is preserved or used.

Step by Step

  1. Go to ImgSEO and upload your product images.
  2. Enter the product name and select your selling platform (Shopify, Etsy, WooCommerce, Amazon).
  3. The AI analyzes your input and generates an optimized filename for each image.
  4. Review the generated names — you can adjust any of them before downloading.
  5. Download the processed images with their new SEO-friendly filenames already applied.
  6. Upload directly to your store.

The workflow can prepare images, filenames, alt text suggestions, and supported embedded metadata for review; completion time depends on batch size and processing conditions.

Filename SEO Checklist

Before uploading any product image, run through this list:

  1. ✅ Use hyphens between every word — no underscores, no spaces
  2. ✅ All lowercase letters throughout
  3. ✅ Primary keyword (product type) appears at the start of the filename
  4. ✅ Color, material, or key feature included after the primary keyword
  5. ✅ Filename is under 60 characters
  6. ✅ Correct file extension used — .jpg, .webp, or .png
  7. ✅ No special characters (!, @, #, $, %, &, *, etc.)
  8. ✅ No duplicate filenames within the same store (append a variant if needed)
  9. ✅ Renamed before uploading to avoid re-upload work later
  10. ✅ Alt text written to match and reinforce the filename keywords

Before & After Examples

Shopify Jewelry Store

| Before | After | |--------|-------| | DSC_0421.jpg | gold-hoop-earrings-14k-small-women.jpg | | IMG_8832.jpg | sterling-silver-ring-stackable-size-7.jpg | | photo.jpg | rose-gold-pendant-necklace-18inch-chain.jpg | | image2.jpg | amethyst-stud-earrings-sterling-silver.jpg |

Etsy Home Decor Shop

| Before | After | |--------|-------| | photo1.jpg | macrame-wall-hanging-bohemian-large-white.jpg | | 001.jpg | hand-painted-ceramic-vase-blue-rustic.jpg | | DSC_1199.jpg | woven-cotton-throw-pillow-cover-boho-18x18.jpg | | img.jpg | reclaimed-wood-floating-shelf-24inch-natural.jpg |

WooCommerce Clothing Store

| Before | After | |--------|-------| | image.jpg | organic-cotton-tshirt-mens-navy-medium.jpg | | IMG_3302.jpg | womens-linen-wide-leg-pants-beige-small.jpg | | DSC_9981.jpg | merino-wool-crewneck-sweater-grey-large.jpg | | product2.jpg | recycled-polyester-zip-hoodie-black-xl.jpg |

Amazon Electronics Accessories

| Before | After | |--------|-------| | 12345.jpg | usb-c-braided-cable-10ft-fast-charging.jpg | | 0001.jpg | laptop-stand-adjustable-aluminum-portable.jpg |

FAQ

Do image filenames really affect SEO? A descriptive filename can provide useful context and make assets easier to manage, but it is only one part of the image URL and page. Relevant content, accessible alt text, crawlability, and delivery also matter.

Should I use hyphens or underscores in image filenames? Prefer hyphens as the conventional word separator in URLs. Keep names readable and consistent, and verify how the destination platform sanitizes them.

How long should an image filename be? Use the shortest readable name that accurately identifies the product and useful visible attributes. There is no universal character or keyword count.

Does Etsy use image filenames for SEO? Do not rely on the source filename for Etsy search or assume how it is preserved after upload. Prioritize the listing fields and accessible image descriptions that Etsy exposes.

How do I rename images in bulk? Windows File Explorer and Mac Finder both have built-in bulk rename tools that work well for variant images of the same product. For large catalogs with many different products, ImgSEO generates SEO filenames automatically across entire upload batches.

Should I rename existing product images? Do not replace an established asset solely for a hoped-for filename ranking benefit. If a migration has a clear operational reason, update references, preserve redirects where possible, and verify the published result.

What file extension should I use for product images? Use .webp when your platform supports it — it delivers smaller file sizes with equivalent quality. Use .jpg for maximum compatibility. Use .png only when you need a transparent background (product images on white usually do not need transparency).

Does capitalization matter in image filenames? On most servers, yes — URLs are case-sensitive, and Product-Image.jpg and product-image.jpg are treated as different files. Always use lowercase to avoid duplicate URL issues and keep your naming consistent.

Conclusion

A generic filename such as IMG_4521.jpg provides little context and is difficult to manage. Rename new files descriptively before upload when possible, without assuming a guaranteed ranking change.

The practical formula is product type plus genuinely visible attributes, separated by hyphens and written in lowercase. Apply it before uploading where possible, and treat existing indexed URLs as a migration task rather than renaming them only for a hoped-for ranking boost.

Pair good filenames with descriptive alt text and relevant page context. Embedded metadata can separately carry descriptive and rights-related information inside the file, but search engines and destination platforms determine whether it is preserved or used. For the full alt text side of this equation, How to Write Alt Text for Product Images walks through the same level of detail applied to that specific field.

For stores with large catalogs, ImgSEO can generate filename and alt text suggestions and supported file metadata for merchant review, reducing repetitive drafting work without guaranteeing a fixed time saving.

The durable practice is straightforward: use accurate, readable filenames for new assets, keep page context and alt text useful, and treat any existing URL change as a migration.

Share:

Joseph

The team behind ImgSEO.io. We help online sellers optimize product images, improve search visibility, and create a better shopping experience across e-commerce platforms.

Optimize your product images with AI

Generate SEO titles, alt text, tags, filenames, and metadata in seconds.


Related Articles

GET STARTED TODAY

Download images with SEO metadata

Upload product photos and download generated filenames, tag suggestions, and export data.

No credit card requiredStart optimizing in seconds

30,000+

Images Optimized

1,000+

E-commerce Sellers

5,000+

Hours Saved

98

Avg. ImgSEO Score