Accessibility Tip: Avoid text in images

Last updated on January 01, 2022A11y issues

Avoid putting text in images. If there is text in images, ensure you have a text based alternative.

Screen readers will not be able to read the content of text within a JPG or PNG image.

If an image contains text (such as a scan of a document) you should provide a text based version of the photo - as alt text or other text elsewhere on the page.

WCAG guidelines

Success Criterion 1.4.5 Images of Text (Level AA):

https://www.w3.org/WAI/WCAG21/Understanding/images-of-text

Success Criterion 1.4.5 Images of Text (Level AA): If the technologies being used can achieve the visual presentation, text is used to convey information rather than images of text except for the following:

Customizable The image of text can be visually customized to the user’s requirements;

Essential A particular presentation of text is essential to the information being conveyed.

Logotypes (text that is part of a logo or brand name) are considered essential.

Success Criterion 1.4.9 Images of Text (No Exception) (Level AAA):

https://www.w3.org/WAI/WCAG21/Understanding/images-of-text-no-exception

Success Criterion 1.4.9 Images of Text (No Exception) (Level AAA): Images of text are only used for pure decoration or where a particular presentation of text is essential to the information being conveyed.

Logotypes (text that is part of a logo or brand name) are considered essential.

Found this post useful?

Please consider sharing this link with your work colleagues or on social media. There are no ads on my site, I just want to promote accessibility.

Found an issue? please point them out - let me know if there is a mistake and I'll update it

Follow me on Twitter: @A11yForDevs. I post links to interesting a11y articles and resources.

More posts

Welcome to Accessibility for Developers

New to accessibility?

Accessibility for Developers

This is a free site to give advice on how to make your website accessible

I have been a software developer for nearly a couple of decades, and really want to help promote better accessibility in apps and websites that we, as developers, create! Accessibility isn't very difficult, it is just important to be aware about it and understand it.

If you spot any mistakes or have any suggestions, ideas or collaborations please check out my contact page.

Important: The information on this website is for general informational purposes only. I make no representation or warranty, express or implied. Your use of the site is solely at your own risk. I've tried my best to make sure all information is accurate, but I am just a software engineer (not an accessibility expert).