Alt Text

Alt text is the alt attribute on an img element. It helps accessibility and image search — but its effect on web search rankings is limited.

First published: Jun 25, 2026 · Last updated: Jul 18, 2026 · Advanced
demand #1 in Image SEO#4 in On-Page#24 in Technical SEO#33 on the site
1 evidence signal on this page

Alt text is the value of the alt attribute on an <img> element — a short text substitute chosen for the image's purpose and context, not a literal inventory of pixels. It's required by HTML and it's one input into accessibility conformance (not a guarantee of full ADA/WCAG compliance on its own), and it's the single most important piece of image metadata for search engines. The key nuance most guides miss: alt text primarily helps image search, not regular web search rankings — Mueller has said this repeatedly, and no reviewed official source promises a ranking, traffic, or AI-citation outcome from adding it. Write it for context, not just description; don't keyword-stuff it; don't start with 'image of'; use alt="" (not a missing attribute) for decorative images; describe the action or destination for functional and linked images; and remember that on a linked image the alt text acts as the anchor text. Missing alt attributes are the most common technical SEO issue on the web — 80.4% of sites have at least one.

TL;DR — Alt textAlt text is the value of the `alt` attribute on an HTML `<img>` element — a short text substitute chosen for the image's purpose and context, not a literal description of what it shows. It makes images accessible to screen-reader users and helps search engines understand images, mainly for image search. is the value of the alt attribute on an <img> element — required by HTML, an accessibilityWeb accessibility means designing sites so people with disabilities can use them, per the W3C's WCAG guidelines. It overlaps with SEO in specific, checkable ways — alt text, heading structure, descriptive link text, captions, and page speed all serve both audiences — but Google has said accessibility itself is not a ranking factor, and most WCAG success criteria (keyboard focus order, ARIA live regions, form labels) have no SEO effect at all. necessity, and the most important piece of image metadata for search. The nuance most guides botch: it primarily affects image search, not web search rankings (Mueller, repeatedly). Google reads it alongside computer vision and page context, so write for context, not bare description. Don’t keyword-stuff, don’t open with “image of,” and use alt="" (not a missing attribute) for decorative images. On a linked image, alt text acts as the anchor textAnchor text is the visible, clickable text of a hyperlink. It tells readers what they'll find on the other end and gives search engines context about the linked page.. There’s no Google character limit; 155 chars is a writing guideline. Missing alt is the single most common technical issue on the web — 80.4% of sites have at least one.

Evidence for this claim Informative images need a concise text alternative, while decorative images should use an empty alt attribute. Scope: W3C image accessibility guidance. Confidence: high · Verified: W3C WAI: Image concepts Evidence for this claim Google uses alt text together with page content and computer vision to understand an image's subject matter. Scope: Google Images alt-text guidance. Confidence: high · Verified: Google Search Central: Image SEO

What alt text actually is

Alt text is the value of the alt attribute on an HTML <img> element:

<img src="dalmatian-puppy.jpg" alt="Dalmatian puppy playing fetch">

It’s a short text substitute for the image — for screen-reader users, for crawlersA crawler — also called a spider or bot — is an automated program that fetches web pages, extracts their links, and queues new URLs to visit. Search engines use crawlers to discover and download content for their index., and for browsers where the image is disabled or fails to load. One terminology note worth getting right: it’s frequently called the “alt tag,” but that’s a misnomer. The tag is <img>; alt is an attribute on that tag. The label is so entrenched that I won’t fight it, but the precise term is the alt attribute, and the text inside it is alt text.

The alt attribute is required on <img> elements by the HTML specification. Omitting it entirely is a conformance error. An empty value (alt="") is valid and meaningful — it’s the correct way to mark a decorative image (more on that below).

Choosing what to write is not a matter of running through a universal description recipe. The right alt text is a function of the image’s purpose in that specific spot on the page — not a literal inventory of what’s in the frame. The same image can legitimately need different alt text (or an empty one) depending on where it sits and what the surrounding content already conveys; there’s no single “correct” caption independent of context.

Alt text has two separate SEO jobs — and one of them is overstated

This is the distinction most “alt text for SEO” guides blur, and it’s where the real value of this page is. Alt text does two different things for search:

  1. It adds text to the page. Google counts alt text as part of the on-page text. Mueller: “The alt text is essentially shown when the images are turned off in most browsers, so that’s something that we would count as part of the on-page text.” That’s real, but small.

  2. It signals what an image is about — for image search. This is the primary job. Google’s own documentation calls alt text “the most important attribute” for providing image metadata, and Mueller frames its effect as living in image search: “if someone is searching in Google Images for something that kind of matches the alt text, then we can use that to understand that your image is relevant.”

Here’s the part to internalize: adding alt text does not make a page rank higher in web search simply because it has images. Mueller put it directly: “It’s not the case that we would say a textual webpage has more value because it has images. It’s really just we see the alt text and we apply that to the image, and if someone searches for the image we can use that to better understand the image.”

So if your goal is image-search visibility (and the referral traffic that brings), alt text matters a lot. If you’re hoping alt text alone will lift your blue-link web rankings, you’ve got the wrong tool. This is the same point I make in my JavaScript SEO write-up: for web search, alt text counts as on-page text but its importance is often overstated — its real payoff is image search and accessibility.

It’s not the only signal Google uses

Alt text isn’t read in a vacuum. Google: “Google uses alt text along with computer vision algorithms and the contents of the page to understand the subject matter of the image.” Computer vision can already tell it’s a beach. The alt text’s job is the thing the model can’t infer — the context: why this image is on this page, and what it means here. That’s why Mueller’s 2024 advice lands so well: AI that spits out “photo of a beach” technically describes the pixels but wastes the opportunity, because “the alt-text is unique in that it’s what directly connects the image to the page with context.” The same beach photo might warrant different alt text on a surfing page versus a real-estate listing versus a climate article.

Before it’s an SEO asset, alt text is an accessibility requirement. WCAG 2.x Success Criterion 1.1.1 (Non-text Content), Level A requires a text alternative for non-text content. Screen-reader users rely on it; without it, an image is a dead spot in the page, and an omitted alt attribute can make some readers announce the raw filename instead.

That’s one success criterion among dozens. Getting alt text right satisfies 1.1.1 for your images, but it doesn’t by itself establish full WCAG conformance — or ADA compliance — for a page or a site. Those depend on separate criteria too (color contrast, keyboard access, form labels, heading structure, and more). Treat alt text as a necessary piece of accessibility, not the whole of it.

This has teeth. Missing alt attributes are routinely cited in ADA website accessibility lawsuits, which run into the thousands annually in the US. As I note in my JavaScript SEO guide, “missing alt attributes are an accessibility issue, which may turn into a legal issue.” That reframes the fix: it’s a compliance action first, an SEO action second. It’s also why SEO crawlersA crawler — also called a spider or bot — is an automated program that fetches web pages, extracts their links, and queues new URLs to visit. Search engines use crawlers to discover and download content for their index. (Ahrefs Site Audit included) flag missing alt under technical issues.

How to write alt text that works

  • Lead with context, not a caption. Describe what the image means for the page, not just what’s visually in it. Mueller, on image search: “you don’t necessarily need to describe exactly what is in the image, but rather kind of like what this image means for your particular page.”
  • Don’t start with “Image of” / “Photo of.” Google’s Lizzi Sassman: “We already are aware that it’s an image. You don’t need to say, ‘It’s an image of’ and then the thing.” A descriptive phrase is fine — it doesn’t have to be a full sentence.
  • Use keywords naturally, never stuff. Google: “focus on creating useful, information-rich content that uses keywords appropriately and is in context.” And the warning: “Avoid filling alt attributes with keywords… as it results in a negative user experience and may cause your site to be seen as spam.” Gary Illyes put it plainly: the alt text “shouldn’t be what you want to rank for, but what’s in the image.”
  • Don’t copy your surrounding paragraph into the alt. Mueller: “I wouldn’t just blindly copy and paste the same text that you already have on a page as an alt text.” The alt attribute is a unique opportunity to add context, not a duplicate.
  • There’s no Google character limit. Mueller: “we don’t have any guidelines with regards to how long your alt text can be.” The widely-cited “125 characters” comes from accessibility tools; Google’s Developer Style Guide suggests 155 characters or less as a writing guideline, not a hard cap. Keep it short because long descriptions interrupt the reading flow for screen-reader users — not because Google truncates it.
  • Use consistent alt text for repeated images. If the same image appears in multiple places, give it the same alt text.

Decorative images: alt="", not a missing alt

For purely decorative images — spacers, dividers, background flourishes that carry no information — the correct pattern is an empty alt attribute:

<img src="divider.svg" alt="">

alt="" tells assistive technology the image is decorative and should be skipped. This is not the same as leaving the attribute off. Omitting alt entirely is an HTML spec violation, and it can cause some screen readers to read the filename aloud. So: decorative gets alt="" (empty value present), never a missing attribute, and never a description. As I put it in my JavaScript SEO guide — fix alt for the main content images, but for placeholder or decorative images you can leave the alt blank (meaning alt="").

The test for “decorative”: does the image add information the page doesn’t already convey elsewhere — in the surrounding text, a caption, or the page’s structure? If not (a spacer, a repeated icon next to text that already says the same thing, a stock photo used as pure visual filler), it’s decorative and gets alt="". If it does add information nothing else on the page provides, it isn’t decorative, no matter how small or stylistic it looks.

Functional images: describe the action, not the icon

Some images are neither purely decorative nor a simple informative picture — they’re controls: an icon-only search button, a hamburger menu icon, a play button on a video thumbnail. For these, the alt text should describe what activating the control does, not what the icon looks like.

<!-- Weak: describes the icon -->
<button><img src="magnifying-glass.svg" alt="Magnifying glass icon"></button>

<!-- Better: describes the action -->
<button><img src="magnifying-glass.svg" alt="Search"></button>

A screen-reader user who hears “magnifying glass icon” doesn’t know what happens if they activate the control; “Search” tells them immediately. This is the same principle behind linked images below — alt text serves the image’s function on the page — but it applies even when there’s no <a> involved.

Linked images: alt text becomes anchor text

When an image is a link — wrapped in an <a> — its alt text functions as the anchor textAnchor text is the visible, clickable text of a hyperlink. It tells readers what they'll find on the other end and gives search engines context about the linked page. for that link. Google: “Alt text in images is useful as anchor text if you decide to use an image as a link.” An image-only link with empty alt is the equivalent of an empty anchor text, which is bad for both accessibility (the screen reader can’t describe the destination) and for the link signal. For a linked image, the alt text should describe where the link goes, not just what the picture shows.

Scope this precisely: what Google documents is specifically about using alt text as anchor text for a crawlable link. It’s narrower than the full “accessible name” computation browsers and assistive technology use, which can also pull from aria-label, aria-labelledby, or surrounding link text — alt text is one input into that broader calculation, not the whole of it.

SVGs are different

Inline <svg> elements don’t take an alt attribute — that’s for <img>. To give an inline SVG an accessible name, use a <title> element referenced with aria-labelledby:

<svg role="img" aria-labelledby="logo-title">
  <title id="logo-title">Acme Corp logo</title>
  <!-- paths… -->
</svg>

(An SVG referenced via <img src="logo.svg"> uses a normal alt attribute like any other image — this only applies to inline SVG markup.)

Anti-patterns to avoid

  • Keyword stuffing — the spam signal Google explicitly warns about.
  • Copying the surrounding paragraph into the alt attribute verbatim.
  • “Image of” / “Photo of” openers — redundant.
  • Omitting alt on decorative images instead of using alt="".
  • AI-generated “photo of X” descriptions that ignore page context.
  • Putting your company name in blank alt attributes. Mueller was blunt about this one: “It makes no sense, it seems like a waste of time to me: once wasted time to implement, and again wasted time to clean up later on.”
  • Confusing alt with the title attribute. The title attribute shows as a hover tooltip; it’s not alt text and carries little SEO or accessibility weight.

Finding and fixing missing alt text

Missing alt attributes aren’t an edge case — they’re the default failure state of the web. In our site audit study of over a million domains, 80.4% of sites had missing alt attributes on at least one page, making it the single most prevalent technical SEOTechnical SEO is the practice of making a site easy for search engines to crawl, render, index, and (now) be eligible for AI answers. It's the foundation that lets your content and links rank — not a ranking trick of its own. issue we foundA 302 (\"Found\") is a temporary redirect: it forwards users to a new URL while telling search engines the original URL should stay in the index. It's a weak canonicalization signal, not the zero-equity dead end of SEO folklore..

To find them:

  • Ahrefs Site Audit → Images report flags images missing alt attributes across your site. (Ahrefs Webmaster ToolsThe free, first-party consoles search engines give site owners — Google Search Console and Bing Webmaster Tools — to see how their pages are crawled, indexed, and ranked, and to fix problems. The legacy name is 'webmaster tools.' gives you this free for sites you verify.)
  • Manual spot-checks — inspect element on key content images, or use a browser accessibility extension.

Priority order when you fix them:

  1. Main content images first — the ones that carry meaning and can earn image search traffic.
  2. Linked images — empty alt here is doubly costly (anchor text + accessibility).
  3. Decorative images last — and the fix is alt="", not a description.
TIP Turn missing alt text into a review queue

The useful output is the affected image paths; each still needs a human decision about meaning, decoration, and link purpose.

Scan a page for missing alt attributes and related image issues with my free Image SEO Checker Free

  1. Review each reported image in its page context.
  2. Write concise contextual alt for meaningful images and destination-focused alt for image links.
  3. Use alt="" for genuinely decorative images instead of inventing a description.
Coverage identifies where to look; it cannot decide what an image means on the page.

A note on expectations: SearchPilot’s split tests on adding alt text have been inconclusive / not statistically significant for web rankings — consistent with the point above that alt text’s payoff is in image search and accessibility, not a web-ranking boost. And Mueller’s reassurance for sites starting from zero coverage: “if you’re just adding alt text for the first time, then sometimes, even any alt text is better than nothing.”

To be direct about it: nothing in this piece backs a guarantee that fixing alt text moves rankings, traffic, or AI-search citations by any set amount — no reviewed official source makes that promise, and the split-test evidence above is inconclusive. What alt text reliably does is close an accessibility gap and give Google’s Image Search algorithm metadata it explicitly says it uses.

For the bigger picture — filenames, image sitemapsAn image sitemap is a sitemap (or an extension added to an existing sitemap) that lists the images on your pages using Google's image namespace, helping Google discover images it might otherwise miss., lazy-loading, formats, and responsive images — see the broader image SEOImage SEO is optimizing the images on your pages so search engines can discover, crawl, index, and rank them — in Google Images and visual search, and as part of standard web results. It spans file format, filenames, alt text, compression, responsive markup, structured data, and image sitemaps. hub this article sits under.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.