Alt text

Alt text is a short written description of an image, added in the image's HTML alt attribute. Screen readers read it aloud for people who can't see the image, and search engines use it to understand what the image shows.

Alt text (alternative text) is the text in the alt attribute of an image. It describes what the image shows. If the image cannot load, browsers display the alt text instead. Screen readers read it aloud to people with visual impairments. And search engines use it, together with the file name and surrounding text, to understand the image.

Why alt text matters

  • Accessibility. This is its main purpose. Without alt text, blind and partially sighted visitors miss whatever the image communicates. Accessibility guidelines such as WCAG require text alternatives for meaningful images, and the European Accessibility Act has made accessibility a legal requirement for many businesses that sell to consumers.
  • Image search. Google Images and image results within normal search rely on alt text to understand what an image shows.
  • Context for the page. Alt text adds a little extra information about the page's topic.
  • Linked images. When an image is a link, its alt text acts like anchor text.

How to write good alt text

  • Describe what is shown, in plain words, as you would to someone on the phone.
  • Keep it concise. Usually one short sentence is enough.
  • Include context that matters. "Bar chart showing website traffic doubling between January and June" is more useful than "chart".
  • Use a keyword only if it fits. If the image shows a red trail running shoe, saying so is natural. Don't add a list of keywords.
  • Skip "image of" or "picture of". Screen readers already announce it is an image.
  • Use empty alt for decorative images. An empty alt attribute tells screen readers to skip purely decorative images like dividers or background shapes.

Examples

  • Poor: alt="seo backlinks link building cheap"
  • Poor: alt="image1.jpg"
  • Good: alt="Marketing team reviewing a backlink report on a laptop"

Common mistakes

  • Leaving alt text empty on images that carry information, such as charts, product photos and infographics.
  • Keyword stuffing, which helps nobody and is ignored or seen as spam.
  • Using the same alt text for every image on a page.
  • Putting important text only inside an image, so it is invisible to screen readers and search engines.

In practice

Most content management systems, including WordPress, have an alt text field in the media library. Make filling it in part of your publishing checklist, also when you supply images for a sponsored article.

Questions about Alt text

Does alt text help SEO?

Yes, mainly for image search and as extra context about the page. Its main purpose is accessibility, which is also why it should describe the image rather than list keywords.

How long should alt text be?

Usually a short sentence. Many screen readers handle longer text, but concise descriptions are easier to listen to. Complex charts can be explained in the surrounding text.

Should every image have alt text?

Every meaningful image should. Purely decorative images should have an empty alt attribute so screen readers skip them.

Related terms