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.

Key takeaways
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
- Describe the image first – What is the main subject? Example:
black-cat-sleeping. - Add a relevant keyword naturally – Only if it fits. Example:
black-cat-sleeping-pet-care. - Use hyphens between words – Not underscores or spaces. Example:
black-cat-sleeping.jpg. - Keep it short – Aim for 3–5 words. Avoid full sentences.
- 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.jpgorimage1.png. - Keyword stuffing – e.g.,
best-seo-tips-for-beginners-2025-guide.jpg. - Using underscores or spaces – e.g.,
best_seo_tips.jpgorbest 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
- Google Search Central: Image SEO Best Practices — Primary source for Google’s guidance on descriptive filenames, alt text, image sitemaps, responsive images, and supported formats.
- Google Search Central: SEO Starter Guide — Useful supporting guidance for page-level SEO context and how assets should fit the content of the page.
Reviewed by Lucía Marín, Founding editor.