Level
AA
Since
WCAG 2.0
/ WCAG criterion

1.4.5 Images of Text

Words on the page should be real text and not a picture of text, unless the user can restyle the image or the exact look is essential, as in a logo.

/ What it requires

An image of text is text turned into pixels to get a particular look: a heading saved as a PNG in the brand typeface, a banner with the offer painted into the JPEG, a button made from a picture of its label. Real text can be enlarged without blurring, recoloured, given more line spacing or set in a font a person reads more easily, through browser settings, a user stylesheet or a reading extension. Text inside a picture cannot. The criterion protects people with low vision, people with visual tracking problems who need different spacing or alignment, and people with cognitive disabilities that affect reading.

Where the technology in use can achieve the visual presentation, and HTML with CSS almost always can, text must be used instead of an image of it. Two exceptions remain: the image of text can be visually customised to the user's requirements for font, size, colour and background, or a particular presentation of the text is essential to the information. Logotypes count as essential. Text inside a picture with significant other visual content, such as a graph, a screenshot or a diagram, is not an image of text. An image is also acceptable when the same words are shown as real text beside it, an allowance that the AAA criterion 1.4.9 removes.

/ How pages fail it

  • Section headings are PNG files made in the brand typeface, and the words exist only in the alt attribute.
  • The homepage hero is one JPEG with the headline, the offer and the button label all painted into it.
  • A navigation bar or a row of buttons uses pictures of their labels instead of text styled with CSS.
  • A restaurant or event page publishes its menu or programme only as an exported image, with no text version on the page.
  • A testimonial is shown as an image to keep a decorative script font, although a web font would give the same effect.

/ How to check it yourself

  1. Zoom the page to 200 percent or more and look for words that turn blurry or blocky. Text that pixelates is an image.
  2. Try to select the words with the mouse, or press Ctrl+A. Words that cannot be highlighted are not text.
  3. In DevTools, inspect each suspect and check whether it is an img, a CSS background-image, an svg or a canvas, and whether the words exist as text in the DOM.
  4. Turn images off, for example with the Web Developer browser extension, and see which words disappear from the page.
  5. For every image of text found, decide whether it is a logo, a type sample or another case where the exact look is essential, or whether CSS could have produced it.

/ How to fix it

  • Rebuild headings and banners as HTML text styled with CSS, and load the brand typeface with @font-face.
  • Place text over a photograph as HTML positioned above an img or a CSS background-image, rather than painting it into the image file.
  • Replace image buttons and image links with button and a elements that contain text, and draw backgrounds, borders and shadows with CSS.
  • Where an image of text cannot be avoided, such as an uploaded poster, publish the same words as text next to it on the page.
  • Keep the logo as an image with the organisation's name as its alt text. Logotypes are exempt from this criterion, but not from 1.1.1.

/ What our scanner checks

No automated check covers 1.4.5 in our scan. Telling a picture of words from a photograph needs someone to look at it, and HTML_CodeSniffer only posts a general reminder for this criterion, which the scan drops. A manual audit reviews each image, background image and canvas for text and decides whether a logo or a type sample falls under the exceptions.

/ Who fails it, in our own measurements

The weekly index has no figures for this criterion, because none of the checks the site scan runs can test it. A person judges it, which is what a manual audit is for.

One page per body, measured by automated checks on a weekly schedule. Any body that has fixed something since the last sweep will show it at the next one, and every entity page carries a right of reply.

/ Questions about this criterion

Can a logo be an image of text?

Yes. WCAG treats logotypes, meaning text that is part of a logo or brand name, as essential, so they are exempt from 1.4.5. The logo image still needs a text alternative under 1.1.1, usually the name of the organisation.

Is text inside a chart, a screenshot or an infographic an image of text?

Not when the picture holds significant other visual content. The W3C definition leaves out graphs, screenshots and diagrams that convey information through more than text. An infographic that is mostly sentences on a coloured background is closer to an image of text and is better built in HTML. Whatever the case, the information has to be available as text, through the alt attribute, a caption or a data table.

Which level is 1.4.5, and how does it differ from 1.4.9?

Images of Text is level AA, so a site that aims for AA has to meet it. It allows an image of text when the presentation is essential, when the user can customise it, or when the same text is also shown as text. 1.4.9 Images of Text (No Exception) is level AAA and stricter: images of text are allowed only for pure decoration or where the presentation is essential.