Alt text is a short written description of an image. Screen readers read it aloud, browsers show it when an image fails to load, and search engines use it to understand what the image shows. Good alt text helps people first, and that is exactly what helps search too.
What alt text looks like
<img src="red-trail-shoe.jpg" alt="Red trail running shoe with a deep-lug sole">Good and bad examples
| Image | Weak alt text | Better alt text |
|---|---|---|
| Product photo | shoe | Red trail running shoe with a deep-lug sole |
| Team photo | image123 | Five members of the support team in the Leeds office |
| Chart | chart | Bar chart: organic visits rose from 1,200 in May to 3,400 in August |
| Logo linking home | logo | SEOAlertly home |
| Keyword stuffing | shoes running shoes best cheap shoes buy shoes | Blue road running shoe, side view |
How to write it
- Describe what matters in context. Ask what someone who cannot see the image needs to know here.
- Be specific and short. A phrase or one sentence is usually enough.
- Skip “image of” or “picture of”. Screen readers already announce that it is an image.
- For links, describe the destination. An image-only link needs alt text saying where it goes.
- For charts, give the takeaway. Put the full data in the page text or a table.
- Use keywords only where they describe the image. Stuffing them in helps no one.
When to use empty alt text
Purely decorative images, such as background flourishes, dividers or icons next to text that already says the same thing, should have an empty alt attribute:
<img src="divider.svg" alt="">Empty alt tells screen readers to skip the image. That is different from a missing alt attribute, where some screen readers read out the file name instead.
How to find images missing alt text
- Run a free SEOAlertly check. It counts images on the page, how many have no alt attribute and how many have an empty one.
- In your browser’s developer tools, search the Elements panel for
<imgand look at eachalt. - In your CMS, check the media library. Many platforms let you set alt text once per image.
Where to add alt text on common platforms
- WordPress: Media Library, select the image, fill in Alternative Text. In the block editor, select the image and use the sidebar.
- Shopify: open the product, click the image in Media, then Add alt text.
- Webflow: set alt text on the asset in the Assets panel, or override it on each image element.
- Wix and Squarespace: select the image, open its settings and fill in the alt text or image description field.
