Check 16.02 · Images and multimodal search

Write relevant ALT text without keyword stuffing

Write alt text that describes the image without keyword stuffing, with templates for catalogs and the right field in each CMS.

Priority
Important
Difficulty
Easy
Estimated time
1 h, then at each publication
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Alternative text (the alt attribute) says in words what an image shows. Google presents it as the most important attribute for understanding an image, and it is what a screen reader reads in place of the image. Well written, it serves both at once; stuffed with keywords, it serves neither and may be treated as spam. The task is to set writing rules, fix the images that matter most and avoid mass-generated alt text that repeats from one image to the next.

Why it matters

Google says it combines alt text, computer vision and the page's content to understand the subject of an image. It illustrates the rule with a progression:

Level Adapted example Problem
Bad alt missing No information
Bad alt="puppy puppies puppy for sale labrador puppy cheap puppy puppy food" Stuffing: poor experience, spam risk
Better alt="puppy" Accurate, but vague
Good alt="Dalmatian puppy playing fetch" Describes what the image shows

Alt text plays other useful roles:

  • Anchor text: when the image is a link, Google uses its alt as the link text.
  • Fallback: it is displayed when the image fails to load.
  • Generative engines: systems that read a page's HTML pick up alt text like any other text. Information carried only by an image (a figure on a chart, a reference on a label) only exists for them if it is written somewhere. There is no guarantee of being cited, but information missing from the text cannot be picked up.

Stuffing, on the other hand, degrades the experience of people who use a screen reader, adds nothing to rankings and falls under the practices Google considers spam.

What it improves

  • Google Images and Bing Images A strong signal for understanding the image, along with context and caption.
  • Accessibility WCAG success criterion 1.1.1 (Non-text Content).
  • Internal linking The alt text of a linked image serves as anchor text.
  • Generative engine answers Visual information becomes usable text. Indirect effect, not guaranteed.
  • Page rankings Weak, indirect effect. Alt text mainly helps the image itself get found.

How to check

List images, their alt text and duplicates in the browser console:

const rows = [...document.images].map((img) => ({
  file: (img.currentSrc || img.src).split('/').pop().split('?')[0].slice(0, 40),
  alt: img.hasAttribute('alt') ? img.getAttribute('alt') : '(MISSING)',
  length: (img.getAttribute('alt') || '').length,
}));

const counts = rows.reduce((acc, row) => ({ ...acc, [row.alt]: (acc[row.alt] || 0) + 1 }), {});

console.table(rows.map((row) => ({ ...row, repetitions: counts[row.alt] })));

Warning signs:

  • (MISSING) on an informative image: fix it. An alt="" is correct for a purely decorative image.
  • More than 150 characters: often a list of keywords or a description that belongs in the page text.
  • Repetitions: the same alt on every image of a product page or a gallery.
  • Alt text equal to the file name (IMG_4521) or to an empty word (“image”, “photo”).

Site-wide, Lighthouse (accessibility audit), WAVE or axe DevTools flag images without alt. Screaming Frog lists missing or overly long alt text page by page in its Images tab.

Compliant result: every informative image has its own alt text, which describes what it shows in one sentence, with no mechanical repetition of keywords.

How to implement

Before you start

Writing rules, to share with everyone who publishes:

  1. Describe what the image shows, in its context. The same workshop photo becomes “TIG welding station in the workshop” on a services page and “Thomas, a welder, adjusts the argon flow” in a profile.
  2. One sentence, often under 125 characters. No standard sets a maximum; beyond that, move the detail into a caption or the text.
  3. The keyword only if it truly describes the image. On the page for a cognac leather armchair, “Cognac leather club armchair, three-quarter view” is both descriptive and relevant. Adding “cheap”, “free delivery” or the city describes nothing.
  4. No “image of” or “photo of”. The screen reader already announces that it is an image. Specify the type only if it matters: “Diagram”, “Screenshot”, “Chart”.
  5. Embedded text is copied over. A visual that reads “30% off until March 15” carries that text in its alt.
  6. A linked image describes the destination. A logo that links to the home page: “Atelier Martin, home”.
  7. A decorative image gets alt="", never filler text. See use empty ALT for decorative images (opens in a new tab).
  8. Charts give the conclusion. “Chart: sales doubled between 2024 and 2026”, with the detailed values in a table or the text. See avoid information available only in images or videos (opens in a new tab).

For a catalog, a template avoids repeated text while staying manageable:

Image Template Example
Main view {product} {main attribute}, {view} Cognac leather club armchair, front view
Other view {product}, {detail shown} Club armchair, armrest topstitching detail
Lifestyle shot {product} {context} Cognac club armchair in a living room next to a bookcase
Color variant {product} {color} Black leather club armchair, front view

The template is a starting point: review the main images and fix by hand those the template describes poorly.

Warning: alt text generated automatically by AI describes what it sees, not what matters for your page, and is sometimes wrong (color, material, model). Review it before publishing, especially on product pages and technical diagrams.

WordPress

Versions WordPress 6.4 and later, WooCommerce 9 and 10.

Alt text is entered in two places:

  • Media Library (Media > Library, click the image): “Alternative Text” field. This value is used by default when you insert the image.
  • Block editor: select the Image block, settings panel on the right, “Alternative text” field. The value entered here is specific to that insertion: editing the Media Library later does not update images already inserted.

Featured images and theme images use the Media Library alt text. In a template, do not overwrite the alt with the post title:

echo wp_get_attachment_image($attachment_id, 'large');

This function uses the saved alt text. If you need to force it, pass it explicitly: wp_get_attachment_image($attachment_id, 'large', false, ['alt' => $alt]).

With WooCommerce, enter alt text for each image in the product gallery in the Media Library: otherwise, many themes use the product name for every image.

Shopify

Versions Shopify admin and Online Store 2.0 themes, all plans, November 2026.

In Products, open the product, click an image in the “Media” section, then “Add alt text”. Shopify recommends staying under 125 characters.

In the theme, the image_tag filter uses the media's alt text, or failing that the product title. A frequent result: every image on a product page has the same alt. Fill in each media item, and do not force the title in the template:

{%- for media in product.media -%}
  {%- if media.media_type == 'image' -%}
    {{ media | image_url: width: 1200 | image_tag: alt: media.alt }}
  {%- endif -%}
{%- endfor -%}

For large catalogs, media alt text can also be edited through a product CSV import (image alt text column) or through the API.

PrestaShop

Versions PrestaShop 8 and 9, Classic and Hummingbird themes.

In Catalog > Products, open the product, click an image and fill in the “Caption” field in each language: the Classic theme uses it as alt text. Without a caption, the theme falls back on the product name for every image. Hummingbird also uses the caption, and leaves the thumbnails' alt text empty when it is missing.

Magento

Versions Magento Open Source and Adobe Commerce 2.4.

In Catalog > Products, open the product, “Images And Videos” section, click an image and fill in “Alt Text”. The field is set per store view: translate it for each language.

Drupal

Versions Drupal 10 and 11.

In an image field's settings (Structure > Content types > your type > Manage fields), keep “Enable Alt field” and “Alt field required” checked. Editors then cannot publish an image without alt text. If your images go through the media library (Media module), set these options on the media type's image field (Structure > Media types > Image > Manage fields).

Wix

Versions Wix Editor and Wix Studio, Squarespace 7.0 and 7.1, November 2026.

Click the image in the editor, open its settings and fill in the alt text field. On Squarespace, alt text is entered in the Image block's editing panel, or in the image description for galleries, depending on the site version.

Webflow

Versions Webflow Designer, all plans, November 2026.

Alt text is set in the Assets panel for each file. In an Image element's settings, you can reuse that text, enter one specific to that placement, or mark the image as decorative. In a CMS collection, bind the alt text to a dedicated field rather than to the item name.

Laravel

Versions Laravel 11 to 13.

Store the alt text next to the image (an alt column in the media table) and make it required for content images:

public function rules(): array
{
    return [
        'image' => ['required', 'image', 'max:5120'],
        'alt' => ['required_unless:decorative,1', 'nullable', 'string', 'max:150'],
        'decorative' => ['boolean'],
    ];
}

In the view, a decorative image gets an empty alt:

<img src="{{ $media->url }}" alt="{{ $media->decorative ? '' : $media->alt }}"
     width="{{ $media->width }}" height="{{ $media->height }}">

Next.js

Versions Next.js 15 and 16 (App Router and Pages Router).

The alt property is required on the next/image component. For a decorative image, pass an empty string. On a site fed by a headless CMS, take the alt text from the CMS media field rather than from the page title.

Astro

Versions Astro 5 to 7.

The Image component from astro:assets refuses to build an image without alt. Pass alt="" for a decorative image, and in content collections, declare an alt field in the schema for each image.

Common mistakes

  • Listing keywords: “men's running shoe, running shoes, cheap running”. See eliminate keyword stuffing (opens in a new tab).
  • Repeating the product name on every image on the page, as the theme does by default.
  • Adding the city or the company name everywhere: “plumber Nantes” on a photo of a faucet.
  • Filling in decorative images so as “not to leave them empty”: noise for screen readers.
  • Using the title attribute instead of alt: it is not read reliably and does not replace alt text.
  • Publishing generated text without review: mistakes in color, model or quantity.
  • Forgetting translated versions: a French alt on the German page. See translate ALT text and captions (opens in a new tab).

Frequently asked questions

How many keywords should alt text contain?

There is no numeric target. Alt text describes what the image shows; if the page's keyword truly describes the image, it appears naturally. Google cites lists of keywords in the alt attribute as an example of keyword stuffing, which harms the user experience and may be treated as spam. One precise sentence, often under 125 characters, is better than a list.

Can every image on a product page have the same alt?

No, it is a common mistake. When every image carries the product name, the screen reader repeats the same sentence and Google learns nothing more about each view. Describe what each image shows: front view, stitching detail, product in use, color variant. A template per type of view makes this manageable on a large catalog.

Can alt text be generated with AI?

Yes, as a first draft, provided you review it. Automatic description tools describe what they see, not what matters for the page, and are sometimes wrong about color, material or model. Review at least the main images, product pages and technical diagrams, and rewrite descriptions that are too generic or inaccurate before publishing.

Do ChatGPT and other generative engines read alt text?

Generative engines that read a page's HTML have access to alt text just like the rest of the text. Information that only exists in an image's pixels, such as a figure on a chart, often escapes them if it is not written anywhere. Precise alt text does not guarantee any citation, but it makes the information available as text.

Updated on

Topic checklist (PDF)

And now?

In the “Images and multimodal search” topic

  1. Use descriptive file names
  2. Write relevant ALT text without keyword stuffing
  3. Use WebP/AVIF if appropriate
  4. Compress images
  5. Size images appropriately
  6. Use srcset and sizes
  7. Set width/height
  8. Lazy-load offscreen images
  9. Optimize key images
  10. Add captions if relevant
  11. Use original images
  12. Provide textual context
  13. Allow crawler access
  14. Create an image sitemap if needed
  15. Fix broken images
  16. Check rights and credits
  17. Measure Google Images visibility
  18. Test multimodal searches