Works on this device
Email Image Alt Checker
Many mail programs block images until the reader allows them, and a screen reader cannot see a picture. In both cases the alt text is what the reader gets. Paste the HTML of your email to check the alt text of every image. The HTML is read as text in your browser and no image is loaded.
Your email
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Paste the HTML, or choose Try an example.
Your result
How it was worked out
How to use the checker
- Copy the HTML source of your email from your email tool and paste it in the box, or open the file.
- Choose Check. The result counts the images and lists each one with its line, file name, alt text and result.
- Fix the images that need a look in your email tool, then check again.
- To write one image tag with alt text, choose Write an image tag with alt text in the menu.
What each result means
- Has alt text: the image has words in its alt attribute and no check found a problem. Read them yourself: this page cannot see the picture.
- No alt attribute: the tag has no
altat all. A screen reader may read the file name, and a reader with blocked images gets nothing. Addalt="...", oralt=""for a decoration. - Empty alt:
alt=""tells a screen reader to skip the image. That is right for spacers, lines and tracking pixels. It is wrong for a picture that tells the reader something. - The link has no name: the image is the only thing inside a link and it has no alt text, so nobody can tell where the link goes. Say the goal of the link in the alt text.
- Looks like a file name: an alt text such as
hero-2.jpgorIMG_0042came from a tool and was never written. - Only says that this is an image: words such as "image", "logo" or "banner" alone do not say what the picture shows.
- Long alt text: longer than the limit under More options. Long text is not forbidden, but a short sentence is easier to hear and fits a blocked image box.
- Repeats the words of its link: the image and the same words are in one link, so a screen reader reads them twice. Use
alt=""on that image. - Same alt text as the image before it: often a picture cut into parts. Give the text to one part and
alt=""to the others. - Hidden by the HTML: the image or a part around it has
hiddenordisplay:none.
How to write alt text for email
- Say what the image tells the reader, not what it looks like in detail. For a button image, write the words of the button.
- Leave out "image of" and "picture of". A screen reader already says that it is an image.
- If the image holds text, such as an offer or a date, put that text in the alt text. Better still, put it in the email as real text.
- A decoration gets an empty alt:
alt="". Do not leave the attribute out. - This follows WCAG success criterion 1.1.1 (non-text content): every image that carries meaning needs a text that serves the same purpose.
Worked example
The example on this page has 8 images in a table. The logo has the alt text Example Garden Shop: it has alt text. The large picture has no alt attribute. The button image is alone inside a link and has an empty alt, so the link has no name. One image has the alt text tulips.jpg, which looks like a file name. The divider line and the 1 by 1 pixel have an empty alt, which is right for them. Two images of one cut picture share the alt text Tulips in a row, so the second one is marked.
The result is: 8 images found, 4 with alt text, 3 with an empty alt, 1 with no alt attribute, and 4 images that need a look.
Limits you should know
- The page reads the alt attribute. It does not load or look at any image, so it cannot say if the words fit the picture.
- It reads
<img>tags. Background images are only counted, because they cannot have alt text. Images that Outlook draws from comments in the HTML are not read. - A style rule in a
<style>block is not applied. Onlyhiddenanddisplay:noneon a tag itself count as hidden. - A list with no notes does not prove that the email is accessible. Alt text is one part of that. Contrast, structure, link words and reading order need their own checks.
- The limit for long alt text is a rule of thumb that you can change. No standard sets a number.
- Broken HTML is read with the usual repair rules, as a browser would. Very unusual cases can differ.