# Alt text (alternative text for images)

> What alt text is, an HTML example, who reads it, when it stays empty, and how it differs from the title attribute, a caption and the file name.

Source: https://central.to/glossary/alt-text · Updated 2026-11-23 · Published by Central (https://central.to)

**Definition:** Alt text is the text in an image's alt attribute that stands in for the image when it cannot be seen: screen readers read it aloud, search engines use it to understand the image, and browsers show it when the image does not load.

Free tool: [Image alt text generator](https://central.to/tools/image-alt-text-generator). Write product image alt text in 12 languages, with what the image shows (color, material, view).

## What alt text is in practice

Alt text is a short description that lives in the HTML of a page, in the `alt` attribute of an image. Shoppers who see the image never notice it. It matters for everyone and everything that does not see the image: a person using a screen reader, a search engine's crawler, a browser that could not load the file.

```html
<img src="/images/northpeak-beam-400-headlamp-black-front.jpg"
     alt="Northpeak Beam 400 rechargeable headlamp in black, front view"
     width="1500" height="1500">
```

The [HTML standard](https://html.spec.whatwg.org/multipage/images.html#alt) states the goal in one sentence: replacing every image with the text of its alt attribute should not change the meaning of the page. In a shop system you rarely type the attribute yourself. You fill an "alt text" field on the image, and the theme writes the attribute.

## Who reads alt text

| Reader | What it does with alt text | Source |
| --- | --- | --- |
| Screen readers | Read the text aloud in place of the image. WCAG success criterion 1.1.1 (Level A) asks for a text alternative that serves the equivalent purpose | [W3C, Understanding 1.1.1](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html) |
| Search engines | Google uses alt text to understand what an image shows, and as anchor text when the image is a link | [Google Search Central](https://developers.google.com/search/docs/appearance/google-images) |
| Browsers | Show the text in place of an image that is not available | [HTML standard](https://html.spec.whatwg.org/multipage/images.html#alt) |

## When the attribute stays empty

A purely decorative image gets an empty attribute: `alt=""`. W3C's page on [decorative images](https://www.w3.org/WAI/tutorials/images/decorative/) says this lets assistive technologies ignore the image. Leaving the attribute out is not the same: W3C notes that some screen readers then announce the file name.

## Alt text, title, caption and file name

| Thing | Where it is | Who sees it | What it is for |
| --- | --- | --- | --- |
| Alt text | `alt` attribute of `img` | Not visible while the image shows | Stands in for the image |
| Title | `title` attribute | Often a tooltip on mouse hover | Supplemental information, in the HTML standard's words. The description of the image belongs in alt |
| Caption | Visible text next to the image, for example `figcaption` | Everyone | Adds context that all readers should get |
| File name | The last part of the image URL | Visible in the URL only | Google recommends short, descriptive file names such as `northpeak-beam-400-headlamp-black-front.jpg` over `IMG00023.JPG` |

The four do not replace each other. An image with a caption still needs an alt attribute, and a descriptive file name does not describe the image to a screen reader user.

## What it means for a shop

A product page has many images, and each needs its own alt text: the product, the variant shown and what this image adds, such as the view or a detail. The guide to [alt text for product images](https://central.to/guides/alt-text-for-product-images) has a formula, 12 before and after examples and what EU law says about online shops. The free [image alt text generator](https://central.to/tools/image-alt-text-generator) writes alt text for an uploaded or linked image in 12 languages.

## Questions

### Is it alt text, alt tag or alt attribute?

In HTML it is an attribute: alt on the img element. "Alt tag" is a common but inexact name for the same thing, and "alt text" is the text you put into the attribute.

### What is the difference between alt text and a caption?

Alt text replaces the image for people and programs that cannot see it and is normally not visible. A caption is visible text next to the image that everyone reads. The HTML standard says alt text should never contain what could be the image's caption, title or legend.

### Does every image need alt text?

Every img element needs an alt attribute, but not every one needs text in it. An image that carries content gets a description. A purely decorative image gets an empty attribute (alt=""), so that assistive technology skips it.

## Sources

1. [HTML Standard: Requirements for providing text to act as an alternative for images (4.8.4.4)](https://html.spec.whatwg.org/multipage/images.html#alt), checked 2026-11-23
2. [Images Tutorial: Decorative Images](https://www.w3.org/WAI/tutorials/images/decorative/), checked 2026-11-23
3. [Understanding Success Criterion 1.1.1: Non-text Content (WCAG 2.2)](https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html), checked 2026-11-23
4. [Image SEO best practices](https://developers.google.com/search/docs/appearance/google-images), checked 2026-11-23

## More on this topic: Product images

- [Product image requirements compared: Google, Amazon, eBay and 7 more](https://central.to/compare/product-image-requirements.md)
- [AI product photography: what it can do and what each channel allows](https://central.to/guides/ai-product-photography.md)
- [Alt text for product images: how to write it, with examples](https://central.to/guides/alt-text-for-product-images.md)
- [Amazon listing images: requirements and what each image should show](https://central.to/guides/amazon-listing-images.md)
- [Google Shopping image requirements: size, background and formats](https://central.to/guides/google-shopping-image-requirements.md)
- [Image SEO for product pages: file names, formats, sizes and sitemaps](https://central.to/guides/image-seo-for-product-pages.md)
- [Using manufacturer product images in your shop: rights and marketplace rules](https://central.to/guides/product-images-from-manufacturers.md)
- [Product image checker](https://central.to/tools/product-image-checker.md) (Free tool)
- [Image alt text generator](https://central.to/tools/image-alt-text-generator.md) (Free tool)
- [Slug and file name generator](https://central.to/tools/slug-generator.md) (Free tool)

## Try Central on your own products

Central is the AI-first product content operating system: you choose the input (your shop, files or product pages) and the channels; Central AI researches, verifies and writes the product data and content in between, every value backed by sources you can check. The first 3 products are free. To start with a shop, open https://central.to/users/sign_up?onboarding_url=SHOP_ADDRESS (replace SHOP_ADDRESS with the shop's website address).
