What Is Alt Text?

Flavio AmielWritten byFlavio Amiel Founder, Roborank
Updated July 15, 2026

Alt text is a short, descriptive piece of text placed on the alt attribute of an HTML image element that explains what the image shows and how it relates to the surrounding content. Screen readers announce it to visually impaired users, browsers display it when an image fails to load, and search engines use it to understand and rank the image.

Key Takeaways

How Alt Text Works

Alt text lives in one place: the alt attribute of an HTML <img> element. In <img src="puppy.jpg" alt="Dalmatian puppy playing fetch">, the words after alt= are the alt text. That short string does three separate jobs, and its value comes from serving all three at once.

First, accessibility. A screen reader can’t interpret a photo, so when it reaches an image it reads the alt text aloud. For a visually impaired user, the alt text is the image. Google’s own SEO starter guide frames it exactly this way: alt text is “a short, but descriptive piece of text that explains the relationship between the image and your content.”

Second, fallback. When an image fails to load — a broken path, a blocked host, a slow connection that times out — the browser displays the alt text in the image’s place. A reader who never sees the picture still gets the meaning.

Third, search. A search engine can analyze pixels, but a human-written description is far more reliable. Google states plainly that the alt attribute is “the most important attribute when it comes to providing more metadata” for an image. It’s the main thing that decides how your image is understood in image search.

There’s a fourth, quieter role. When an image is wrapped in a link, Google uses its alt text as the anchor text for that link. So on a linked image the alt attribute describes the picture and labels the link destination simultaneously.

Writing Good Alt Text

Google’s guidance is short: write “useful, information-rich content that uses keywords appropriately and is in context,” and don’t stuff the attribute with keywords, because that “results in a negative user experience” and can look like spam.

Example of Alt Text

Google’s image documentation supplies a direct, worked contrast, which makes it the cleanest real example to learn from. For a photo of a puppy, Google gives the recommended alt text as Dalmatian puppy playing fetch — four words that name the subject, the action, and the specific breed. It’s accurate, it’s concise, and any keywords it contains (“puppy”) are there because they truly describe the image.

Google then shows the failure mode on the same image: an alt attribute stuffed with repeated variations like “puppy dog baby dog pup pups puppies doggies…” That version helps no one. A screen-reader user hears a meaningless string; a reader on a broken connection sees gibberish where the image should be; and a search engine that has learned to detect stuffed attributes reads it as manipulation rather than description. Google explicitly labels the stuffed version as bad practice that “results in a negative user experience.”

The third case Google names is the most common of all: no alt text at all, which leaves the image undescribed for accessibility, fallback, and search alike. Line the three up — the missing case, the stuffed case, and the concise “Dalmatian puppy playing fetch” — and the rule writes itself. Describe the image honestly and briefly, the way you’d narrate the page to someone who can’t see the screen. That single instinct produces alt text that serves accessibility and image SEO at the same time, which is exactly what Google is asking for.

The thing people get wrong

The single biggest mistake I see is teams treating alt text as an SEO keyword slot rather than a description. Alt text was invented for accessibility — it’s what a blind user hears when a screen reader reaches your image — and everything good about it for search flows from getting that job right. When you write "a bar chart showing organic clicks doubling from January to June 2025," you serve the screen-reader user and hand Google a precise, indexable description in one move. When you write "seo tool best seo software seo audit tool," you fail the human, you fail the search engine that’s gotten very good at spotting stuffed attributes, and you fail the person on a slow connection who only sees that gibberish when the image doesn’t load. Describe the image as if you were reading the page aloud to someone who can’t see it. That instinct produces better SEO than any keyword formula.

Frequently Asked Questions

What is alt text?
Alt text is a short description placed on an image’s alt attribute that explains what the image shows. Screen readers read it aloud to visually impaired users, browsers display it when an image can’t load, and search engines use it to understand the image’s content and context.
How long should alt text be?
Keep it short but descriptive — usually a phrase or a short sentence, not a paragraph. Google’s own example, “Dalmatian puppy playing fetch,” is four words. Describe the meaningful content of the image accurately and stop; don’t pad it with keywords or a full caption.
Is alt text a ranking factor?
Alt text is the primary way search engines understand what an image depicts, so it directly affects how an image ranks in image search and adds context to the page. It is not a text-ranking lever to stuff with keywords — Google treats keyword-stuffed alt attributes as a negative signal.
Should decorative images have alt text?
Purely decorative images that add no information should have an empty alt attribute (alt=""), which tells screen readers to skip them. Informative images that convey meaning need descriptive alt text. The distinction is whether a user would miss anything if the image vanished.

The Bottom Line

Alt text is the description you attach to an image so that people who can’t see it, and machines that can’t interpret it visually, both understand what it shows. Write it as a genuine, concise description of the image in its context — the way you’d narrate the page to someone over the phone — and you satisfy accessibility, image search, and the link signal all at once. Skip it or stuff it, and you lose all three.

Sources

  1. Image SEO best practices — Use descriptive alt textGoogle Search Central
  2. SEO Starter Guide — Add descriptive alt text to imagesGoogle Search Central
Roborank does this

Roborank flags images that are missing alt text or stuffed with keywords, and drafts accurate, accessible descriptions you can approve in one click.

Fix your image alt text →

Rank & Cash — the weekly SEO breakdown

One practical teardown a week on ranking in search and getting cited by AI. No fluff.