WCAG Encyclopedia

1.4.5 · PerceivableLevel AA

Images of Text

Use real text, not a picture of text. Pictures of text do not reflow, do not respond to a reader’s font or colour settings, blur when enlarged, and cannot be selected, searched, or translated. Logos are exempt.

Principle
Perceivable
Guideline
1.4
Level
AA
In WCAG since
2.0
Number
1.4.5

Broken, then fixed

The same interface twice: first with the mistake, then with the smallest change that fixes it.

Broken: A headline exported as an image.

Baked at one size and one palette. It ignores the reader’s font size, it pixelates at 400% zoom, it cannot be translated, and its alt text is one more thing to keep in sync.

Fixed: The same headline as live text.
Spring sale — 30% off

Styled with CSS, so it scales, reflows, inverts with the theme, and can be selected and translated. Web fonts made the image version unnecessary years ago.

How to test

Check your own interface against 1.4.5, one step at a time.

  1. Find every image on the page that shows text: banners, buttons drawn as images, headings set in a special font, quotes, screenshots.
  2. Try to select the text with the mouse, or find it with the browser’s find in page (Ctrl+F or Cmd+F). Text you cannot select or find is probably an image.
  3. Zoom to 400% and look at the edges of the letters. Text in a bitmap image blurs or shows pixels; real text stays sharp.
  4. For each image of text, ask whether HTML and CSS could show the same thing. Most could, with a web font and styling.
  5. Treat as exempt only logos, text whose exact look is the point (such as a font sample or a scanned letter), and images people can restyle themselves, choosing the font, size and colours.

Common questions

Does alt text make an image of text pass 1.4.5?

No. Alt text meets 1.1.1 Non-text Content, but 1.4.5 asks for real text wherever real text can give the same look.

Is a logo an image of text?

Yes, but it is exempt. Text that is part of a logo or brand name counts as essential, so it can stay an image.

Is a screenshot of code an image of text?

Yes. If the point is the code, show it as text in a pre element, which people can resize, restyle and copy.

Try it yourself

A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.

Try it: zoom and restyle the heading

How to use this lab

  1. Goal. Compare a sale heading set as real text with the same heading as a picture, when a reader zooms in or uses their own colours.
  2. The controls. The choices under “The heading” make it Real text or an Image of text. The choices under “Zoom” set the page to 100%, 200% or 400%, and the choices under “Colours” switch between The page’s own and Mine, the reader’s own colours. The readouts say whether the heading stays sharp and whether it follows your colours.
  3. Try this. The lab starts with Real text, and passes. Choose Image of text, then 400% to see its pixels stretched and blurred, and Mine to see it keep its own colours while the line under it changes.
  4. What it means. With Real text, 1.4.5 passes: it stays sharp at any zoom and takes the reader’s colours. With Image of text, 1.4.5 fails at every zoom and colour setting, because people with low vision can’t enlarge it cleanly or restyle it to read. The verdict line under the lab says which.
The heading
Zoom
Colours
  • Text redrawn at 100%: sharp
  • Your colours: off

1.4.5 passes

Also in guideline 1.4

Criteria in the same guideline often fail together.