New Tool Radar

AI Design Workflows

How to Check Alt Text on an Image of Text

Check that an image of text has alt text repeating the words shown, because the words in the picture are invisible to a screen reader.

Schematic with three steps: find the images of text, read the words in each, check the alt repeats them.

A sale banner saved as a picture, a quote set as an image, a logo with a tagline baked in: the words look fine to sighted readers and are invisible to screen readers. Where text must stay an image, the alt text has to carry the same words. Where it can be real text, it should be.

Why this needs its own check

WebAIM’s alternative text guide says that for images of text, the text alternative should contain the same words as in the image. WCAG goes further and asks that real text be used instead of images of text wherever the same visual presentation can be made with text alone.

What you need before you start

  • The page open in a browser
  • A list of images that contain words
  • An accessibility inspector to read alt text

Step 1 – Find every image of text

Go through the page and write down each image that contains readable words: banners, quote cards, badges, infographics with labels, logos with taglines. Include images in emails and social cards.

Step 2 – Read the words in each image

Write down the exact words shown in each image, including prices, dates, and small print. These words are the content the alt text must carry.

Step 3 – Check the alt repeats the words

Inspect each image and compare its alt text with the words you wrote down. Alt text that summarises, shortens, or omits the words fails; alt text that repeats them exactly passes.

Worked example

Practice check: a fictional Willow and Wren Studio sale banner

The example below is fictional. Willow and Wren Studio is an invented business used only as a practice case. No real customer, page, or product is shown. Treat it as a practice case, not as evidence about any real business.

Part What it should be As shown Result
Spring sale banner Alt repeats the words alt Spring sale, 20 percent off all prints until 30 April Pass
Quote card Alt repeats the words alt Beautiful paper Fail – words not repeated
Opening hours badge Alt repeats the words alt Open Monday to Saturday, 9 to 5 Pass
Workshop date stamp Alt repeats the words No alt attribute Fail – no alt text

Only 2 of the 4 checks pass: the spring sale banner and the opening hours badge. The two failures are the quote card, whose alt text summarises instead of repeating the words, and the workshop date stamp, which has no alt text.

What to do when something is wrong

Replace the quote card alt with the full quoted words, and add the workshop date to the date stamp alt. Where the banner text can be real HTML text over a background image, rebuild it that way and keep the image decorative.

Expected result. We checked the WebAIM alternative text guide listed in Sources. We did not inspect a live Willow and Wren Studio page. UNTESTED: no accessibility inspector was run on a real page; the practice table shows the expected result pattern for a page with two faulty images of text.

Limits

  • This check covers images of text only. Logotypes are excepted from the contrast rules but still need alt text that names them, and this check does not cover long text inside infographics.

Sources

See all