Free, independent guides since 2010

SEO

Image SEO: getting found in image search and beyond

How to optimise images for search: file names, alt text, captions and context, formats and file size, responsive images, image sitemaps, structured data and original images.

<guide section="SEO" type="article" read="1 min"/>

Images bring visitors through image search, make results more attractive and help pages rank. Our classic articles on the alt attribute and small file sizes remain the foundation; this page completes the picture.

Help search engines understand

ElementGood practice
File namebike-repair-ghent-workshop.jpg, not IMG_4821.jpg
Alt textDescribes the image in context, for people who cannot see it
CaptionVisible text below the image; often read more than body text
Surrounding textPlace images next to relevant text
Page title and headingsGive context to all images on the page

Technical optimisation

  • Use the <img> element – CSS background images are not indexed as content.
  • Correct size and compression; modern formats where possible (see responsive images).
  • Width and height attributes to prevent layout shifts.
  • Lazy loading for images below the fold, not for the main image.
  • Include important images in your XML sitemap (our sitemap does this).

Structured data

Product, Recipe, Article and other structured data types include image properties. Use high-resolution images in several aspect ratios for articles and products.

Originality wins

A real photo of your workshop, product or result tells search engines and visitors more than a stock or AI image. See AI images for your website for when generated images are fine.

Frequently asked questions

Does alt text help SEO?

Yes, it helps search engines understand an image and is essential for accessibility. Write it for people first; keyword stuffing in alt text does not help.

Do AI-generated images rank in image search?

They can, but original photos with real context tend to be more useful and trustworthy. For shops, AI product images must carry metadata identifying them as AI-generated in Google Merchant Center.