Home >Guides

SEO Alt Text: The Rules Google Actually Checks

Published Updated

Most “SEO alt text rules” articles make the job sound like a ritual: use the keyword once, stay under 125 characters, never start with “image of,” and you will rank. Google's actual guidance is shorter and less magical. Alt text helps Google understand an image, and it helps people who cannot see the image. Those two jobs usually point in the same direction.

Here is the version I would hand to an editor: the rules that are documented, the myths that keep getting repeated, and a quick audit you can run on a real page.

What Google actually says

Google's image documentation makes three useful points. First, alt text is the most important piece of image metadata it uses. Second, Google combines alt text with computer vision and the surrounding page content; it is not reading the alt attribute in isolation. Third, descriptive filenames can give “very light clues,” which is why a real filename beats IMG_2048.jpg.

That is the foundation. No published character limit, no required keyword density, no separate “alt text score” in Search Console. If a tool invents a number, it is a guideline from that tool, not a Google rule.

Rule 1: describe the image's job in context

The same photo can need different alt text on different pages. A red bicycle against a brick wall might be “red touring bicycle with a loaded rear rack” on a cycling blog. On a page about brick restoration, the bike may be irrelevant and the wall is the subject. Alt text is not a permanent property of the file. It describes the image's role on that page.

A useful test: hide the image. What would the reader miss? Put that in the alt attribute. If the answer is “nothing,” the image may be decorative.

Rule 2: use an empty alt for decorative images

The W3C's alt decision tree is clear: if an image is purely decorative or its information is already in nearby text, use alt="". An empty alt tells a screen reader to skip the image. It is a decision, not a missing value.

This is where many SEO plugins cause damage. They flag an empty alt as an error and push the author to fill it with keywords. For a divider, a background flourish, or a stock photo that adds nothing, the empty attribute is the correct answer.

Rule 3: for a linked image, describe the destination

When an image is the only content of a link, its alt text becomes the link's accessible name. Describe where the link goes or what it does. “Search” is better than “magnifying glass.” “Read the GPT Image 2 guide” is better than “photo of a camera.”

Google's documentation also notes that alt text can act as anchor text when an image is used as a link. That is another reason to describe the destination, not to stuff a keyword into the picture description.

Rule 4: complex images need text nearby

A chart, a detailed diagram, or a screenshot with many labels is hard to summarize in one attribute. The W3C recommends putting the essential information in nearby text and using the alt attribute to point to it or summarize the main takeaway.

For a revenue chart, “Chart showing revenue rising from $2.1M in January to $4.8M in June” is a start. If the exact monthly values matter, put them in a table or a paragraph next to the image. Do not cram a data table into alt text.

Rule 5: do not stuff keywords

Google's guidance explicitly warns against filling alt attributes with keywords. It makes the page worse for screen-reader users, and it can look like spam. A keyword that accurately describes the image is fine. The same phrase repeated across ten images is not.

Filenames matter a little, too. A short descriptive filename can reinforce the subject. It will not rescue an irrelevant image or replace the alt attribute. Rename the file when it is easy; do not spend a day renaming thousands of images before fixing the pages they sit on.

Rule 6: describe text in images carefully

If an image contains text that is also available as real text nearby, an empty alt is often correct. If the text is the only content, repeat it in the alt attribute. If the text is part of a logo, use the brand name rather than spelling out every letter.

Do not guess at blurry text. “Label partially obscured” is more honest than inventing a product name. For a product page, a wrong label is a factual error, not an SEO detail.

Six examples that show the difference

ImageWeak altBetter alt
Product mug on a desk“mug”“Matte cream ceramic mug with a squared handle on a pale oak desk”
Revenue chart“chart”“Revenue rose from $2.1M in January to $4.8M in June; monthly values in the table below”
Export dialog screenshot“screenshot”“Export dialog with WebP selected and the quality slider set to 85”
Magnifying-glass icon link“icon”“Search”
Decorative wave divider“blue wave background SEO”alt=""
Team photo on an About page“team”“Five team members standing in front of the studio's brick wall”

The myths worth dropping

“Alt text must be under 125 characters.” No official limit exists. Short is often better, but a complex image may need more. Use the shortest text that conveys the job.

“The exact keyword must appear.” No. Accurate description comes first. If the keyword fits, fine. If it makes the sentence unnatural, leave it out.

“Every image needs alt text.” Every informative image does. Decorative images should have an empty alt. A plugin that treats empty as an error is not giving you accessibility advice.

“Alt text is a ranking factor I can optimize separately.” Google uses alt text as one input among page content, captions, links, and vision. It is not a lever you can pull independently of the page.

“A long description in alt improves SEO.” It usually makes the screen-reader experience worse. Put the long version in a caption or body text; keep the alt useful.

A 20-minute alt text audit

  1. Export the page's images. List the URL, the alt value, and where the image sits in the content.
  2. Flag missing alt attributes. Distinguish “missing” from “intentionally empty.” They are not the same defect.
  3. Flag duplicated alt text. The same sentence on every image usually means nobody looked at the images.
  4. Flag filename alt.hero-final-v3.jpg is not a description.
  5. Read each alt with the heading and paragraph. Does it add meaning, or repeat what is already there?
  6. Check linked images. Does the alt describe the destination or action?
  7. Check complex images. Is the key information available in text nearby?
  8. Test with a screen reader or accessibility tree. Listen to the page. You will hear padding and repetition faster than you can spot it in a spreadsheet.

Implementation notes for a CMS

The best alt text workflow is boring, which is a compliment. Make the field required for informative images, allow an explicit “decorative” choice, and show a preview of the image next to the field. Do not silently copy the post title into every alt attribute. Do not let a bulk tool overwrite alt text that an editor already wrote.

For image-heavy pages, store the alt text with the image record, not in a separate spreadsheet that goes stale. When the image changes, the alt should change with it. When an image is reused in a new context, review the alt again; the old description may no longer fit.

If you use an AI describer, treat the output as a draft. It can see color and composition, but it does not know why you chose the image. On PixelToPrompt's Image Describer, the output is plain English rather than prompt syntax, which makes it easier to edit into alt text or a caption. Correct the names, counts, and product details before publishing.

For more real examples, see the 55 alt text examples and the comparison of alt text vs image description.

The short version

Describe what the image contributes, in the context of the page. Use an empty alt when it contributes nothing. Describe the destination when the image is a link. Put complex information in nearby text. Skip the keyword stuffing. That is the rulebook. Everything after it is editing.

FAQ

Is there a character limit for alt text?
Google does not publish an alt text character limit. 125 characters is a common working target because some screen readers and authoring tools handle shorter text more predictably, not because Google enforces that number.

Does alt text need the exact keyword?
No. Describe the image in the context of the page. If the keyword fits naturally and accurately, use it. Forcing it into every image is keyword stuffing, which Google's guidance warns against.

Should every image have alt text?
Every informative image needs a useful alt attribute. A purely decorative image should use an empty alt, alt="", so assistive technology can skip it.

Does alt text improve rankings directly?
Google says it uses alt text along with computer vision and page content to understand an image. That is not the same as a direct ranking boost. A good page, useful images, and relevant context still do most of the work.

What should alt text say for a linked image?
Describe the destination or action, not the picture. If a magnifying-glass icon links to search, alt="Search" is more useful than alt="magnifying glass icon".

Can I auto-fill alt text from the post title?
It is better than leaving the attribute empty, but it often produces the same generic phrase on every image. Auto-fill should be a starting point that an editor can correct, not a permanent replacement for looking at the image.

FAQ

Is there a character limit for alt text?
Google does not publish an alt text character limit. 125 characters is a common working target because some screen readers and authoring tools handle shorter text more predictably, not because Google enforces that number.
Does alt text need the exact keyword?
No. Describe the image in the context of the page. If the keyword fits naturally and accurately, use it. Forcing it into every image is keyword stuffing, which Google's guidance warns against.
Should every image have alt text?
Every informative image needs a useful alt attribute. A purely decorative image should use an empty alt, alt="", so assistive technology can skip it.
Does alt text improve rankings directly?
Google says it uses alt text along with computer vision and page content to understand an image. That is not the same as a direct ranking boost. A good page, useful images, and relevant context still do most of the work.
What should alt text say for a linked image?
Describe the destination or action, not the picture. If a magnifying-glass icon links to search, alt="Search" is more useful than alt="magnifying glass icon".
Can I auto-fill alt text from the post title?
It is better than leaving the attribute empty, but it often produces the same generic phrase on every image. Auto-fill should be a starting point that an editor can correct, not a permanent replacement for looking at the image.

Table of Contents

Information

  • Hits46
  • Published date2026/11/13

More Posts

Explore more articles from this section
Feedback email