The Complete Image Alt Text SEO Guide for Better Rankings

Bad alt text hurts both screen reader users and your search rankings. This guide breaks down the 12-word rules that decide whether your images get seen—covering length limits, decorative vs. functional images, and the one mistake most SEOs make.

The Complete Image Alt Text SEO Guide for Better Rankings

Image alt text SEO guide: the 12 words that decide whether your image ever gets seen

Here's a test. Open your site in a browser, disable images, and look at what's left. If you see a grid of empty boxes with no text inside, you've just discovered how Google Images, screen readers, and every broken-load visitor experience your content. The text that should be sitting in those boxes is alt text, and most sites treat it as an afterthought.

I've audited hundreds of image tags on my own projects, and I'll be honest: my early alt text was terrible. I wrote things like "best coffee grinder review 2026 buy now cheap" and patted myself on the back for the keyword density. Then I ran a screen reader over the page. It sounded like a spam bot had a nervous breakdown. That moment changed how I think about alt attributes forever.

This guide covers what actually works: the length limits nobody tells you about, the difference between decorative and functional images, how to handle charts and graphs, and the one rule that separates useful alt text from keyword stuffing.

Key Takeaways

  • Alt text serves two masters at once: screen reader users and search engines. Skip one and you've failed both.
  • Keep it around 125 characters. That's roughly where Google and most assistive tools stop caring.
  • Decorative images get alt="" — an empty attribute, not a missing one. There's a real difference.
  • For image links, the alt text describes the destination, not the picture.
  • Graphs and infographics need a longer description placed in visible text nearby. Alt text alone can't carry a data table.
  • One keyword per image, maximum. Placement matters more than repetition.

What alt text actually does (and why the SEO crowd keeps getting it wrong)

Alt text is the written description that lives inside an image's HTML tag. Screen readers announce it. Browsers display it when an image fails to load. Search crawlers read it to understand what the picture shows, because — and this is the part people forget — a crawler cannot see pixels.

What alt text actually does (and why the SEO crowd keeps getting it wrong)

That last point is the whole game. Google doesn't look at your photo of a mountain trail at sunrise. It reads the words you attached to it and makes an educated guess about relevance.

The accessibility and SEO overlap isn't a coincidence

For years, SEO advice treated alt text as a keyword parking spot. Dump your target phrase in, move on. That advice aged badly. Search engines got better at detecting manipulation, and accessibility standards became a legal requirement in many jurisdictions rather than a nice-to-have.

The two goals point the same direction. A clear, honest description helps a blind user understand your page and helps a crawler index it correctly. When you write alt text that only serves one of them, you usually end up serving neither.

How to write alt text for images: the rules I actually follow

I keep four questions taped next to my monitor. They've saved me from writing garbage more times than I can count.

How to write alt text for images: the rules I actually follow
  • What is this image doing on the page? Not what it depicts — what job it performs.
  • If I removed it, what information would vanish? If nothing, it's decorative.
  • Would a blind reader need this to understand the section? If yes, describe it properly.
  • Does the surrounding text already say this? If yes, keep the alt short.

That last one trips up almost everyone. Repeating the caption verbatim in your alt attribute wastes space and annoys screen reader users who hear the same sentence twice.

The length limit nobody agrees on (and what I do about it)

There's no official character cap. That said, most screen readers and search tools start truncating or ignoring alt text somewhere past 125 characters. I treat that as my ceiling and rarely hit it.

If you genuinely need more, you have options: place the full description in visible body text, or use the longdesc attribute for legacy support. In 2026, though, the cleaner solution is almost always visible text near the image. Assistive tech handles it more reliably.

Image typeAlt text approachTypical length
Decorative (spacers, backgrounds)alt="" — empty and intentional0 characters
Informative photoDescribe content and purpose in one sentence60–125 characters
Image linkDescribe where the link goes, not the picture40–100 characters
Product shotProduct name, key attribute, angle if relevant80–120 characters
Chart or graphShort alt plus full data in adjacent textAny length, split across both

Image alt text examples that work — and the ones that don't

Let's get concrete. Vague advice is useless without seeing it applied.

Image alt text examples that work — and the ones that don't

Three alt texts I'd flag in an audit today

  • alt="image of dog" — technically true, completely useless. Which dog? Doing what? Why does it matter here?
  • alt="best dog food 2026 cheap dog food deals" — keyword dump. Screen reader users hear nonsense, and modern crawlers discount it.
  • alt="dog" — so short it adds nothing a filename wouldn't.

Now compare those to what actually works.

What a strong alt attribute looks like

A photo of a beagle eating from a stainless steel bowl, used in a review of slow-feeder designs, might read:

alt="Beagle eating from a stainless steel slow-feeder bowl"

That's 58 characters. It names the breed, the action, and the product category. No keyword stuffing. A blind reader knows exactly what's pictured. A crawler knows the page is about slow feeders and beagles.

For an image link, change the target. If a thumbnail of that same bowl links to a buying guide, the alt becomes something like alt="Read our slow-feeder bowl buying guide". The image is a doorway, so the text describes the room behind it.

Spoiler alert: this rule gets violated constantly. I've seen news sites use product photos as navigation links with alt text describing the photo instead of the section it opens. Screen reader users get dumped into a category page with no warning.

Special cases: decorative images, charts, and scientific figures

Generic guides stop at "be descriptive." Real pages are messier than that.

Decorative images and the empty alt

If an image exists purely for visual rhythm — a divider, a background flourish, a stock photo that adds nothing to meaning — use alt="". The empty string tells assistive technology to skip it entirely.

Omitting the alt attribute is not the same thing. A missing alt often triggers screen readers to announce the filename instead. Your visitor hears "dash-line-three-oh-two-final" and wonders why they bothered turning on the audio.

Alt text for graphs, charts, and scientific figures

A chart encodes data. Alt text can summarize the trend, but it can't replace the numbers. My approach: write a short alt describing what the figure shows, then place a data table or full description directly beneath it in the page body.

For a bar chart tracking quarterly signups across four regions, the alt might read alt="Bar chart: Q2 signups by region, North America leading". The adjacent table holds the exact figures. Someone using a screen reader gets the shape of the data from the alt and the precise values from the table.

Scientific figures follow the same logic. Describe the relationship being shown, not every data point. The caption does the heavy lifting.

What about alt text on Instagram and social platforms?

Most major platforms now let you add alt text when publishing. The same principles apply: describe the content, stay under 125 characters where possible, skip it entirely for decorative posts. Social alt text gives you less room to work with, so prioritize the single most important element of the image.

Can you trust an alt text generator?

Automated tools have gotten good at object recognition. They've gotten equally good at missing context. A generator will happily tell you an image contains "a person, a table, a laptop." It won't know that the person is your CEO signing a partnership deal, which is the only detail that matters.

Use generators as a starting point for high-volume product catalogs. Never publish their output unreviewed on a page where context carries meaning. I tried bulk-generating alt text for a client's 400-product store. About a third of the descriptions were accurate but useless, and a handful were outright wrong.

Where the keyword goes (and where it doesn't)

One keyword per image. Front-load it if it reads naturally, but never force it.

Here's my operational rule: if the keyword can't appear without breaking the sentence, it doesn't belong in the alt text. A page about hiking boots shouldn't have alt="hiking boots" on a photo of a muddy trail. It should say alt="Muddy trail through pine forest on a rainy hike" and let the surrounding content carry the product angle.

Google's image indexing has matured well past exact-match matching. Relevance comes from the interplay between alt text, surrounding copy, page title, and the image's own file path. Stacking the same phrase into all of them looks manipulative and performs worse than a natural description.

The one habit that fixes 90% of bad alt text

Before you publish any image, close your eyes and imagine describing the page to someone on the phone. If you'd skip the image entirely, so should your alt attribute. If you'd describe it, write that description down — probably it's already good enough.

The odd truth is that alt text written for humans outperforms alt text written for crawlers. Every time. The crawlers caught up to that reality years ago. Most sites just haven't.

Gordon Hawthorne

Gordon Hawthorne

Gordon Hawthorne is an SEO strategist who helps editorial teams turn keyword research into sustainable organic growth. He specializes in content optimization, topical authority building, and editorial SEO strategy, with a focus on aligning search intent with genuinely useful writing. His approach blends rigorous data analysis with a clear editorial sensibility, making search performance a natural extension of quality content.

See all articles →

Related articles