SEO

Alt Text

Also called Alternative text, alt attribute

A written description of an image, read aloud by screen readers and shown when the picture fails to load.

Quick facts: Alt Text

Category
SEO
Also called
Alternative text, alt attribute
Level
Beginner
Affects
Accessibility, image search, meaning when images fail to load
Where to see it
Your CMS media library, browser developer tools, Screaming Frog, accessibility checkers
In this article4
  1. How alt text works
  2. Why alt text matters
  3. Common mistakes with alt text
  4. Getting it right

How alt text works

Alt text is a short written description attached to an image in the page’s code, through the alt attribute. Nobody sees it while the image is loading normally on a working screen. It surfaces in three situations: a screen reader announces it in place of the picture, a browser shows it when the image fails to load or has been blocked, and a search engine reads it to work out what the picture shows.

What to write depends on the job the image is doing. An image carrying information — a product, a chart, a diagram, a screenshot — needs that information written out in words. An image carrying none, such as a divider or a background flourish, should have an empty alt attribute rather than no attribute at all. The empty value tells a screen reader to pass over it in silence, while a missing attribute leaves the software guessing, and it often falls back to reading the file name aloud.

Why alt text matters

Most obviously, it is how a blind or partially sighted visitor understands an image. If your process diagram, your pricing screenshot or your product photo has no description, that visitor simply loses the content. Accessibility obligations apply to many public sector and larger commercial sites, and image descriptions are among the first things any audit looks at.

It also matters when images never arrive. On a slow or expensive mobile connection — an ordinary condition across much of Nepal — images are the first thing to fail, and a page whose meaning lives in its pictures becomes unreadable. Alt text keeps such a page usable. For search, it is the main way an engine understands an image at all, which is what makes image results possible.

Common mistakes with alt text

Keyword stuffing is the oldest. Because the text is invisible on screen, it gets treated as somewhere to hide phrases, which helps nothing and produces a page that is genuinely unpleasant to listen to. Read your alt text aloud in sequence; if it sounds like a keyword list, that is what it is.

The rest are smaller but just as common: opening with the words image of, which a screen reader has already announced; leaving the camera’s file name in place as the description; writing long descriptions for decorative graphics, so a listener hears furniture instead of content; and naming a chart rather than saying what it shows. Text inside a graphic is a special case. If an image contains words, those words belong in the alt text, or nobody who cannot see the graphic can read them.

Getting it right

Ask what the image is doing on this particular page, then write that in a sentence a person would actually say. A product photo describes the product. A screenshot describes what it demonstrates. A chart states the point it makes rather than repeating its title. Keep it brief: this is a description, not a caption, and a caption can carry the longer explanation where one is needed.

Audit what already exists instead of only fixing new uploads. A crawl lists every image with a missing or empty alt attribute quickly, and on most sites the problem clusters in a few templates and a few old posts. The fix is cheap, it improves accessibility straight away, and it is one of the few on-page tasks that helps people and search engines at the same time. Do not confuse it with the image title attribute, which is a separate thing doing a much smaller job.

Do and do not

Do

  • Describe what the image shows and why it is there
  • Give decorative images an empty alt attribute
  • Put any words shown inside a graphic into the alt

Do not

  • Begin with the words image of or picture of
  • Hide keywords in a description nobody sees
  • Leave the camera's file name as the description

Questions people ask about this

Does alt text help SEO?

It helps, mostly by making images findable and by adding meaning to the page. Search engines rely on it to understand what a picture shows, which is what allows an image to appear in image results at all. It is not a store cupboard for keywords: a description written for a person looking for that picture is what actually works.

Should every image have alt text?

Every image needs an alt attribute, but not every image needs words in it. Images carrying information — products, charts, diagrams, screenshots — need a real description. Purely decorative images should have an empty alt attribute, which tells a screen reader to skip them silently rather than announcing a file name or a meaningless label.

How long should alt text be?

Long enough to carry what matters and no longer. One clear sentence handles most images. Somebody listening to a page does not want a paragraph for every picture, and a screen reader will read out whatever you wrote in full. If an image genuinely needs a long explanation, such as a complex chart, put that in a caption or in the surrounding text.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.