Image File Names for SEO: The Underrated Ranking Lever (2026)

By the ImageSEO Team. April 2026. ~6 min read.

Quick story. We recently audited a beautifully designed e-commerce site selling handmade ceramics. 240 product photos. Stunning visuals. Top-3 product photography on the entire site.

Every single image was named DSC_0421.jpg through DSC_0660.jpg.

That site got 14 visits a month from Google Images. Their direct competitor — same product category, same DR, but with descriptive file names like handmade-ceramic-mug-blue-glaze-12oz.jpg — got 8,300.

This is the post that fixes that.

Why image file names matter for SEO

The image file name is the URL path Google uses to crawl, index, and store your image. It’s also one of the few signals Google has about what’s in the image before it ever loads the bytes.

The file name is part of every signal Google uses for image SEO:

  • It appears in the image URL (high weight)
  • It’s matched against the page content for relevance
  • It’s exposed in img src, srcset, sitemaps, and Open Graph tags
  • It’s the fallback “alt text” for crawlers when alt text is missing

If your file names are gibberish, you’re handing Google a confused signal at the very first crawl step. If they’re descriptive, you’re stacking the deck before alt text even enters the picture.

The 5 rules of perfect image file names

  1. Lowercase only. Some servers are case-sensitive — Photo.jpg and photo.jpg are different files. Stick to lowercase to avoid 404s.
  2. Hyphens, not underscores or spaces. Google parses hyphens as word separators. Underscores get treated as one word. Spaces get URL-encoded as %20, which is ugly and crawlable.
  3. Descriptive, not keyword-stuffed. red-honda-cb650r-brooklyn.jpg beats motorcycle-bike-honda-red-best-seo-2026.jpg every single time.
  4. Concise. Aim for under 60 characters. Google truncates longer URLs in image search results.
  5. One image per file name. If a product has 5 angles, use blue-vase-1-front.jpg, blue-vase-2-side.jpg, etc. Don’t reuse names.

Examples by industry

  • E-commerce: handmade-ceramic-mug-blue-glaze-12oz.jpg
  • Real estate: 3br-victorian-brooklyn-park-slope-exterior.jpg
  • Recipe blog: maple-syrup-pancakes-stack-with-butter.jpg
  • SaaS marketing: imageseo-dashboard-keyword-performance.png
  • Photography portfolio: brooklyn-bridge-sunset-long-exposure-2026.jpg
  • Travel blog: kyoto-fushimi-inari-torii-gates-october.jpg

How to fix image file names in WordPress (without breaking everything)

Here’s the catch: if you rename an image that’s already published, every page using it breaks. WordPress doesn’t auto-rewrite the references. You have a few options:

  • For new uploads: Rename the file BEFORE you upload it. This is by far the easiest path. Make it a habit.
  • For existing files: Use a plugin that renames the file AND updates every reference site-wide in one operation. (We built this into ImageSEO because doing it manually is brutal.)
  • For migrations: Run a regex find-and-replace on the database export, then re-import. Risky but sometimes the only option.

Whatever you do: set up 301 redirects from the old image URL to the new one. Image URLs get linked from external sites and saved in browser caches. Breaking them means losing referral traffic.

What about keywords?

The big question: should you stuff your target keyword into every file name?

No. But you should naturally describe the image — and if your image is genuinely about a topic, your description will contain the relevant keywords organically.

If you’re writing about image for seo and you have a screenshot of a Google Image Search result, name it google-image-search-results.png, not image-for-seo-best-image-seo-tips.png. The first describes the image. The second describes the page. Google will figure out the rest.

FAQ

Do hyphens or underscores matter for image SEO?

Yes. Google parses hyphens (-) as word separators in URLs. Underscores (_) are treated as part of one word. red-honda-cb650r.jpg reads to Google as “red honda cb650r”. red_honda_cb650r.jpg reads as “redhondacb650r”. Always use hyphens.

How long should image file names be?

Aim for under 60 characters. Google truncates longer URLs in image search results, and shorter URLs are easier to share and remember.

Should the image file name match the alt text?

They should describe the same thing, but they don’t need to be identical. The file name is a URL slug (short, hyphenated, descriptive). The alt text is a sentence (longer, natural language). Keep them aligned in meaning.

Can I include the date in the file name?

Only if the date is relevant (e.g., a news photo from a specific event). Don’t include “2026” just for SEO — it’ll look stale by 2027.

For more on the broader topic, check our complete image SEO guide for 2026 or our 30 alt tag examples by industry.

Our SEO Tool will grow your traffic

Why have you neglected images search engine optimization for so long ?

Try it for free
\n