accessibility May 13, 2026 11 min read

What Is Alt Text and Why It Matters for SEO and Accessibility

Every image on a website needs a short written description. That description is called alt text, and it does two things at once. It tells screen readers what the image shows so blind and low-vision users can follow along. It also tells Google what the image is about so it can rank your page in Image Search and feed visual context into AI Overviews. Both audiences read the same line of text. Both depend on you getting it right.

The trouble is, most sites still leave alt text empty. According to the WebAIM Million 2026 study, 53 out of every 100 home pages have at least one image with missing alt text. That is more than half the web. This guide walks through what alt text is, why it matters now more than ever, and how to write it well, with concrete examples you can copy.

What is alt text, in plain English?

Alt text is a short text description attached to an image in the HTML of a page. It lives inside the alt attribute of an img tag, like this:

<img src="cat.jpg" alt="Gray tabby cat asleep on a blue couch">

You never see this text on the page. It is hidden inside the HTML. It only surfaces in three cases: when a screen reader reads the page aloud, when the image fails to load (the alt text appears in its place), or when a search engine indexes the image for its results.

People often confuse alt text with the image caption or the file name. They are different. The caption is the text that appears below the image for everyone to see. The file name (like IMG_3892.jpg) is just storage information. Alt text is the only one that screen readers and Google actually rely on.

Why alt text matters, three reasons that all count

Why alt text matters, three reasons that all count

People who are blind or have very low vision use screen readers, software that reads text aloud or sends it to a Braille display. When the screen reader gets to an image, it reads the alt text. If the alt text is missing, it reads the file name (often gibberish like “I M G underscore 3892 dot J P G”) or simply says “image” with no context. Either way, the user misses what your page is trying to say.

That is the accessibility argument. It is the reason alt text exists in the first place. About 2.2 billion people worldwide have some form of visual impairment. Even if only a small percentage visit your site, they should not be locked out of half your content because you skipped a sentence.

The second reason is search engine optimization. Google’s image-recognition models are good, but they still rely heavily on alt text to confirm what is in a picture. Google uses alt text to:

  • Decide whether your image shows up in Google Images for a given search.
  • Strengthen the topical relevance of the whole page (an image of a “wedding dress” on a wedding planning article helps that page rank for wedding queries).
  • Feed AI search systems like AI Overviews, Bing Copilot, and Perplexity, which now use alt text and surrounding paragraph text together to understand visual content.

The third reason is the most boring and the most overlooked. Images break. Slow connections, broken hosts, blocked file types, weird email clients. When an image fails to load, the browser shows the alt text in its place. Without alt text, users see a broken icon and zero context. With it, they at least know what they missed.

How screen readers actually read alt text

If you have never heard a screen reader, here is what happens. The software moves through the page top to bottom, reading every text element out loud. When it hits an img tag, it pauses and reads the alt text as part of the sentence flow. Then it continues.

That means your alt text should sound natural when read aloud. A user listening might hear something like: “Article title comma five reasons to learn JavaScript period. Image comma laptop screen showing a code editor with a JavaScript file open period. Paragraph one comma…”

Notice the screen reader does not say “image of”. It just says “image”, then reads your alt text. So writing “Image of a laptop” in your alt produces “Image image of a laptop” which sounds awful. Skip the prefix.

How to write good alt text

Good alt text follows a few simple rules. Stick to these and you will be ahead of almost every site on the web.

  • Be specific. “Cat” is not enough. “Gray tabby cat sleeping on a blue couch” tells the reader what they are looking at.
  • Keep it under 125 characters. Most screen readers cut off after about that. If you need more, write it once at the top, not in alt text.
  • Skip “image of” or “picture of”. The screen reader already says “image”.
  • Match the context of the page. The same picture might need different alt text on different pages. A wedding dress on a fashion blog gets one description, the same dress on an ecommerce product page gets another.
  • Avoid keyword stuffing. Cramming “wedding dress, white wedding dress, cheap wedding dress 2026” into the alt attribute is spam. Google ignores it and users notice.
  • Use punctuation. Periods, commas, and capitalization help screen readers pause naturally.

Real alt text examples, good and bad

The fastest way to learn is by comparing examples. Here are a few common cases.

A product photo of a black leather wallet:

  • Bad: alt="wallet.jpg"
  • Better: alt="black leather wallet"
  • Best: alt="Black leather bifold wallet with brass snap closure"

A graph in a marketing report:

  • Bad: alt="chart"
  • Better: alt="sales by quarter chart"
  • Best: alt="Bar chart showing sales rose from 12k in Q1 to 38k in Q4 2025"

A team photo on an About page:

  • Bad: alt="team"
  • Better: alt="Pixellize team standing together"
  • Best: alt="Pixellize team of six people in front of brand wall, smiling at camera"

Decorative images and the empty alt attribute

Not every image carries meaning. Some are pure decoration, a swirl divider between sections, a background pattern, an icon that sits next to text that already says the same thing. For these, you do not want a screen reader announcing “decorative swirl image” every time it reaches one. That is noise.

The right move is an empty alt attribute, written as alt="". This tells the screen reader to skip the image entirely. Do not remove the attribute. Do not write alt="decoration". Just leave it empty.

A good rule of thumb: if you can remove the image and the page still makes sense, the image is decorative and the alt should be empty. If removing the image leaves a gap in the meaning, write proper alt text.

Common alt text mistakes

Older person reading content on a laptop screen

After working through hundreds of sites, the same problems show up again and again.

  • Missing alt entirely. The HTML tag has no alt attribute at all. Screen readers fall back to the file name, which is usually meaningless.
  • Auto-filled with the file name. Some CMS tools paste DSC_5821.jpg as the alt when you upload. That counts as having alt text technically but provides nothing.
  • Same alt on every image. An ecommerce site with 200 sneakers all carrying alt="shoe" tells Google your page is generic and tells users nothing.
  • Keyword stuffing. alt="cheap red shoes buy red shoes online discount red shoes free shipping". Google ignores it. Screen reader users hate it.
  • Describing the wrong thing. A photo of a laptop with code on it does not need alt text about the laptop brand. It needs alt text about why the image is on this page.
  • Over-describing decorative images. A horizontal line graphic does not need “Thin horizontal divider line in light gray between sections”. An empty alt is correct.

How to add alt text in WordPress

WordPress makes it easy, you just have to remember to do it. There are three places where alt text shows up:

  1. Media Library. Click any image in the Media Library and there is an “Alternative Text” field on the right. Fill it once, every time you reuse the image, the alt comes with it.
  2. Block editor. When you insert an image block into a post, the right-side panel has an “Alt text” field. This overrides the Media Library default for that specific use.
  3. Featured image area. The featured image inherits alt text from the Media Library. Make sure the source image has alt text and you are covered.

One small habit fixes most missing alt text problems. Whenever you upload a new image, fill in the alt text right then, in the Media Library, before you do anything else. It is the single most useful thirty seconds you can spend on a post.

How to check if your images have alt text

If your site has more than a handful of posts, opening each one and reviewing alt text by hand is unrealistic. The Pixellize Image Alt Checker can scan any page on the web and list every image, telling you which have alt text, which are missing it, and which look auto-generated.

Paste a URL, hit check, and you get a clean report. It runs entirely in your browser, so your URLs and the scanned content stay local. Use it for your own pages, your competitors’ pages, or any reference site you want to audit.

What alt text is NOT for

One more thing worth being honest about. Alt text is not a place to:

  • Stuff every keyword you want to rank for. Google’s ranking algorithm specifically downweights this. The keyword should appear once, naturally, if it fits the image.
  • Provide long instructions. If you have a complex chart with detailed data, write a short alt and provide the full data in the body text or a downloadable file.
  • Repeat the image caption word for word. Screen reader users hear both. Duplicate text is annoying.
  • Hide hidden messages or jokes. Real people read alt text. Disrespecting your screen reader users is a fast way to lose them.

Frequently asked questions

How long should alt text be?

Aim for under 125 characters, which is roughly fifteen words. Many screen readers cut off after that. If your image needs more explanation, put the extra detail in the surrounding paragraph or caption.

Should I include keywords in alt text for SEO?

If your target keyword fits naturally in a description of the image, use it once. If forcing the keyword would make the description weird or repetitive, leave it out. Natural language beats keyword stuffing in every modern Google update.

What about images that are just decoration?

Use an empty alt attribute, written as alt="". This tells screen readers to skip the image, which is the right behavior for purely decorative pieces.

Can AI write alt text for me?

AI alt text tools have gotten good. They identify objects, scenes, and even text inside images. The catch is they cannot know why the image is on your specific page. AI gives you a starting point. You still need to edit it so it reflects the page’s context.

Is alt text required by law?

In many countries, public sector and large commercial sites are required to meet accessibility standards (the WCAG guidelines), which include providing alt text. In the US, the Americans with Disabilities Act has been applied to websites in multiple court rulings. Smaller sites usually are not directly bound by law, but the trend is toward broader requirements.

Does the title attribute replace alt text?

No. The title attribute shows a tooltip on hover. Most screen readers do not read it. They read the alt attribute. Always use alt, treat title as optional polish.

What is the difference between alt text and a caption?

A caption is the text that appears visibly below the image for everyone. Alt text lives in the HTML and is only read by screen readers, search engines, and shown when an image fails to load. The two serve different audiences and should usually contain different text.

One small habit, big payoff

Writing alt text is one of those rare web tasks that costs almost nothing and pays off in three different places at once. Screen reader users get a real page instead of a wall of “image image image”. Google understands your visual content well enough to rank it. Even your sighted users get a fallback when an image fails to load. The cost is a thirty-second pause every time you upload a picture. The benefit compounds for as long as the page exists.

Want to know how your existing pages are doing? Run them through the Image Alt Checker. It will tell you in seconds which images need attention. Fix the worst offenders first, then make alt text part of your normal upload routine going forward.

Frequently Asked Questions

How long should alt text be?
Under 125 characters, roughly fifteen words. Most screen readers cut off after that. If your image needs more explanation, put the extra detail in the surrounding paragraph or caption.
Should I include keywords in alt text for SEO?
If your target keyword fits naturally, use it once. If forcing it makes the description weird, leave it out. Natural language beats keyword stuffing.
What about images that are just decoration?
Use an empty alt attribute, written as alt="". This tells screen readers to skip the image, which is the right behavior for purely decorative pieces.
Can AI write alt text for me?
AI tools give a good starting point by identifying objects and scenes. They cannot know why the image is on your specific page, so you still need to edit the output so it fits the context.
Is alt text required by law?
In many countries, public sector and large commercial sites must meet accessibility standards (WCAG), which include alt text. In the US, the ADA has been applied to websites in multiple court rulings.
Does the title attribute replace alt text?
No. The title attribute shows a hover tooltip and is mostly ignored by screen readers. They read the alt attribute. Always use alt, treat title as optional.
What is the difference between alt text and a caption?
A caption is visible text below the image, for everyone. Alt text lives in the HTML and is read by screen readers, search engines, and shown when images fail to load. They serve different audiences.
Pixellize
Written by

Pixellize

Founder of Pixellize. I build free, browser-first online tools that solve everyday digital problems without the friction of accounts, watermarks, or paid tiers. Reach me at [email protected] with feedback or tool ideas.

Scroll to Top