Alt text is a short written description of an image in the page code. Screen readers read it aloud, browsers show it if the image fails to load, and search engines use it to understand the image. Find images with missing or poor alt text with the image alt text checker.

Quick answer: Write alt text that says what the image shows or does in this context, in a short phrase or sentence, as you would describe it to someone on the phone. Don't start with image of. Leave the alt attribute empty, alt with nothing between the quotes, for purely decorative images so screen readers skip them. For linked images and buttons, describe the action. Google uses alt text with surrounding text to understand images, and its example of good alt text is Dalmatian puppy playing fetch rather than puppy. Never stuff it with keywords.

Examples

Image Poor alt text Better alt text
Product photo shoes Women's navy running shoe with white sole, side view
Team photo image of staff Our five-person support team outside the Leeds office
Chart chart Bar chart: online sales rose from 20% to 35% of revenue between 2022 and 2026
Logo linking to home page logo Acme Sports home
Search icon button magnifying glass Search
Decorative divider divider line (empty alt)

The W3C decision tree in brief

  1. Does the image contain text? Put that text in the alt, unless it is already written nearby.
  2. Is it a link or button? Describe where it goes or what it does.
  3. Does it add meaning to the page? Describe the information it gives.
  4. Is it purely decorative? Use an empty alt.
  5. Is it complex, such as a chart or diagram? Give a short alt and explain the details in the text.

Alt text and SEO

Google says it uses alt text, along with page content and file names, to understand what an image is about, which helps images appear in Google Images. But Google's John Mueller has stressed that alt text decisions are mainly about accessibility, not SEO. Good descriptive alt text naturally includes the words people would use to describe the image.

How long should alt text be?

There is no strict limit, but most good alt text is a short phrase or one sentence. Some screen readers cut very long alt text into chunks. If an image needs a long explanation, put it in a caption or the main text.

Common mistakes

Other image basics

For social media, add alt text there too; see accessible social media posts. Check pages with the on-page SEO checker. More tools are in the SEO tools guide.

Based on W3C and Google guidance as at November 2026.

Frequently asked questions

What is alt text?

A short written description of an image in the HTML, read by screen readers and used by search engines to understand the image.

Should decorative images have alt text?

No. Give them an empty alt attribute so screen readers skip them.

How long should alt text be?

Usually a short phrase or one sentence. Put longer explanations in a caption or the main text.

Does alt text help SEO?

Yes. Google uses it to understand images, but it should be written mainly for people who can’t see the image.

Should I start alt text with image of?

No. Screen readers already announce that it is an image.

What alt text should a linked logo have?

Describe where the link goes, such as the company name and home.

Sources

Last updated: