Images can bring steady traffic from Google Images and Lens — for product pages, recipes, real estate, jewellery and travel especially. But search engines understand images mainly through the words around them. This image SEO guide covers the parts you control: alt text, file names, slugs, captions and page context.
How search engines understand an image
Google uses several signals together: the page title and headings, the text near the image, the alt attribute, the file name, captions and structured data. Computer vision helps, but context still decides which searches your image appears for. That is why the same photo can rank on one page and not on another.
Alt text: describe, don't stuff
Alt text is read aloud by screen readers and shown when an image fails to load. Write it for a person who cannot see the image:
| Bad | Better |
|---|---|
alt="" on a product photo | alt="22 carat gold temple necklace with ruby stones" |
alt="necklace gold necklace buy gold necklace online" | alt="Model wearing a lightweight gold necklace for daily wear" |
alt="image1" | alt="3 BHK row house exterior at dusk" |
- Keep it to one short sentence — usually 8–15 words.
- Include the key subject and, when natural, the keyword the page targets.
- Decorative images (dividers, background shapes) should use empty alt:
alt="". - Never repeat the same alt text on every image.
File names and slugs
Google notes that file names can give light clues about an image's subject. Rename before uploading:
IMG_20260812_1042.jpg→gold-jhumka-earrings-22k.jpg- Use lowercase and hyphens, not spaces or underscores.
- Keep it short: 3–6 meaningful words.
image_name column must match the uploaded file name exactly. In that workflow, keep the original filename and put SEO wording in the title, keywords and slug columns instead.Page context matters most
- Place important images near related headings and text.
- Use captions where people actually read them (galleries, articles, product details).
- Make sure the page itself targets a clear topic — an image cannot rank for something the page is not about.
Technical basics
- Use real
<img>elements for important images, not CSS backgrounds, so they can be indexed. - Modern formats: WebP or AVIF with sensible compression.
- Set width and height to prevent layout shift.
- Lazy-load images below the fold with
loading="lazy", but not the main hero image. - Responsive images with
srcsetso phones get smaller files. - Image sitemap or include images in your normal sitemap for large galleries.
- Structured data (Product, Recipe, Article) helps rich results show your images.
Writing alt text for hundreds of images
An online store or stock library can have thousands of images. The AI Image SEO Metadata Generator drafts alt text, SEO titles, slugs and meta descriptions for each image in a batch and exports a CSV you can import into your CMS. Always review AI output — but editing a good draft is far faster than writing from scratch.
Quick answers
How long should alt text be?
Keep it short and descriptive — usually one sentence, about 8–15 words. Describe what is in the image in the context of the page.
Do file names matter for image SEO?
Yes, a little. Google says file names can give light clues about the image subject, so a descriptive name beats IMG_0042.jpg.