What Is Alt Text?
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.
- Google calls the
altattribute “the most important attribute when it comes to providing more metadata” about an image for image search. - Alt text has three jobs at once: accessibility for screen-reader users, a fallback shown when an image fails to load, and a description search engines can index.
- Google’s own example of good alt text is concise and specific:
Dalmatian puppy playing fetch. - Stuffing the
altattribute with repeated keywords is flagged by Google as creating “a negative user experience” and can look like spam. - When an image is used as a link, Google treats its alt text as the link’s anchor text, so the same attribute carries two signals.
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.
- Describe the meaningful content. State what the image actually shows and why it’s on the page — the subject, the action, the relevant detail.
- Be concise. A phrase or short sentence. Google’s model example is just “Dalmatian puppy playing fetch.”
- Use keywords only where they fit naturally. If the image genuinely depicts your topic, the description will include the relevant words on its own.
- Empty alt for decorative images. A spacer or purely ornamental graphic should use
alt=""so screen readers skip it rather than announcing noise.
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 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 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?
Is alt text a ranking factor?
Should decorative images have alt text?
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
- Image SEO best practices — Use descriptive alt text — Google Search Central
- SEO Starter Guide — Add descriptive alt text to images — Google Search Central
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.
