Alt text SEO: what Google says actually helps
Write alt text for the person who cannot see the image, and use a keyword only where it truly describes the picture. Google says it uses alt text with computer vision and page content to understand images, and warns that keyword stuffing hurts the experience and may look like spam. No ranking is promised.
Published . Last reviewed .
Alt text is often treated as a place to put keywords. Google's own image documentation points the other way. It calls alt text the most important attribute for giving an image metadata, and it asks for useful descriptions written in the context of the page. This guide goes through what that documentation says, what it leaves out, and how to write alt text that serves a screen reader user and a search engine at once. It makes no ranking promises, because its sources make none.
Missing alt text is common, so the basics are not wasted effort. The WebAIM Million 2026 analysis found that 16.2% of all home page images, 10.8 per page on average, had missing alternative text (not counting alt=""). Our sources are Google's image SEO best practices (the page shows an update date of March 2, 2026), Google's spam policies, the W3C and WebAIM. For how to write alt text in the first place, start with our complete guide to alt text and the alt text examples.
What Google's image documentation says
Google's page covers more than alt text. These are the parts that matter for writing it, with our reading of what each means in practice.
| Topic | What Google's page says | What it means for you |
|---|---|---|
| Alt text | Calls it the "most important attribute when it comes to providing more metadata for an image." Google uses it along with computer vision and the contents of the page to understand the image's subject. | Write it for every informative image. |
| Keywords | Asks for "useful, information-rich content that uses keywords appropriately" in the context of the page, and warns that stuffing "may cause your site to be seen as spam." | Use a keyword only where it describes what is in the image. |
| Image links | Alt text is useful as anchor text when an image is used as a link. | Name the destination or action. That is also the accessibility rule for linked images. |
| File names | The file name gives "very light clues." Use short, descriptive names, so my-new-black-kitten.jpg rather than IMG00023.JPG, and avoid generic ones such as image1.jpg. | Rename files, but never use a file name as the alt text. |
| Captions, titles and nearby text | Google extracts information about an image's subject from the page content, including captions and image titles, and advises placing images near relevant text on relevant pages. | Put the words you want tied to the image in visible text beside it. |
| Real image elements | Google finds images in the src attribute of img elements and does not index CSS images. | Keep content images in img elements. Use CSS only for decoration. |
| Accessibility | Notes that alt text improves accessibility for people who cannot see images, including screen reader users and people on low-bandwidth connections, and tells authors to consider accessibility "per W3 guidelines." | Follow the W3C decision tree, as in our examples. |
| The page around the image | The content and metadata of the page where an image is embedded can have a great influence on how and where the image may appear. | Image SEO is page SEO as well. |
What the documentation does not say
- It gives no weight for alt text compared with other signals, no length limit, and no figure for traffic or ranking.
- It does not tell you to put a keyword in every alt text.
- It does not discuss decorative images or empty alt at all. Nothing on the page supports a claim that
alt=""on decoration costs you anything.
WebAIM's alt text article, last updated in October 2021, says in the same direction that search engines use alternative text and factor it into their assessment of the page's purpose and content. It gives no numbers either. A claim of a specific ranking gain from alt text goes beyond these sources.
Common advice, checked against the sources
| The tip | What the sources say | Do this instead |
|---|---|---|
| Put your target keyword in every alt text. | Google asks for keywords used appropriately and in context, and calls stuffing a poor experience that may look like spam. | Include a keyword only when it describes the image. |
| Longer alt text ranks better. | Google's page gives no length guidance, and WCAG sets no limit. WebAIM asks for succinct alt text, with anything that will not fit provided elsewhere on the page. | Make it as short as the image's purpose allows. |
| Start with "image of". | No benefit is stated. WebAIM notes that screen readers already announce an image. | Start with the content. |
| Alt text is the only thing Google reads. | Google says it also uses computer vision, the page contents, captions, titles and file names. | Work on the page around the image, not only the attribute. |
| An empty alt hurts SEO. | Google's page does not address decorative images. The W3C says decoration gets an empty alt. | Follow the decorative image rules. |
Keyword stuffing: what it is and why it fails twice
Google's spam policies define keyword stuffing as filling a page with keywords or numbers to manipulate rankings, often in lists or groups, unnaturally or out of context. The image documentation applies the same idea to alt text. Its example ladder runs from a missing alt, to an attribute packed with puppy and dog terms and "cheap dogfood," to a bare "puppy," to the best version, "Dalmatian puppy playing fetch."
It fails twice. Search is one failure: Google says stuffing results in a negative user experience and may get a site treated as spam. The listener is the other. Every extra term is something a screen reader user may have to sit through before the next thing on the page. WebAIM calls injecting "information directed to search engines" into alt text a mistake "too commonly seen across the web." Here is the same idea on an invented product page. The photo shows a matte black gooseneck kettle with a wooden handle on a kitchen counter, and the target keyword is "gooseneck kettle."
| Version | Alt text | Verdict |
|---|---|---|
| Stuffed | alt="gooseneck kettle best gooseneck kettle buy gooseneck kettle cheap electric kettle pour over" | A keyword list. Words like "cheap" and "electric" are not in the picture, and a screen reader user may have to sit through all of it. |
| Generic | alt="kettle" | Not wrong, but it says little. Google's own ladder ranks a bare "puppy" below a specific description. |
| Written for the listener | alt="Matte black gooseneck kettle with a wooden handle" | The keyword is there because the photo shows it. |
| Forced phrase | alt="Matte black gooseneck kettle for a pour over coffee kit" | The photo shows no kit. If the page sells a kit, say so in the heading or caption, or show the kit in a photo. |
A quick test: read the alt text aloud. If a word is there only because you want to rank for it, take it out of the alt text and put it somewhere that is true, such as the caption, a heading or the sentence beside the image.
File names, captions and the text around the image
File names. Google calls the file name a very light clue and recommends short, descriptive names, so matte-black-gooseneck-kettle.jpg is better than IMG_4471.jpg. A descriptive file name is not alt text and cannot replace it. The reverse mistake happens too: a CMS fills the alt field from the file name, and nobody replaces it. Our free scan flags alt text that is a filename or a placeholder such as "image".
Captions. A caption is visible to every visitor and, Google says, a source of information about the image's subject. Use the caption for what the page wants to say about the picture and the alt text for what the picture shows. WebAIM advises that the alt text and the figcaption should not repeat each other.
The text around the image. Google advises placing images near relevant text, on pages that match the image's subject. That also helps people. For product pages, see our guide to alt text for product images, and for where to edit alt text on your platform, Shopify and WordPress.
Real image elements. Google's page contrasts an img element with a div that has a CSS background and states that CSS images are not indexed. So an image that carries content belongs in an img element with alt text. For an inline SVG, Google's example gives the svg an aria-labelledby that points to its title element; our chart alt text guide shows an SVG pattern in full.
The path where accessibility and SEO agree
Where SEO folklore and accessibility pull apart, the sources split. On stuffing, Google's documentation sides with the listener. On very long alt text, "image of" and decoration, Google says nothing, and the W3C and WebAIM guidance applies. The path that satisfies both is short:
- Decide what the image is for. Informative, functional, decorative or complex. The W3C decision tree in our examples walks through it.
- Write for the listener. One sentence on what the image shows in this context, without "image of."
- Check for a natural keyword. If your target phrase accurately describes the image, such as the product type or subject, it is probably already there. If it does not, leave it out.
- Put everything else where Google says it looks. The file name, a caption, image titles and the text beside the image.
- Match the markup to the job. Content images in
imgelements. Decoration in CSS or with an empty alt, per the decorative image guide. Charts with a long description. - Have the result checked against the picture. A person, or a tool that opens the image, compares each alt text with its image.
No ranking promise
Nothing on this page says alt text will raise your rankings. Google says it is one input among several and does not say how much it weighs. Write alt text because it lets more people use your page, and treat any search benefit as a possible side effect.
Where our tools fit
The alt text generator has three styles. Its SEO style tells the model to write alt text that is accurate for screen reader users and useful for image SEO, to work in one of your target keywords only if it genuinely matches the image, and never to stuff keywords that do not fit. The Descriptive style is the default and the one we suggest for most images. The generator cannot see your page, so use the context field, and read every draft against the image. We have not measured how accurate generated alt text is; our accuracy test covers judging existing alt text, not writing it.
The alt text checker is not an SEO tool. It downloads up to six images from a page and asks whether each alt text is true of its image. It does not measure keyword density, rankings or search visibility. What it does help with is the part Google and the W3C agree on: alt text that matches what the picture shows. See what we check for exactly what the scan and the audit cover.
Alt text is an accessibility requirement before it is a search tactic. It is the subject of WCAG 1.1.1, and it is one part of making a website accessible.
Alt text and SEO questions
Does alt text help SEO?
Google says it uses alt text along with computer vision and the contents of the page to understand an image, and calls it the most important attribute for image metadata (image SEO best practices). The page gives no weight, ranking effect or traffic figure, so no one can promise a result from alt text alone.
How many keywords should alt text contain?
Google gives no number. It asks for keywords used appropriately and in context, and warns against stuffing. A practical rule: include a keyword only if it is part of what the image shows, which usually means one at most.
How long should alt text be for SEO?
Google's image page sets no length, and WCAG sets none either. A common rule of thumb is about 125 characters. WCAG, Google and WebAIM do not set one. The best length is as short as the image's purpose allows, with complex images explained in text on the page.
Do file names matter more than alt text?
Google calls alt text the most important attribute for image metadata and describes the file name as a very light clue. Do both: a short descriptive file name and real alt text. Neither replaces the other.
Is text written for screen readers treated as spam?
Google's spam policies say hidden text used to manipulate search engines is a violation. The same page lists text that is only accessible to screen readers and intended to improve their experience among the things that do not violate its policies. The intent matters: a long description for a chart helps people, while a hidden keyword list does not.
Can AI write SEO-friendly alt text?
It can draft it. Our generator's SEO style uses a keyword only when it matches the image. Read every draft against the picture and the page, because a draft can be wrong about what is in the image, and wrong alt text helps no one.
Is the alt text on your site true of your images?
Our free checker downloads up to six images from any page and asks whether each alt text is true of its image. It measures accuracy, not rankings. No account, just an email address once, and one check a day.
Check if my alt text is actually rightFind the images missing alt text
The free scan finds missing and placeholder alt text across up to 3 pages of your site, alongside the other rule-based WCAG checks. No signup.
Scan my site for free