Reference guide · images · Published 2026-08-15 · 3 min read

Image SEO: alt text, filenames and context

Improve image SEO with descriptive alt text, readable filenames, captions and context, plus the markup that makes images indexable.

What affects image SEO

An image enters search results when the engine can understand what it shows and where it lives. The strongest signals are text:

  1. The page is indexable and the page content matches the image.
  2. The image has descriptive alt text.
  3. The filename says something concrete.
  4. The surrounding caption and heading repeat the subject.
  5. The image is registered in an image sitemap (see the image sitemap reference) so discovery is fast.

A common misconception is that keywords in image names carry a direct rank boost. Their effect is through relevance: an engine matching a query to chunky-knit-wool-jumper is more confident than to IMG_2041.jpg. The same logic applies to alt text.

Alt text: write for the user first

Alt text is the most important single factor. Its primary purpose is accessibility: a screen reader converts it to speech, and a broken image displays it instead of a blank. It also makes the image interpretable for the engine. Rules that cover both:

  1. Describe what the image shows in plain words.
  2. Never spam keywords into alt. If the page already says "bespoke site design", repeating it adds no search value and reads badly to a reader.
  3. Leave alt="" for decorative images; they should not claim content.
  4. Do not duplicate the surrounding paragraph verbatim.

Before and after:

Weak altStrong alt
alt="image"alt="Coastal loggerhead turtle on a SA beach"
alt="d7dh3-fgga"alt="Bespoke web design mockup for a SA roofer"
alt="Website"alt="Responsive homepage on a phone and laptop"
alt="A person"alt="A baker flouring a proving loaf on a wooden bench"

Filenames

Give every file a concrete name before upload:

Context and supporting markup

The page frame matters as much as the tag:

For responsive images, the same image with srcset and sizes gives the engine one URL to index while mobile visitors get a small file. See responsive images with srcset. The exact set of attributes does not boost rank, but consistent markup avoids duplicate URLs for tiny crops.

Image sitemaps

For large image sets or hard-to-crawl galleries, an image sitemap tells the engine directly which images exist and where their landing pages are. It works alongside on-page text, not instead of it. Put the pattern in place before launch and keep it updated when the gallery changes.

Prevention

Image SEO is mostly hygiene, so prevent the costly fixes: standardise filename naming in the CMS, enforce a required alt field, and treat the caption as part of the content. A monthly crawl report that lists images without alt is a reasonable check. For image discovery that depends on the page being crawlable, keep the gallery pages indexable rather than folding everything behind a scripted load.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services