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
| Element | Good practice |
|---|---|
| File name | bike-repair-ghent-workshop.jpg, not IMG_4821.jpg |
| Alt text | Describes the image in context, for people who cannot see it |
| Caption | Visible text below the image; often read more than body text |
| Surrounding text | Place images next to relevant text |
| Page title and headings | Give 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.