Free auditStart free
GlossaryGlossary · On-page SEO

Alt text

Alt text describes an image for screen reader users and helps Google understand it. How to write it, when to leave it empty, and what counts as keyword stuffing.

3 min
read
2
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Alt text is the value of an image's alt attribute, text that describes what the image shows. Screen readers can read it to people who can't see the image, and Google uses it, along with computer vision and the page's content, to understand the image. Google's guidance is to write useful, information-rich text that fits the page, and to avoid stuffing it with keywords.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Check it

What alt text is

Google calls alt text "text that describes an image" and says it is the most important attribute for giving an image metadata. It also "improves accessibility for people who can't see images on web pages, including users who use screen readers or have low-bandwidth connections."
Alt text on an image
<img src="dalmatian-puppy.jpg" alt="Dalmatian puppy playing fetch">
02Side by side

How to write it

Google's instruction: "When writing alt text, focus on creating useful, information-rich content that uses keywords appropriately and is in context of the content of the page." Its own examples run from missing, to alt="puppy", to the best version, alt="Dalmatian puppy playing fetch".
ApproachExampleQuality
Missing alt attribute<img src="puppy.jpg">No – Google's example of what to avoid
Keyword stuffedalt="puppy dog baby dog pup pups puppies"No – can look like spam
Basicalt="puppy"Better, per Google, but vague
Descriptivealt="Dalmatian puppy playing fetch"Yes – Google's best example

Google warns that keyword stuffing in alt "results in a negative user experience and may cause your site to be seen as spam." Google gives no character limit. Many writers keep alt text to a short phrase or sentence because screen reader users hear all of it; treat that as style advice, not a rule.

03Checklist

Different image types

  1. 01Decorative images (spacers, purely visual flourishes): use an empty alt="". The W3C says this lets them "be ignored by assistive technologies"; omitting the attribute can make some screen readers announce the file name instead.
  2. 02Images used as links: Google says alt text is useful as anchor text if you use an image as a link.
  3. 03Inline SVG: Google says that for inline <svg> elements you can use the <title> element.
  4. 04CSS background images: Google says it doesn't index CSS images and finds images in the src attribute of <img> elements, so content images should not live in CSS. The W3C suggests CSS backgrounds only for decorative images.
04How it works

How to check your site

Check images that matter for content first: product photos, hero images, charts.
  1. 1

    Inspect one image

    Right-click the image, choose Inspect, and look for the alt attribute on the <img> element.

  2. 2

    Search your templates

    Search your theme or component code for <img tags without alt, and for templates that fill alt with the file name or the page title for every image.

  3. 3

    Read it as a listener

    Read the alt text out of context. If it does not tell a screen reader user what the image adds, rewrite it.

05Checklist

Common mistakes

First2
Leaving alt off informational images.
Repeating the same keyword phrase as alt text on every image.
Next1
Repeating adjacent text word for word. The W3C says an image already described by adjacent text can use an empty alt="".
Then1
Treating a content image as decorative. The W3C says only the author can decide, based on why the image is on the page.
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Does alt text help SEO?

Google says it uses alt text, along with computer vision and the page's content, to understand an image, and that alt text works as anchor text when an image is a link. It also says to write for the page context, not for keywords. The accessibility benefit is the more reliable reason to write it well.

02What happens if an image has no alt text?

Google has no information from alt about the image. Screen reader users may get nothing useful, and per the W3C some screen readers announce the file name instead. For a decorative image, use an empty alt="" on purpose.

03How long should alt text be?

Google does not state a maximum. Aim for the shortest text that conveys what the image adds to the page, usually a phrase or one sentence.

Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  • w3.org
  1. 01Google Images SEO best practicesdevelopers.google.com · checked 2026-10-24
  2. 02Decorative images - W3C Web Accessibility Tutorialsw3.org · checked 2026-10-24
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly