WCAG 1.4.5: Images of Text

Back to all WCAG criteria

OVERVIEW

Effort:

  • Complexity:Easy
  • Duration:Slow

Important for:

Design

What's it about?

Important information must not be presented as images of text but must be provided as real text in the HTML.

Some people with visual impairments or dyslexia need to adjust text visually (color, size, spacing, font, and so on) to read it comfortably.

Pixel-based images cannot respond to these adjustments and are not recognized by screen readers.

Text in the image reads: *There shouldn’t actually be any text in this image, sorry!!!* Next to it is a green figure looking confused and saying: Typical!

How to

Depending on your situation, you can implement one of the following options to meet the criterion. For a deeper dive, please refer to the linked WCAG techniques.

  • Avoid using text as pixel graphics

    Text should be provided as real text. Important text in particular should not be embedded in pixel graphics.

    Headlines, promo codes, or promotional messages should always appear as real HTML text on the page.

    Notes

    • Exception: Text alternative is nearby

      An image may contain text with important information if that text is also available in HTML form near the image.

      For example, on our website we often include text inside blog images. However, that text is repeated (sometimes in more detail) in the title. This provides an accessible alternative.

      Illustration of a website with an image containing text, but the image has a nearby text alternative that provides the same content.
    • Exception: The texts are embedded as SVG text

      Text inside an SVG’s <text> tag is allowed, because it can be scaled and styled individually.

      However, this also makes the SVG unnecessarily large, so it’s not really a recommended solution.

    • Exception: Images used for documentation

      Screenshots or step-by-step illustrations that serve as documentation are allowed to contain text.

      A section of the WCAG criteria cards found on our blog, where we use images with text for documentation purposes.
    • Exception: Text is essential to the image

      Images such as certificates, book covers, or seals, in which the text is an intrinsic part of the image, are allowed to contain text.

      Without the text, these images would no longer work or make sense.

      A certificate for digital accessibility. Here, text in the image is essential, so it is acceptable for this purpose.

                How do you make content accessible?

                Our workshop for content creators and editorial teams

                Learn everything you need to know in our workshop to make the content on your website, social media, and other channels accessible!

                More about the workshop
                Our mascot Sam with a pencil and a camera. Trying to create accessible content.

                Learn accessibility with us?

                Looking to implement WCAG best practices in your design, development, or content workflow? Book a workshop for your team or contact us directly to learn more.

                Send us an email!