Avoid Images That Contain Text
Learn why images containing text are inaccessible and how to use real text instead. Includes code examples.
What Is It?
Images of text are images (JPG, PNG, SVG) that contain text content. Examples: logos with text, headers created as images, buttons with text in graphics, screenshots showing text.
Affected users: Screen reader users, low vision users, users who enlarge text, color-blind users, search engines
Why It Matters
Text in images cannot be read by screen readers, enlarged by users, extracted, translated, or indexed well by search engines. Users with low vision who need to magnify can't read image text.
How to Detect This Issue
Scan pages for images containing text. Look for images with text content. Check if the same information exists as real text elsewhere. Test with screen reader.
Code Examples & Fixes
HTML / CSS
<img src="header-with-text.jpg" alt="Welcome to Our Store"><h1>Welcome to Our Store</h1>Instead of image with text, use real HTML heading. If visual design is critical, use SVG with real text instead of raster image.
React / Next.js
<img src="button.png" alt="Sign Up" onClick={signup} /><button onClick={signup}>Sign Up</button>Use semantic HTML <button> instead of image. CSS can make it look however you want. Text is real and accessible.
WordPress
Header image with "Special Offer 50% Off" text burned inBackground image, real text overlay: <h2 class="offer-text">Special Offer: 50% Off</h2>WordPress: use background image with CSS, add real text on top. Or use image for visual effect, add text that overlays.
Shopify Liquid
Product badge as image: "New Arrival" burned into small PNG<div class="product-badge">New Arrival</div> <style> .product-badge { ... } </style>Replace image badges with HTML and CSS. Text can be styled, resized, and is fully accessible.
Common Mistakes
Logos that are images of text instead of SVGs or styled text
Call-to-action buttons created as image files
Infographics with all text in image (should provide data as text too)
Screenshots of code or text used as documentation (should provide actual code)
Quotes or testimonials as images instead of text
Frequently Asked Questions
What about logos with text?
What about infographics?
Can I use images for design effects?
What about screenshots?
Check your website for free
Get your ADA, WCAG, privacy & security score in 90 seconds.
Related guides
Add Missing Alt Text to Images
Learn how to add descriptive alt text to images for accessibility. Includes code examples for HTML, React, WordPress, and Shopify.
Improve Color Contrast
Learn how to fix low color contrast to meet WCAG AA and AAA standards. Includes tools, code examples, and color combination testing.