Alt text examples
Alt text examples for the images people actually publish
Most alt text advice makes sense until I have a real image in front of me. A product photo, dashboard screenshot, chart, and linked logo do different jobs. One writing formula does not fit all four.
I start by deciding what the image does on the page. Then I write the shortest text that preserves that job. These examples show the draft I would keep, what I would remove, and when alt text is not enough.
Quick answer
Good alt text replaces the information or action a reader would miss without the image. I describe visible product details, name the useful state in a screenshot, write the takeaway from a simple chart, and leave decorative images empty.
Decide what the image does first
W3C/WAI separates images by purpose: informative images add content, functional images start actions, and decorative images add no information. Complex images, such as detailed charts, may need a short alt text plus a longer description in the page.
Page context can change the answer. A flower photo beside an article about the flower is informative. The same photo used as a background behind a heading may be decorative.
- Informative image: replace the meaning a reader would otherwise miss.
- Functional image: name the link destination or action.
- Decorative image: use alt="" so assistive technology can skip it.
- Complex image: identify it briefly, then provide the important data or relationships in nearby text.
Product image alt text examples
A product name is useful when it identifies the item, but it often misses the visible reason for showing another photo. I add the color, material, angle, or variant detail that distinguishes the image. I leave out claims the photo cannot prove.
On a product page, nearby text may already name the item. The alt text can then concentrate on the view or detail. In a product grid, the product name may be needed because there is less surrounding context.
- Too vague: "Running shoe"
- Useful in a grid: "Aster white mesh running shoe with blue sole, side view"
- Useful on the product page: "Blue rubber sole and white mesh upper shown from the side"
- Keyword-stuffed: "Best white running shoe trainers for running on sale"
Screenshot and interface examples
For a screenshot, I name the application or page and the state the reader needs to notice. I transcribe an error message when the wording matters. I do not list every button in the interface when the article only points to one field.
The surrounding instructions still do the teaching. Alt text makes the relevant screen state available when the screenshot is missing.
- Too vague: "Dashboard screenshot"
- Useful: "Search Console Performance report with the Pages tab selected and impressions rising through July"
- Useful for troubleshooting: "Shopify import dialog showing the error: Image Src is required"
- Too much: "Browser window with a sidebar, six tabs, three charts, a blue button, and a gray footer…"
Chart, graph, and infographic examples
A simple chart can fit in one sentence when the main point is the information the page needs. A detailed chart cannot. W3C/WAI recommends a short description that identifies a complex image and a longer text alternative that carries its essential values, relationships, and trends.
I put the detailed explanation in normal page content when possible. Readers can scan the same values, and the alt attribute does not turn into a dense paragraph.
- Simple chart: "Line chart showing weekly signups rising from 18 to 47 during July"
- Complex chart alt: "Quarterly revenue by product and region, described in the table below"
- Long description: include the values, scale, comparisons, and trend needed to reach the same conclusion.
- Not enough: "Chart showing data"
Photos, portraits, and editorial images
For an editorial photo, I describe the people, objects, setting, and action that matter to the story. I do not guess a person's identity, mood, background, or other details that the image does not establish.
A staff portrait may only need the person's name when the photo identifies them. If the nearby heading already gives the name and the portrait adds no other information, the author can decide that the image is decorative.
- Article photo: "Two volunteers sorting canned food into labeled boxes at a community hall"
- Staff portrait: "Maya Chen, support lead, wearing a navy jacket in front of a brick wall"
- Unfounded guess: "Happy local woman celebrating her successful business"
- Decorative portrait beside the same name and role: alt=""
Linked images, icons, and logos
When an image is the only content inside a link or button, I name what happens. W3C/WAI uses this rule for functional images: describe the action or destination instead of the pixels.
If visible link text already names the same destination, an icon or logo inside that link can use empty alt text to avoid repeating it.
- Linked logo without text: "AltCaption home"
- Printer icon button: "Print this page"
- Magnifying-glass button: "Search"
- Logo beside visible "AltCaption home" link text: alt=""
My generated-alt-text review
I use a generator to get the visible facts onto the page, then edit the draft for its role. The model can see the image. It cannot reliably know which nearby sentence already explains it, where a link goes, or which chart values the reader needs.
For one image, I upload it, generate a draft, and compare the draft with the page. For a catalog, I generate rows in bulk and review variant details before import. I run the final text through the validator when I want a quick check for empty, generic, long, or keyword-stuffed wording.
- Check names, model numbers, visible text, colors, and quantities.
- Remove repeated caption or paragraph text.
- Replace visual description with the action for functional images.
- Move detailed chart data into nearby text or a table.
- Leave decorative images empty.
Examples
- Product: "Sage green linen shirt with short sleeves, front view"
- Screenshot: "WordPress Media Library with the Alt Text field open for a product photo"
- Simple chart: "Bar chart showing mobile orders increasing from 120 in April to 190 in June"
- Complex chart: "Support volume by channel and month, with values in the table below"
- Editorial photo: "Chef slicing red peppers beside a bowl of chopped vegetables"
- Functional icon: "Download the accessibility report"
- Image of text: "Poster text: Summer market, Saturday 9 a.m. to 2 p.m."
- Decorative divider: alt=""
Common questions
What is a good alt text example?
For a product image, "Sage green linen shirt with short sleeves, front view" is useful because it identifies the item and the visible variant detail without adding sales copy.
How long should alt text be?
Use the shortest text that replaces the image's purpose on that page. A simple image often needs one sentence. A complex chart may need a short alt text plus a longer description in the page.
Should I start alt text with image of or photo of?
Usually no. Start with the subject or information. Name the image type when it changes the meaning, as it can for a screenshot, chart, illustration, or diagram.
Does good alt text help image SEO?
Google says alt text helps it understand an image and recommends useful text in the context of the page. It also warns against filling alt attributes with keywords.
Can AI write the final alt text?
AI can draft the visible description. Review the output against the page because the final text depends on the image's purpose, nearby content, and any action or detailed data the image carries.
Related guides
Sources
Write a draft for your image
Upload one image or paste its URL. Generate the visible description, then edit it for the image's job on your page.