Alt text at scale: accessible images from templates
Generated images ship without text alternatives when nobody owns the field. How alt text travels through templates, CSVs and APIs — and avoids "image of" filler.
Automated renders make images cheap and text alternatives expensive — unless the alt text is part of the data. A practical pipeline that keeps alt text accurate through every variant, locale and re-render.
The image that says nothing
A campaign ships with forty product cards. Every row rendered, every file named correctly, every variant within its safe area. Then someone runs a screen reader across the landing page and the cards announce as product-1042-1080.png — or as nothing at all. The render worked. The text alternative never existed.
That gap is structural, not careless. Alt text is invisible in every artifact an automated pipeline touches: the template editor shows an image layer, the render produces pixels, the delivery step returns a URL. Nothing in that chain asks what the image means on the page where it will appear. At one image this is a ten-second fix after publication. At four hundred variants per campaign it is a missing field in a data contract, and nobody notices until an audit or a support ticket surfaces it.
The fix is unglamorous: treat the text alternative as a required column, write it where the copy is written, and check it before the batch goes out.

What the standard actually asks for
WCAG 2.2 success criterion 1.1.1 (Level A) requires that all non-text content presented to users has a text alternative serving an equivalent purpose. It also names the exception that matters most for automated output: content that is pure decoration, used only for visual formatting, or not presented to users must be implemented so assistive technology can ignore it.
Two consequences follow. First, alt text is written per use, not per file — the same product photo needs different words as a catalogue image, as a link target, or as an ambient background. Second, "decorative" is a legitimate, standards-compliant answer, provided the image is marked as such rather than left unlabelled.
| The image's role on the page | What the text alternative must do | Typical value |
|---|---|---|
| Informative product or result image | Convey the content that matters, concisely | Navy wool coat, three-quarter view |
| Only content inside a link or button | Describe the destination or action | Open the autumn collection |
| Text baked into the render, not present as real text | Provide that text | New |
| Chart, diagram or dense infographic | Point to the data presented nearby, keep alt short | Revenue by quarter; figures in the table below |
| Ambient background, border or styling | Nothing — mark it ignorable | alt="" |
The WAI decision tree puts this in the same order a reviewer would: does the image contain text that is already real text nearby (then empty alt), is it functional (then describe the function), does it contribute meaning (then describe the meaning), is it purely decorative (then empty alt). If none of that resolves it, the image needs information placed elsewhere on the page, not a longer alt attribute.
Alt text belongs in the row, not in a second pass
Most inaccessible generated images are not written badly; they are written late. When alt text is produced after the batch, the only inputs left are a filename and a thumbnail, and the result reads like product_1042_final_v3.
JsonCut's bulk contract makes the alternative obvious. CSV headers must match the template's published input IDs, every row is parsed against the input types before anything is queued, and the whole batch is pinned to one immutable template version. A row is therefore already the carrier for everything known about one output. Keep the text alternative next to the row key that identifies that output:
{
"version": 4,
"items": [
{
"idempotencyKey": "sku-1042-de",
"values": { "headline": "Jetzt erhältlich", "price": 79.9, "productImage": "jsoncut-media://media_01J..." },
"altText": "Blaue Wolljacke mit Stehkragen, Frontansicht"
},
{
"idempotencyKey": "sku-1042-en",
"values": { "headline": "Available now", "price": 79.9, "productImage": "jsoncut-media://media_01J..." },
"altText": "Navy wool coat with stand collar, front view"
}
]
}
The altText field is not a template input. Template inputs exist to feed the design, and discovery should stay a clean list of exactly what the design consumes — adding fields the composition never uses makes the contract harder to validate without improving the image. Instead, the idempotency key already identifies each output, so it doubles as the join key back to your publishing system, your PIM record or a sidecar manifest. Delivery then reads alt text by key instead of inventing one from a URL.
Two details worth building in from the start:
- Locale travels with the row. The German row above carries German alt text because the page it feeds is German. Text alternatives should match the human language of the content they describe, so a locale column that drives the headline should drive the alt text too — the same discipline that keeps localized renders coherent.
- Re-renders reuse the key. A corrected row keeps its idempotency key, so the alt text does not need to be rewritten when only a price changes.
Four rules that survive review
| Rule | Weak | Better |
|---|---|---|
| Describe content and function, not the medium | Image of a red sneaker | Red running shoe, side view |
| Stay succinct | A paragraph retelling the whole campaign | A few words, rarely a short sentence |
| Never repeat adjacent text | Alt repeats the headline directly below | alt="" when the nearby text already says it |
| Don't lean on filenames | hero-final-2.webp | Real alt text, or alt="" if decorative |
The "image of" habit is worth calling out because it is the most common machine-generated phrasing. Screen readers already announce an image as a graphic, so the phrase adds noise rather than meaning. WebAIM's guidance is blunt about it: alt text should be accurate, succinct, not redundant with nearby text, and free of phrases like "image of" or "graphic of".
Keyword stuffing fails the same test. Search engines do use alternative text when assessing a page, but alt text written for a crawler rather than a person stops describing the image, which is the one job the standard asks it to do.
An empty alt is a real answer
Decorative images should carry alt="" — the attribute present and empty. That is different from a missing attribute: when alt is missing, screen readers may fall back to reading the filename or the image URL, which is exactly the failure that starts this article.
For generated output the rule is easy to apply. If a render exists to add texture, a gradient panel or brand atmosphere and the message is already in the text, mark it decorative. If the same template produces the hero image for a product page, it is informative and needs words. The decision belongs to the placement, not to the template — which is why it is worth recording it explicitly per output instead of inferring it later.
A release gate for text alternatives
| Check | Automated | Human | Pass criterion |
|---|---|---|---|
Every <img> has an alt attribute | Yes | — | Zero elements without it |
| Decorative vs. missing is distinguishable | Yes | — | alt="" used, attribute never absent |
| Placeholder phrasing | Yes (pattern match) | — | No "image of", no bare filename, no TODO |
| Language matches the row locale | Yes | Spot check | Alt language equals page language |
| Context reads correctly aloud | — | Sample per batch | Alt makes sense without the image |
| Variants are not copy-pasted | Yes (diff) | — | Different products never share identical alt text |
The human step is a sample, not a full pass. Ten outputs read aloud in a screen reader catch more real problems than a hundred regex hits, and it fits the same review gate that already checks renders before they ship. Pair it with the pre-flight checks on the input file and most defects never reach the queue.
Video and the rest of the page
Text alternatives are the image half of the problem. Time-based media has its own requirements: captions for prerecorded audio, and descriptive identification for video that carries meaning. If a render pipeline produces clips as well as stills, the same discipline applies — captions and descriptions belong to the row, not to a post-publication cleanup.
Rollout checklist
- Add an alt text field to the manifest and make it required for every informative output.
- Write alt text while the headline is written, in the same language.
- Validate presence, emptiness and placeholder patterns before the batch is submitted.
- Join alt text to outputs by idempotency key, never by filename.
- Sample ten outputs per batch in a screen reader and fix the pattern, not just the instance.
- Re-check when a template version changes the meaning of the image, not only its layout.
None of this makes a render pipeline accessible on its own — a page still needs headings, contrast and keyboard order. But the images stop being the silent part, and that is the part automation made worse.
Sources
- W3C, Web Content Accessibility Guidelines (WCAG) 2.2, Understanding SC 1.1.1 Non-text Content:
https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html— Level A requirement, exception for decoration (abgerufen 2026-11-27) - W3C WAI, Images Tutorial, An alt Decision Tree:
https://www.w3.org/WAI/tutorials/images/decision-tree/— order of decisions for text alternatives (abgerufen 2026-11-27) - W3C WAI, Images Tutorial, Decorative Images:
https://www.w3.org/WAI/tutorials/images/decorative/— empty alt for decorative images (abgerufen 2026-11-27) - WebAIM, Alternative Text:
https://webaim.org/techniques/alttext/— alt attribute presence, phrasing, functional and decorative cases (abgerufen 2026-11-27) - JsonCut Docs, Typed templates and bulk rendering:
https://jsoncut.com/docs/templates/— input contract, CSV headers, row validation, idempotency keys (abgerufen 2026-11-27)