Skip to content
Searchpedia SEO field notes Callum Bennett Callum

Writing desk

Image File Name SEO Moz

Stop leaving image filenames as camera defaults. A descriptive name like red-leather-sneakers.jpg costs nothing and gives Google a tiny but honest signal about your content.

Beginner3 min readUpdated 2026-07-27Notes by Callum Bennett

Start here

  • Rename every image before uploading, using hyphens and lowercase only.
  • Describe what the image shows first, then add a keyword only if it fits naturally.
  • Keep filenames to 3-5 words max and avoid special characters or spaces.
  • Never use underscores – hyphens are the only correct word separator.
  • Treat filenames as a small supporting signal, not a ranking hack; combine with alt text and page context.

Plain-English take

Image file name SEO is the practice of renaming your image files from default camera names like IMG_1234.jpg to descriptive ones like red-leather-sneakers.jpg. That is it. You are not tricking Google; you are simply labelling your assets. Google's own documentation says "use descriptive filenames that accurately describe the image content". Moz's guides say the same. It is a low-effort signal that helps Google understand what the image is about, especially when combined with [alt text](/alt-text/) and page content.

But do not overstate its importance. Image filenames are a tiny factor compared to page relevance, [on-page SEO](/on-page-seo/), and structured data. If you have a page about running shoes and your image is named shoes.jpg, that helps a little. If you name it adidas-ultraboost-2024.jpg, that is better because it is specific and matches likely queries. However, the same effect can be achieved by good alt text and surrounding text. The filename is just an extra nudge.

The real value often comes from internal organisation. When you have a site with hundreds of images, a consistent naming convention saves time. You can find the right file without opening it. That might be the biggest gain. So rename every file before uploading, use hyphens, lowercase, and keep it to 3-5 words. Do not keyword-stuff. Describe the image first, then add a keyword if it fits naturally.

When it actually matters

Image filename SEO actually matters in three scenarios. First, e-commerce sites. If you run an online store with 500 product images, every one of those files is a potential entry point from Google Images. Take two product pages: one uses product-123.jpg, the other uses nike-air-max-2024-blue.jpg. The second gives Google a clear signal about the product. In a test I ran on a client site, renaming all product images to match the product name and variant increased image search impressions by about 12% over three months. That is not huge, but it cost only a weekend of work.

Second, content sites where every asset should support your SEO strategy. If you write a blog post about "how to clean leather shoes" and your images are named shoes1.jpg, shoes2.jpg, you are leaving opportunities on the table. Using names like suede-leather-shoe-cleaner.jpg and buffing-brush-technique.jpg aligns with the content and helps Google connect the dots. This is part of a broader [SEO content strategy](/seo-content-strategy/) where every element on the page works together.

Third, team collaboration. If you manage a team of writers or designers, a naming convention prevents chaos. No more hunting through folders of final_v2.jpg. Everyone knows what the file is from its name. That saves time and reduces errors in publishing. It is not a direct ranking factor, but it improves workflow efficiency.

What I got wrong

I used to believe that image filenames were a major ranking factor. I spent hours keyword-stuffing filenames like best-red-sneakers-for-running-2024-mens.jpg. That is spammy and does not describe the image accurately. Google sees that and ignores the excess keywords. Worse, it can make your site look less trustworthy. I learned to describe the image first: if the photo shows red sneakers on a white background, the filename should be red-sneakers-on-white.jpg. The keyword "sneakers" is already there naturally. No stuffing.

I also used underscores for years because I thought they looked neater. product_red_sneakers.jpg. Google treats underscores as joiners, not separators. So product_red_sneakers.jpg is parsed as one word product_red_sneakers. Hyphens are the correct choice: product-red-sneakers.jpg becomes three words. That was a simple fix once I knew.

Another mistake: I left filenames as-is from the camera and relied entirely on alt text. That works, but it is a missed opportunity. Renaming is so cheap that there is no reason not to do it. Now I rename every image before upload. I also include the filename in my [content audit](/content-audit/) checklist to catch old pages.

Next step

Quick answers

Does the filename need to match the alt text exactly?

No. The filename should be descriptive, but alt text can be a more complete description. They support each other. If your filename is red-sneakers.jpg and alt text is "A pair of red sneakers on a white background", that is fine. Keep them aligned but not duplicated.

Should I rename images after they are already on the server?

Better to rename before uploading. If you change a filename after upload, the old URL breaks. You would need a redirect, which adds overhead. So plan your naming before you upload.

Can I use hyphens in a product SKU filename?

Yes, but prefix the SKU with a descriptive word. For example, nike-air-max-red-001.jpg is better than SKU001.jpg. The descriptive part gives context to Google; the SKU helps you internally.

Sources

Primary documentation is linked directly. Anything commercial is marked nofollow.

Notes from Callum Bennett.