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.
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.
The same headline as live text.
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.
- Find every image on the page that shows text: banners, buttons drawn as images, headings set in a special font, quotes, screenshots.
- 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.
- Zoom to 400% and look at the edges of the letters. Text in a bitmap image blurs or shows pixels; real text stays sharp.
- For each image of text, ask whether HTML and CSS could show the same thing. Most could, with a web font and styling.
- 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 1.4.1, PerceivableLevel A
Use of Color
Fails when: Hue is the only signal.
- 1.4.2, PerceivableLevel A
Audio Control
Fails when: Autoplaying audio with no control on the page.
- 1.4.3, PerceivableLevel AA
Contrast (Minimum)
Fails when: Hierarchy built by fading text out.
- 1.4.4, PerceivableLevel AA
Resize Text
Fails when: A fixed-height box clips its own text when enlarged.
- 1.4.10, PerceivableLevel AA
Reflow
Fails when: Fixed-width columns make the page scroll sideways as well as down at 320px wide.
- 1.4.11, PerceivableLevel AA
Non-text Contrast
Fails when: The field and checkbox edges vanish; only the placeholder hints anything is editable.