Skip to content
TechDellahome
Glossary · Seo

What Is Alt Text? How to Write It, With Examples

Alt text is the written description attached to an image on a web page. If someone uses a screen reader, they hear the alt text instead of seeing the image. If the image fails to load, the alt text appears in its place. Search engines read it too, as one of the main clues to what an image shows. Good alt text is short, specific and describes what matters about the image in its context.

Key takeaways

  • Alt text serves people first: screen reader users rely on it to understand images.
  • Google calls alt text the most important attribute for giving it image metadata.
  • Describe what the image shows and why it's there. Don't stuff keywords.
  • Decorative images should have an empty alt attribute (alt=""), not a missing one.

Why alt text matters

It’s an accessibility requirement first. The Web Content Accessibility Guidelines (WCAG) require a text alternative for non-text content, and missing alt text remains one of the most common failures on the web.

Missing alt text is still widespread

It also helps search. Google’s image SEO guidance says it uses alt text, along with computer vision and page content, to understand what an image shows. When an image is a link, its alt text works like anchor text.

Good and bad alt text, side by side

Image Weak alt text Better alt text
Team photo on About page “image1.jpg” “The TechDella team planning a campaign around a whiteboard”
Product dashboard screenshot “SEO software SEO tool best SEO dashboard” “Dashboard showing organic clicks rising over six months”
Chart in a report “chart” “Bar chart of leads by channel, with email the largest source” (with the full data in the text)
Decorative divider line “line” alt=”” (empty, so screen readers skip it)
Linked logo in the header “logo” “TechDella home”

The pattern: describe the content and the purpose, not the file. For a linked image, describe where the link goes.

Myth vs fact

MythAlt text is mainly an SEO tactic, so include your keyword.
FactAlt text is for people who can't see the image. Google warns against keyword stuffing in alt attributes. Use a keyword only where it naturally describes the image.
MythEvery image needs a long description.
FactMost alt text should be one short sentence. Decorative images need an empty alt. Complex charts need a short alt plus the data in the surrounding text or a table.

Example from our work

When we audit a site, alt text tells me a lot about how the team works. Empty or keyword-stuffed alt attributes usually mean images were uploaded in a rush with nobody thinking about the reader. My fix is procedural: make alt text part of the upload step, write it as if you were describing the image to a colleague on the phone, and leave decorative images empty on purpose.

Joanna Okedara-Kalu Founder & CEO, TechDella

How to write alt text

Write useful alt text in under a minute

  1. Ask why the image is there

    If removing it loses nothing, it's decorative. Use alt="".

  2. Describe what matters

    Say what the image shows that's relevant to the page: people, action, data, or text in the image.

  3. Keep it short

    Aim for one sentence. Screen readers read it in full, so avoid filler.

  4. Skip "image of"

    Screen readers already announce it's an image.

  5. Include text shown in the image

    If the image contains words, such as a banner or quote, put those words in the alt text.

  6. Check it in context

    Read the paragraph around the image, then the alt text. It should fill the gap, not repeat the caption.

Alt text on social media

LinkedIn, Instagram, X and Facebook all let you add alt text to images. The same rules apply: describe the image for someone who can’t see it. It takes seconds and makes your posts usable for more of your audience.

Our on-page SEO checker flags images without alt text on any page. Alt text is part of a sound technical SEO setup, alongside schema markup for describing content machines can’t see.

Frequently asked questions

How long should alt text be?

Usually one short sentence, often under about 125 characters, although there's no strict limit in HTML. Some screen readers and tools handle long alt text poorly. If an image needs a longer explanation, such as a detailed chart, put that in the page text or a caption.

What is the difference between alt text and an image caption?

A caption is visible to everyone and usually adds context or credit. Alt text replaces the image for people who can't see it. They shouldn't be identical. If the caption already describes the image fully, keep the alt text brief.

Does alt text help SEO?

Yes. Google uses it to understand images, which helps them appear in Google Images and gives context to the page. Its biggest value is still accessibility, and accessible pages tend to be clearer for everyone.

Should every image have alt text?

Every image should have an alt attribute. Meaningful images need a description; purely decorative images should use an empty alt (alt="") so screen readers skip them. A missing alt attribute is the problem, because some screen readers then read the file name.

How TechDella can help

Our technical SEO service includes an image and accessibility audit, with fixes built into your templates.

Back to the glossary