IMG_4521.jpg tells Google nothing. green-leather-handbag-etsy.jpg tells Google exactly what the image contains, who it is for, and where it belongs in search results. That difference — three seconds of renaming before upload — is a ranking signal most e-commerce sellers give away for free.
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.
Why Image Filenames Matter for SEO
How Google Uses Filenames
Google does not have eyes. When Googlebot crawls a product page, it reads everything it can — the page title, the body text, the alt text, and the image filename — to build a picture of what the image shows. The filename is one of the clearest signals available because it is structured text that the developer (or the seller) controls directly.
The filename also lives in the image URL. URLs are a lightweight ranking signal for standard web search, and for Google Images specifically, the URL structure can help an image rank for queries that match the words in the path. A URL like yourstore.com/products/img4521.jpg contributes nothing. A URL like yourstore.com/products/mens-brown-leather-bifold-wallet.jpg tells the crawler the subject before it even opens the file.
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
The real power of a good filename comes from how it reinforces the other signals on the page. When your filename, alt text, and image metadata all describe the same product with the same keywords, you are sending Google three consistent signals instead of one.
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 does not just win on each individual signal — all three signals corroborate each other, which increases Google's confidence in the classification. 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
Use hyphens, not underscores or spaces. Hyphens are the only word separator Google reliably treats as a space between keywords.
All lowercase. URLs are case-sensitive on most servers. Mixing cases creates duplicate URL risks and makes filenames harder to type and reference.
3 to 6 keywords maximum. More is not better. A filename crammed with ten keywords reads as spam to crawlers and is unwieldy in URLs. Pick the most descriptive terms and stop.
Include: product type + material or color + key feature. These three attributes cover most product categories and map directly to how shoppers search.
Keep it under 60 characters. Long filenames get truncated in some interfaces and become unwieldy in URLs. Most good product filenames land between 30 and 55 characters.
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 preserves your filename on upload. The filename you choose becomes part of the product image URL directly, which means it feeds into both Google Images rankings and the URL signal for standard web search.
The important constraint: changing a filename on Shopify after upload requires deleting the image and re-uploading it with the new name. The old URL disappears, and if it was indexed, that indexed URL returns a 404. Fix filenames before uploading. Getting it right once is far less work than cleaning it up later.
See the Shopify SEO guide for the full picture of how filenames fit into the broader Shopify optimization checklist.
Etsy
Etsy renames your files on upload. Whatever name you give the file, Etsy replaces it with its own internal identifier. Your handmade-ceramic-vase-blue-rustic.jpg becomes something like il_1140xN.3456789_abcd.jpg in Etsy's CDN URL.
This means filenames do not help your Etsy internal search rankings. However, Google Images crawls Etsy listings too. When Google indexes your listing images, the filename you uploaded may still appear in some indexing contexts, and the surrounding page signals — which your filename helped you think through — still matter. More practically, renaming before upload forces you to think clearly about your product keywords, which then flows into your listing title, tags, and alt text.
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
WooCommerce, like Shopify, keeps your filename. WordPress stores the image with whatever name you uploaded, and that name becomes the slug in the WordPress media URL. This gives you full control — and full responsibility.
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.
The WooCommerce image SEO guide covers filenames alongside the rest of the WooCommerce optimization stack — alt text, compression, lazy loading, and structured data.
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
- Navigate to the image in File Explorer.
- Click the file once to select it.
- Press F2 (or right-click → Rename).
- Type the new SEO-friendly filename, keeping the extension (
.jpg,.webp,.png). - Press Enter.
Manual Renaming on Mac
- Click the filename in Finder once to select the file.
- Press Enter to activate renaming.
- Type the new name, keeping the extension.
- 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:
- Open the product in your Shopify admin.
- Go to the Media section.
- Click the image and download it to your computer.
- Rename the downloaded file using the SEO-friendly formula above.
- Delete the old image from the product's media in Shopify.
- Upload the renamed image.
- 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:
- Go to Media Library in WordPress.
- Click the image to open its details.
- Note the current file URL and which posts use it.
- Download the image.
- Rename it locally with the correct SEO filename.
- Delete the old media item (WordPress will warn you if posts use it).
- Upload the renamed file.
- 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, keyword-rich product titles (Amazon's primary ranking factor).
- High-quality images that earn clicks and engagement in Google Images results.
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's AI analyzes the product name, category, platform context, and target keywords you provide, then generates a filename that follows the exact SEO formula above — hyphens, lowercase, product type first, variant last. The generated filename matches what a skilled SEO practitioner would write by hand, applied consistently across every image in your upload batch.
The filename is not just written to the file on disk. ImgSEO also embeds it in the EXIF metadata title field, so the signal travels with the image even when a platform like Amazon or Etsy replaces the filename in their CDN. The metadata layer provides an additional Google indexing signal that persists regardless of what happens to the URL.
Step by Step
- Go to ImgSEO and upload your product images.
- Enter the product name and select your selling platform (Shopify, Etsy, WooCommerce, Amazon).
- The AI analyzes your input and generates an optimized filename for each image.
- Review the generated names — you can adjust any of them before downloading.
- Download the processed images with their new SEO-friendly filenames already applied.
- Upload directly to your store.
The entire batch — images, filenames, alt text suggestions, and embedded metadata — is ready in seconds rather than hours.
Filename SEO Checklist
Before uploading any product image, run through this list:
- ✅ Use hyphens between every word — no underscores, no spaces
- ✅ All lowercase letters throughout
- ✅ Primary keyword (product type) appears at the start of the filename
- ✅ Color, material, or key feature included after the primary keyword
- ✅ Filename is under 60 characters
- ✅ Correct file extension used —
.jpg,.webp, or.png - ✅ No special characters (
!,@,#,$,%,&,*, etc.) - ✅ No duplicate filenames within the same store (append a variant if needed)
- ✅ Renamed before uploading to avoid re-upload work later
- ✅ 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? Yes, but they are one signal among many. A good filename combined with good alt text and relevant page content is meaningfully better than any one of those signals alone. Think of a filename as a free, easy win — not a magic ranking bullet.
Should I use hyphens or underscores in image filenames?
Always hyphens. Google treats hyphens as word separators, so leather-wallet.jpg is read as two keywords: "leather" and "wallet". Underscores are not recognized as word separators, so leather_wallet.jpg is read as one unrecognized token.
How long should an image filename be? Aim for 30 to 55 characters including the extension. Long enough to include 3 to 6 meaningful keywords; short enough to stay readable and not look spammy in a URL.
Does Etsy use image filenames for SEO? Etsy replaces your filename with its own internal identifier on upload, so filenames do not affect Etsy's internal search algorithm. They can still marginally influence how Google Images indexes the listing, but the higher-value Etsy SEO work is in listing titles and tags.
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? If your best-selling or highest-traffic products have bad filenames and you are on a platform that preserves filenames (Shopify, WooCommerce), yes — the re-upload process is worth it for those pages. For lower-traffic products, prioritize new uploads and fix existing ones over time.
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
IMG_4521.jpg is costing you ranking positions on Google Images. The fix takes three seconds per image and requires no technical knowledge — just the right formula applied before you hit upload.
The formula is: product type + material or color + key feature, separated by hyphens, all lowercase, under 60 characters. Apply it to every product image before uploading to Shopify or WooCommerce, and you capture a ranking signal most competitors are ignoring.
Pair good filenames with descriptive alt text and embedded metadata, and the compound effect is real. Each signal reinforces the others, and Google's confidence in your image's relevance increases with every consistent data point it reads. 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 automates the entire process — filenames, alt text, and metadata — so you can fix hundreds of product images in the time it would take to rename ten by hand.
The opportunity is straightforward. Name your images like a search result you want to rank for, and Google will treat them like one.

