Freelance website & app developer in Lucknow · 250+ websites since 2019 Free consultation →

Image SEO Guide: Alt Text, File Names, Slugs & Captions

Alt text that helps people and search engines, file names that make sense, and the page context Google actually uses.

AI Image SEO NewAI titles, keywords and alt text for images, exported as CSV.

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:

BadBetter
alt="" on a product photoalt="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.
Exception — stock agencies: when submitting a CSV to a stock site, the 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 srcset so 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.

Developer: Nityanand

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.

Related guides

Stock Image Metadata: How to Write Titles & Keywords That SellThe title formula, keyword order and search-intent thinking that help stock photos get found and licensed.Bulk Image Metadata with Gemini AI: A CSV Workflow for 100+ ImagesHow the 2nd Code Image SEO engine processes images one by one, rotates API keys and keeps filenames exact.

Enquiry

Want a website or app for your business?

We build every type of website and application — business websites, online stores, booking systems, apps and custom software — at good, customised rates for your requirement. Fill the enquiry form, or call / WhatsApp us.