Skip to content
Searchpedia SEO field notes Callum Bennett Callum

Writing desk

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.

Beginner3 min readUpdated 2026-07-27Notes by Callum Bennett

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.jpg or screenshot-2024-01-15.png. Change it to something like red-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, not dog-training-tips.jpg.

The path I'd take

  1. Before uploading, rename the file on your computer. Use descriptive words separated by hyphens.
  2. 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.jpg is fine. Don't force it.
  3. Avoid generic names like product-1.jpg, image.jpg, or photo.jpg. They tell search engines nothing.
  4. Keep it under 50 characters if possible. Long filenames get truncated in some systems and look messy.
  5. Use only ASCII characters. No accented letters, no spaces, no special characters like & or %.
  6. 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.jpg looks 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.jpg tells 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

Notes from Callum Bennett.