Skip to content
SeoWiki

The SEO encyclopedia

On-Page SEO

Image File Name SEO Moz

Image file name SEO is the practice of naming image files descriptively and consistently so search engines and users can understand the image content more easily.

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

Key takeaways

  • Descriptive filenames help search engines understand image content.
  • Use hyphens, lowercase, and 3–5 words for best results.
  • Rename files before uploading to avoid broken links.
  • Combine with alt text and page context for stronger image SEO.

A descriptive filename helps both search engines and users understand what the image shows before they even see it.

Example: Good vs. Bad Image File Names

  • Bad: IMG_1234.jpg – generic camera name, no description.
  • Good: red-apple-on-wooden-table.jpg – describes the image clearly.
  • Bad: image1.png – meaningless.
  • Good: seo-moz-logo-2025.png – includes brand and year.
  • Bad: best-seo-tips-for-beginners-2025-guide.jpg – too long, looks like a title.
  • Good: seo-tips-beginners.jpg – short, descriptive, natural.

Quick Start: 5 Steps to Optimize Image File Names

  1. Describe the image first – What is the main subject? Example: black-cat-sleeping.
  2. Add a relevant keyword naturally – Only if it fits. Example: black-cat-sleeping-pet-care.
  3. Use hyphens between words – Not underscores or spaces. Example: black-cat-sleeping.jpg.
  4. Keep it short – Aim for 3–5 words. Avoid full sentences.
  5. Use lowercase letters – Prevents case-sensitivity issues on some servers.

How to Judge If Your Image File Names Are Optimized

  • Descriptive? Does the filename tell you what the image shows without seeing it?
  • Short? Is it under 5 words? (3–5 is ideal)
  • Hyphenated? Are words separated by hyphens, not underscores or spaces?
  • Lowercase? Are all letters lowercase?
  • No special characters? Avoid symbols like &, %, #, or spaces.
  • Renamed before upload? Did you rename the file before adding it to the site?

Common Mistakes to Avoid

  • Using generic names like DSC0001.jpg or image1.png.
  • Keyword stuffing – e.g., best-seo-tips-for-beginners-2025-guide.jpg.
  • Using underscores or spaces – e.g., best_seo_tips.jpg or best seo tips.jpg.
  • Overly long filenames that look like titles or sentences.
  • Renaming after upload – can cause broken links unless all references are updated.

Next step

FAQ

Do image file names affect SEO?

Yes, but indirectly. Descriptive filenames help search engines understand image content and can improve image search visibility when combined with alt text and page context.

Should I use underscores or hyphens in image file names?

Use hyphens. Search engines treat hyphens as word separators, while underscores may cause words to be concatenated.

How long should an image file name be?

Keep it short but descriptive—typically 3–5 words. Avoid long sentences or keyword stuffing.

Can I rename images after uploading?

It's best to rename before uploading to avoid broken links and extra redirects. If you must rename after, update all references.

Related topics

Sources

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