Image Filename SEO
An image filename SEO tactic is the practice of naming image files with short, descriptive, hyphen-separated words so search engines and users can better understand the image content.
What I’d do first
- Rename every image before upload with a short, descriptive, hyphen-separated filename.
- Avoid generic names like IMG_4837.jpg or product-1.jpg.
- Keep filenames lowercase and under 50 characters.
- Include a keyword only if it naturally matches the image content.
- Pair descriptive filenames with strong alt text for best results.
What I'd do first
- Rename before upload. Never leave a filename as
IMG_4837.jpgorscreenshot-2024-01-15.png. Change it to something likered-leather-sofa-living-room.jpg. - Use hyphens between words. Hyphens are the standard separator. Underscores or spaces can cause issues across systems.
- Keep it short but descriptive. Aim for 3–5 words that describe what the image actually shows. Not the page title, not a keyword salad.
- Stick to lowercase. Avoid uppercase letters to prevent case-sensitivity problems on different servers.
- Match the image content. If the photo shows a golden retriever puppy on grass, name it
golden-retriever-puppy-grass.jpg, notdog-training-tips.jpg.
The path I'd take
- Before uploading, rename the file on your computer. Use descriptive words separated by hyphens.
- Check for keywords naturally. If the image supports a page about 'best hiking boots,' and the photo shows a pair of boots on a trail,
hiking-boots-on-trail.jpgis fine. Don't force it. - Avoid generic names like
product-1.jpg,image.jpg, orphoto.jpg. They tell search engines nothing. - Keep it under 50 characters if possible. Long filenames get truncated in some systems and look messy.
- Use only ASCII characters. No accented letters, no spaces, no special characters like & or %.
- Test your filenames by checking a few pages in Google Search Console's image report to see if your images are appearing in search results.
Watch-outs
- Don't keyword-stuff. A filename like
best-cheap-hiking-boots-for-men-2024.jpglooks spammy and doesn't describe the image. Keep it natural. - Don't use underscores. Google treats underscores as joiners, not separators. Hyphens are the way to go.
- Don't name files after the page URL.
seo-tips-page-3.jpgtells you nothing about the image content. - Don't ignore alt text. Filenames are a supporting signal, but alt text is the primary way search engines understand images. Always pair them.
What I got wrong
I used to think image filenames were a major ranking factor. They're not. Google's own documentation says they're a 'supporting signal.' I also thought I could stuff keywords into filenames and get a boost — but that just looks spammy and can hurt user trust. And I used underscores for years because I thought they were fine. They're not. Hyphens are the standard. Now I treat filenames as a small, easy win that works best when combined with good alt text, compressed images, and a solid page structure.
Next step
Quick answers
What is image optimization?
Image optimization is the process of delivering high-quality images in the right format, size, and resolution while minimizing file size to improve page load speed and user experience. It includes naming files descriptively, compressing images, using responsive images, and adding alt text.
What are image SEO best practices?
- Image SEO best practices include using descriptive filenames, writing informative alt text, compressing images for fast loading, using responsive images, adding structured data (e.g.
- ImageObject), and submitting an image sitemap to help search engines discover your images.
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 special characters.
If you liked this
Sources
- Google Search Central — Image SEO Best Practices — Primary source for Google's guidance on descriptive filenames, image relevance, and supporting image SEO practices.
- Google Search Central — Google Images documentation — Confirms Google's recommendation to use short, descriptive filenames and avoid generic names.
- Google Search Central — Create great titles and snippets — Useful companion guidance for on-page context, since filenames work best with strong surrounding page signals.
Notes from Callum Bennett.