Skip to content
SeoWiki

The SEO encyclopedia

On-Page SEO

Image Filename SEO

Image filename SEO is the practice of naming image files with short, descriptive, hyphen-separated words so search engines and users can better understand the image content.

Beginner3 min readUpdated 2026-07-26Reviewed by Lucía Marín

Key takeaways

  • Descriptive filenames improve image search relevance and user understanding.
  • Use hyphens, lowercase, and short phrases.
  • Avoid generic names and keyword stuffing.
  • Filenames work best alongside alt text and page context.

A descriptive filename helps search engines and users quickly identify what an image shows.

Example: Good vs. Bad Filenames

  • Bad: IMG_4837.jpg — generic, no description
  • Bad: product-1.jpg — vague, doesn't describe the image
  • Good: red-leather-wallet.jpg — describes the item and color
  • Good: chocolate-chip-cookie-recipe.jpg — describes content and context

Quick Start: 5 Steps to Name Images for SEO

  1. Describe the image — Write what the image actually shows (e.g., golden-retriever-puppy.jpg).
  2. Use hyphens — Separate words with hyphens, not underscores or spaces.
  3. Keep it short — Aim for 3-5 words; avoid long strings.
  4. Include a keyword naturally — If it fits, add a relevant keyword that matches the image and page topic.
  5. Use lowercase — Save filenames in lowercase to avoid case-sensitivity issues on servers.

How to Judge a Good Filename

  • Descriptive? Does it tell what the image shows?
  • Concise? Is it short (under 50 characters)?
  • Hyphenated? Are words separated by hyphens?
  • Keyword-relevant? Does it include a keyword that naturally matches the image?
  • Lowercase? Is the entire filename lowercase?

Common Mistakes to Avoid

  • Generic namesIMG_4837.jpg, pic.gif, 1.jpg
  • Keyword stuffingbest-cheap-red-running-shoes-for-men-2025.jpg (too long and spammy)
  • Spaces or underscores — Use hyphens instead
  • Mismatched content — Naming a file blue-car.jpg when the image shows a red bicycle

Next step

FAQ

How should I name images for SEO?

Use short, descriptive filenames with hyphens between words. Describe what the image shows, not the page. Avoid generic names like IMG_123.jpg. Include a relevant keyword naturally if it fits. Keep filenames lowercase and avoid spaces or underscores.

Does image filename affect SEO?

Yes, but it is a supporting signal. Descriptive filenames help search engines understand image content and can improve image search relevance, especially when combined with alt text, page context, and other on-page signals.

Related topics

Sources

Reviewed by Lucía Marín, Founding editor.