Skip to content

Plain guides to WCAG, alt text and screen readers

Contrast checker

Alt text

Alt Text SEO: Writing Image Alt Text That Ranks and Helps

How search engines use image alt text and how to write it for people and rankings

  • SEO
  • Image search
  • Best practice
  • Checked 1 Nov 2026

For alt text SEO, the short answer is that search engines read the alt attribute to work out what an image shows, so a clear, accurate description helps the image appear in image search and gives the page a little extra context. The same text is what screen reader users hear, which is why the best SEO alt text is simply the best accessibility alt text, with the page's topic in mind.

Google says this directly in its image guidance: it uses alt text together with computer vision and the content of the page to understand images. Alt text is not a lever for stuffing keywords, and trying to use it that way can count as spam.

Quick facts

  • What it does for search

    Helps search engines understand the image and the page
  • Biggest effect

    Image search results, and context for the surrounding page
  • Linked images

    Alt text works like anchor text for the link
  • Keywords

    Fine when they describe the image; stuffing is spam
  • Works with

    Descriptive file names, captions and nearby text
  • Official source

    Google Search Central image SEO guidance

What alt text means in SEO

In SEO, the alt attribute ranks among the few direct text signals attached to an image. A crawler cannot be sure what a photo shows from pixels alone, so it combines several clues: the alt attribute, the file name, the caption, the text around the image and the page title. Alt text is the clue written specifically to describe the image.

Its role is to support relevance, not to override it. A page about trail running shoes with an image whose alt says "Lightweight trail running shoe with deep lugs, side view" sends a consistent message. An image on the same page with alt text listing ten shoe brands sends a confusing, spammy one.

New to the attribute? Start with what alt text is.

How Google uses image alt text

Google Search Central has an image SEO page that is the official reference. Its advice on alt text comes down to a few points:

  • Google uses alt text, along with computer vision and page content, to understand the subject of an image.
  • Alt text should be useful and rich in information, and use keywords appropriately in the context of the page.
  • Filling alt attributes with keywords (keyword stuffing) gives a bad user experience and may cause the site to be seen as spam.
  • When an image is a link, its alt text is treated as the anchor text of that link.
  • Descriptive file names and nearby text help as well; generic names such as IMG00023.JPG do not.

Search engines change how they weigh signals over time. The principle behind the guidance has stayed steady: describe the image accurately for people.

Does alt text help SEO?

Yes, but in a specific way. Here is a fair picture of what to expect:

Where alt text has an effect on search
AreaEffect of good alt text
Image searchStrong. It is one of the main ways an image is matched to a search.
Understanding the pageHelpful context, especially when images carry information the text does not repeat.
Linked imagesGives the link target relevant anchor text, like the words of a text link.
Web search rankings for the pageA small supporting signal, not a shortcut. Content quality matters far more.
Accessibility and legal riskLarge. Missing alt text is a WCAG Level A failure and a common audit finding.

So is alt text important for SEO? It is worth doing on every meaningful image, mainly because it costs little, helps image search and is required for accessibility anyway. It will not rescue a weak page.

Write for people first, then check the keywords

The order matters. If you start from the keyword, you tend to describe the page; if you start from the image, you describe the image, which is what both users and crawlers want.

  1. Look at the image and ask what a person would miss if it disappeared from this page.
  2. Write that in plain words, in one short sentence.
  3. Compare with the page's main topic. If the image truly shows it, use the natural phrase for it once.
  4. Delete any keyword the image does not show, every repeat, and location or brand lists bolted on the end.
  5. Read it aloud. If it sounds like an advert, rewrite it.

For the full writing method, see how to write alt text.

Image alt text SEO examples

Three versions for each image: empty of meaning, stuffed, and balanced.

Alt text for search: weak, stuffed and balanced
Image and pageToo thinStuffedBalanced
Houseboat photo on a backwater tour page"Boat""Kerala houseboat tour, best houseboat Kerala, cheap houseboat booking""Thatched houseboat on a palm lined backwater at sunset"
Product shot on a store page for a steel water bottle"Product""Water bottle steel water bottle insulated bottle buy bottle online""Insulated steel water bottle, 750 ml, in matte black"
Step photo in a recipe for masala dosa"Step 3""Masala dosa recipe easy dosa recipe dosa""Spreading dosa batter in a thin circle on a hot griddle"
Before and after photo on a lawn care page"Lawn""Lawn care, lawn service, lawn treatment, lawn experts""The same lawn before treatment, patchy and brown, and after, thick and green"

The balanced versions still contain words people search for, such as "houseboat", "insulated steel water bottle" and "dosa batter", because the images genuinely show those things. More cases by image type are on the alt text examples page.

Keyword stuffing and other alt text SEO mistakes

Keyword stuffing in alt text hurts the very listeners who depend on it. A screen reader user hears every word of a long keyword list, every time, with no way to skip just that part.

  • Same alt on every image. A template that puts the page title in every alt attribute tells crawlers and users nothing about each image.
  • Alt text on decorative images. Adding keywords to spacers and background shapes adds noise. Decorative images should have empty alt.
  • Text baked into images. Headlines and offers inside a picture are hard for search engines and users to read. Use real HTML text and keep the image for the visual.
  • Images loaded in ways crawlers miss. CSS background images have no alt attribute at all, so content images should be real img elements.
  • Using the title attribute instead. The title attribute is not a replacement for alt, and most users never see it.

File names, captions and surrounding text

Alt text works best as part of a set. Search engines read the whole neighbourhood of an image:

  • File name: steel-water-bottle-black.jpg beats DSC_4482.jpg. Use lowercase words separated by hyphens.
  • Caption: visible text under an image is read by everyone, so it is often the most valuable text near the image. Do not copy it into the alt word for word; let each add something.
  • Nearby text and headings: place images beside the paragraph that discusses them, not in a random gallery far away.
  • Page title and structure: an image is easier to rank when the page as a whole is clearly about the same subject.

When you upload a batch of photos, rename the files first. It takes a minute and saves you from fixing hundreds of generic names later.

Linked images and logos

If a link contains nothing but an image, the alt text becomes the link's text, both for screen readers and for search engines. That means the alt should describe where the link goes, not what the picture looks like.

  • A logo linking to the home page: "Riverside Bakery home page", not "Blue circle logo".
  • A product thumbnail linking to the product: the product name, such as "Insulated steel water bottle, matte black".
  • A banner linking to a sale: the words on the banner, such as "Monsoon sale: 30 percent off rain jackets".

Check linked images across a page with our alt text checker, which flags empty alt inside links. If you need a first draft, the alt text generator has a mode for links and buttons.

Questions people ask

Does alt text help SEO?

Yes, mostly through image search and by giving search engines context about the page. Google says it uses alt text along with page content to understand images. It is a supporting signal, not a way to rank a weak page.

What is image alt text in SEO?

It is the alt attribute on an image, read by search engines to understand what the image shows. In SEO it helps images appear in image search and, for linked images, acts as the link's anchor text.

Should I put keywords in alt text?

Only when they truly describe the image. If a photo shows an insulated steel water bottle on a page about that bottle, saying so is natural. Adding words the image does not show, or repeating them, is keyword stuffing.

How long should SEO alt text be?

Short, usually one sentence. A common rule of thumb is roughly 125 characters. Long descriptions do not earn extra credit in search and are tiring for screen reader users.

Where is Google's official guidance on image alt text?

It is on the image SEO best practices page in Google Search Central, linked above. It covers alt text, file names, image placement and formats.

Do decorative images need alt text for SEO?

No. Decorative images should carry an alt attribute with nothing in it, which tells assistive software to pass over them. Adding keywords to decorative images adds noise and can look like stuffing.