Alt Text

SEO, AEO & GEO Glossary

Alt text is the description in an image's HTML alt attribute. Screen readers read it aloud, and search engines use it to understand what the image shows.

What is Alt Text?

Alt text (alternative text) is a written description of an image placed in the alt attribute of the HTML img element. Screen readers read it aloud for blind and low-vision users, browsers display it if the image fails to load, and search engines use it to understand what the image depicts and how it relates to the page.

Alt text began as an accessibility requirement, and it remains one under the Web Content Accessibility Guidelines (WCAG). Its SEO value follows from the same idea: search engines cannot always interpret an image reliably, so a precise text description helps them index it for Google Images and connect it to relevant queries.

How to use it

Use the W3C’s simple decision process:

  1. Is the image decorative? Use an empty alt attribute so assistive technology ignores it.
  2. Is it a link or button? Describe the destination or action, such as “Download the 2026 report”.
  3. Does it contain text? Include that text in the alt.
  4. Is it informative? Describe what it shows and why it is on the page.
  5. Is it complex (chart, diagram)? Give a short alt and provide full details in the surrounding text.

Example markup: an img element with alt=“Line chart of organic sessions rising from January to June”.

Examples

ImageWeak altBetter alt
Product dashboard screenshot“screenshot”“GrackerAI dashboard showing citation share across AI engines”
Team photo“team”“Marketing team reviewing a content calendar on a whiteboard”
Divider graphic“line”Empty alt (decorative)
Bar chart“chart”“Bar chart comparing demo requests by channel, organic highest”

Best practices

  • Be specific and concise. Describe the content, not “image of”.
  • Match context. The same image can need different alt text on different pages.
  • Keep text out of images where possible. Real HTML text is more accessible and indexable.
  • Audit at scale. Crawlers like Screaming Frog flag missing alt attributes.
  • Use descriptive file names and nearby captions as supporting signals.

Common mistakes

  • Stuffing keywords, which Google’s image guidelines discourage.
  • Leaving alt text as the CMS default, such as the file name “IMG_4021”.
  • Repeating the caption word for word, which screen readers then read twice.
  • Adding alt text to decorative images, adding noise for screen reader users.

Multimodal AI systems can analyze images directly, but text remains the most reliable way to communicate what an image means. Descriptive alt text and captions make charts and screenshots understandable to crawlers and language models that process the HTML. See how AI engines cite sources.

Sources

Frequently asked questions

How long should alt text be?

Long enough to describe the image's purpose, usually one short sentence. There is no official SEO character limit, but many screen reader users prefer concise descriptions. Complex images such as charts should have a short alt plus the full data in nearby text or a table.

Should every image have alt text?

Every img element should have an alt attribute. Informative images need a description. Decorative images, such as background flourishes, should use an empty alt attribute (alt with no text) so screen readers skip them. Images used as links always need alt text that describes the destination.

Should I put keywords in alt text?

Only when they describe the image naturally. Google's guidance warns against keyword stuffing in alt attributes. A precise description, such as 'dashboard showing AI citation share by engine', serves users and search engines better than a list of keywords. Write for people first.

On-Page SEOAccessibilityImage SEO

Do not let AI keep
recommending someone else

Start your 7-day free trial and get your AI Visibility Score in about a minute. See exactly where you stand, where competitors are beating you, and the ranked fixes to get into the answer. Cancel anytime before the trial ends.

7-day free trial. Cancel anytime before it ends. Trusted by 500+ B2B SaaS teams.

Partnered with
Powered by