Skip to main content

Alt Text Generator (W3C Decision Tree)

Answer the W3C alt decision tree, describe the image in a few words, and get alt text you can paste: checked for length, "image of", file names and link wording, with the HTML for decorative, linked, chart and grouped images.

Last updatedHow we build & check our tools

Interactive Tool

Loading interactive tool…

Enter your values once it appears to see your results.

Results will appear here once the tool finishes loading. Everything runs locally in your browser.

How the draft is produced

Choose a local image and the tool runs two small vision models in your browser: an object detector that lists what it recognizes — drawn from 80 common object categories, each detection at 40% confidence or better — and an image classifier that picks a top label for the whole image from 1,000 categories. From those two lists it assembles a draft such as "Photo of two benches and a dog, likely a miniature poodle."

Beneath the draft you see the evidence: the objects found with their counts, the top label with its confidence percentage, and the image dimensions. That breakdown matters more than the draft itself — low confidence or an empty object list tells you the draft is a guess that needs a heavier edit before anyone publishes it.

Using it in a publishing workflow

The first time you run the tool it downloads the two models — about 10 MB in total, once, from this site — and caches them in your browser for later visits. Load the model, pick a local file or the built-in sample, and press Draft alt text.

Where it fits a content workflow: drafting alt text for CMS uploads, product pages and blog illustrations, then editing before publish. Treat it as three steps. Check the model status first — results marked Keyword fallback come from the file name and metadata only, not the image. Read the draft against what you know the image is for. Then rewrite: the fixed opener and generic labels usually need replacing with the image's purpose on the page.

What the models cannot do

The models count objects and classify scenes; they do not understand your page. They cannot read text inside the image, describe a chart's data, or say why the image is there — the single most important part of good alt text. A confident draft for a photo of a smiling customer says nothing about whether it illustrates a testimonial or a careers page.

Confidence percentages are model guesses, not accuracy guarantees, and the classifier's labels can be simply wrong. A person must decide whether each image is informative or decorative at all — decorative images should get an empty alt attribute rather than any generated text. Copy no draft unedited: read it against the image, the surrounding content, and your own alt text style.

Frequently Asked Questions

Common questions about the Alt Text Generator (W3C Decision Tree)

No. The image is chosen locally and analyzed inside your browser tab by vision models that are downloaded once from this site and cached on your device. The image data is never sent to a server or an external AI service. If the models have not loaded, the tool says so and shows a keyword fallback based on the file name — it does not quietly ship the file elsewhere.

From the same team

Stop paying per token — route AI requests to your own GPU

Wide Area AI is a local-first AI gateway: repeated requests hit an edge cache, the rest run free on your own hardware, and the cloud is only a failover. OpenAI-compatible endpoint, free tier.

Start routing — free

Sources & References

An alt Decision Tree

The question order and outcomes the generator follows: text in the image, link or button, meaning (simple, complex, duplicates nearby text), decorative.

Images Tutorial: informative, decorative, functional, text, complex and grouped images

Examples per image type, the two-part short alt plus long description for complex images, figure with role="group", and first-image-only alt for groups such as star ratings.

Understanding Success Criterion 1.1.1: Non-text Content (WCAG 2.2)

Level A. Non-text content needs a text alternative that serves the equivalent purpose; decoration must be ignorable by assistive technology; short and long text alternatives.

Alternative Text

Do not start with "image of" or "graphic of"; only a few words are usually needed; linked images convey the link's function; alt="" for decorative and redundant images. WebAIM sets no character limit.

Explore More Tools

Explore these related tools for your next step.

ai
ai
ai
ai
ai
ai