Skip to content

All articles

An empty picture frame with a long, blank orange paper strip running out of it and along the ground, marked Ours. Alt text stands in for a picture when it cannot be seen; by our reading of WHATWG and the W3C, ours run long.

Alt text: what it is for, and how long ours run

· 11 min read

Alt text is the text in an image's HTML that stands in for the picture for anyone who cannot see it, from a screen reader user to a search engine. On 25 November 2026 we counted the alt text on the 81 article pages our sitemap listed: 263 of 749 images carry it, and those run 18 to 81 words, median 37. By our reading of WHATWG and the W3C, that is long, though no page of theirs we opened sets a number. Our count is of our HTML, not an accessibility test: we ran no audit and have not measured whether that length has any effect on search or readers.

What is alt text on a website?

Alternative text is the value of the alt attribute on an HTML img element, and the HTML standard says it "provides equivalent content for those who cannot process images or who have image loading disabled". With a made-up file name, it looks like this: <img src="team-meeting.webp" alt="Four people reading a printed plan">.

The standard gives the test for it: "the intent is that replacing every image with the text of its alt attribute does not change the meaning of the page" (WHATWG, images).

When the picture is not displayed, the HTML standard has browsers show the alternative text instead, and says they "may" also tell the user something was left out, so what you see varies by browser.

Who reads it, and what do they do with it?

Alt text has two kinds of reader, both named in the W3C's own list: a person using a screen reader or browsing with images turned off, and a search engine.

People using screen readers

A screen reader can read out the alternative text in place of the picture, as the W3C's Images Tutorial puts it: "People using screen readers: The text alternative can be read aloud or rendered as Braille." Understanding 1.1.1 adds that "people who cannot see a picture can have the text alternative read aloud using synthesized speech."

With no alt attribute at all, it depends on the software. The W3C's failure note F65 says "Some Assistive Technologies attempt to compensate for the missing text alternatives by reading the file name of the image", and that some do not. The tutorial names another user, too: "Mobile web users: Images can be turned off, especially for data-roaming."

Search engines

Google says on Google Search Central, Image SEO best practices (last updated 2 March 2026) that it uses alt text "along with computer vision algorithms and the contents of the page to understand the subject matter of the image". For Google Search, it calls that text "the most important attribute when it comes to providing more metadata for an image".

Google asks for text that "uses keywords appropriately and is in context of the content of the page". Google also warns: "Avoid filling alt attributes with keywords (also known as keyword stuffing) as it results in a negative user experience and may cause your site to be seen as spam." Its example runs from "Bad" (no alt, or a list of puppy words) to "Better" (alt="puppy") to "Best" (alt="Dalmatian puppy playing fetch"). The W3C's list adds: "Search engine optimization: Images become indexable by search engines."

For SEO, the Image SEO page calls alt text useful as anchor text for an image link, and is silent on whether that text, its length or keywords in it affect rankings or image search traffic. That page, read 25 November 2026, covers Google Search and Google Images, not other engines or AI assistants. We have not measured whether there is any effect on rankings or image search traffic.

Google's SEO Starter Guide calls it "a short, but descriptive piece of text that explains the relationship between the image and your content". For what that guide asks of titles and headings, see what Google's own guide asks of a page.

What are the WCAG guidelines for using alt text in images?

WCAG 2.2's Success Criterion 1.1.1, Non-text Content, at Level A, says: "All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for the situations listed below." (W3C, WCAG 2.2). It is a W3C Recommendation, first published on 5 October 2023 and updated on 12 December 2024; the tutorials quoted here come from the W3C's Web Accessibility Initiative.

The exceptions are controls and input, time-based media, tests, sensory experiences, CAPTCHA, and decoration, formatting and invisible content, which must be "implemented in a way that it can be ignored by assistive technology".

Two of the W3C's HTML techniques deal with the img element's text alternative. H37: "When using the img element, specify a short text alternative with the alt attribute." H67 covers the empty alt, for pictures assistive technology should ignore.

WCAG is a technical standard; whether it binds anyone in law depends on where they are, and this piece makes no legal claim. We did not test our own pages against it.

How long should alt text be?

No W3C or WHATWG page we opened on 25 November 2026 gives a number of characters or words for alt text. They ask for a short alternative where one can carry the meaning, and a separate long description where it cannot.

The W3C's informative images tutorial says such pictures "convey a simple concept or information that can be expressed in a short phrase or sentence". Its alt decision tree says: "Use a brief description of the image in a way that conveys that meaning in the alt attribute." Google's guide says "short, but descriptive".

The sharpest line is the HTML standard's, for a phrase or paragraph put in graphical form, such as a diagram, graph or map: "the alternative text is a replacement for the image, not a description of the image". The W3C says it "typically isn’t a literal description of the image". For such a picture, say what it tells the reader, not what it looks like.

Context decides the rest: the W3C says the text alternative "needs to be determined by the author, depending on the usage, context, and content of an image". That judgement is yours.

A graph, diagram or map holding more than a short phrase or sentence can carry gets more: the W3C's complex images tutorial says "a two-part text alternative is required", a short one in the alt and a long description.

Two pictures: an informative image with one short alternative, and a complex image with the same short alternative plus a separate orange long description. The W3C pages we opened set no length; they ask for a short alternative, and a long description where it cannot carry the meaning.
No W3C or WHATWG page we opened on 25 November 2026 sets a length for alt text: a picture whose meaning fits a short phrase or sentence gets a short alternative, and a complex image gets a two-part text alternative, a short one in the alt and a long description.

The 125-character figure comes from elsewhere. Of the eight results ranking for "alt text" in the United States that we captured on 25 November 2026, one blocked our read with a bot check (InfluencerSEO) and one is a one-line, university-hosted test file with no advice. Of the six we could read, four give 125 characters (Hocalwire, iloveseo.com, Continual Engine and Alli AI), and none of the four cites a document for it; a fifth, Insitebuild, asks for one sentence. That is their advice, and Hocalwire and Continual Engine say it is not a hard rule.

How long is the alt text on our own articles?

On our 81 article pages on 25 November 2026, 263 of the 749 images had alt text, and those 263 ran 18 to 81 words, with a median of 37.

The counting rule: we counted every <img> element in the HTML of each of our 81 article pages as our server sent it on 25 November 2026 at 11:57 UTC, and sorted each by its alt attribute: text in it, empty, or missing. We did not count inline SVG graphics or CSS background images, which are not <img> elements. Words are counted by splitting on spaces.

What we countedCount
Article pages read81 of 81 in our sitemap
Images (<img> elements)749
With alt text263 of 749
With an empty alt (alt="")486 of 749
With no alt attribute0 of 749
Shortest alt text18 words
Longest alt text81 words
Median37 words (of 263); quartiles 31 and 45 words, the middle half between them
Over 125 characters258 of 263

A typical one, at the median, is on our article on AI detectors: "One article page drawn in two pieces, cut cleanly between two paragraphs: the upper piece marked PASTED, an orange line along the cut marked THE CUT, and the lower piece set a little apart, marked NOT READ." That is 37 words and 206 characters.

We call our 37-word median long against "a short phrase or sentence"; no W3C or WHATWG page we opened on 25 November 2026 sets a number. Length alone cannot show whether an alt replaces its picture. We have not audited these pages, so we do not say they fail or pass anything, and we have not measured whether the length helps or hurts search or readers.

For the pictures whose plans we hold, we planned each before it existed and wrote its alt into that plan, with its file name and what it must show.

The same 81 pages' meta descriptions are counted in our piece on how long our meta descriptions run. This count moves with every article we publish, so it carries its date.

When should an image's alt be empty?

An empty alt (alt="") is the W3C's and WHATWG's documented choice when a picture is only decoration or repeats the words beside it, because it tells assistive technology to skip it. The W3C's tutorial says: "Provide a null text alternative (alt="") when the only purpose of an image is to add visual decoration to the page." H67 adds: "Having a "null" alt attribute is not the same as having no alt attribute." The W3C's decorative images tutorial says that without the attribute, "some screen readers will announce the file name of the image instead". An empty one, as H67 puts it, "indicates to assistive technology that the image can be safely ignored".

Three stacked plates: alt text, read aloud; empty alt, safely ignored, in orange; no alt attribute, some screen readers, the file name. An empty alt tells assistive technology to skip a picture; a missing one is different, and some screen readers then announce the file name.
An empty alt tells assistive technology it can skip a picture; with no alt attribute at all, some screen readers announce the file name instead, and the W3C's F65 says some do not.

All 486 of our empty alts sit in six template places on every article page: our logo mark three times, each beside the word "LiamVi" (header link, footer link, menu), and the pictures on the three "More articles" cards, which can differ by page, each inside a link whose text includes the other article's title. None of the 263 pictures inside our articles has an empty alt.

By our reading, not an audit, these are the cases WHATWG and the W3C describe. WHATWG: "If the logo is being used next to the name of the entity that it represents, then the logo is supplemental, and its alt attribute must instead be empty." The W3C's decorative images tutorial lists pictures "Supplementary to link text", and says the call is the author's: "Whether to treat an image as decorative or informative is a judgment that only the author can make."

What can you check on your own pages?

Open one of your own articles, view its source, and look at the alt on each img element. Three checks:

  • Does every picture have an alt attribute? Missing is not the same as empty. Where one is missing, add it: the HTML standard asks for an alt attribute on images outside the exceptions it lists: empty in cases it names, such as decoration, and otherwise holding words that stand in for the picture.
  • Are the empty ones only decoration, or pictures the words beside them already name?
  • For each one with words in it, would the page lose nothing if the picture were replaced by them? That is the standard's own test. For a graph or diagram holding more than a short phrase or sentence can carry, is its long description on the page or linked beside it?

There is no number to hit when you add alt text: how much it says depends on what the picture does on that page, and that call is yours. If you count your own and find something different, or want the exact counting method behind our numbers, write to us and ask.

What people actually ask us

Is alt text the same as an alt tag?

Yes: "alt tag" is the common name for alt text, though strictly alt is an attribute of the img tag, which the HTML standard calls the alt attribute.

Should alt text include a keyword?

Google's Image SEO page asks for text that "uses keywords appropriately and is in context of the content of the page", and warns against keyword stuffing. Five of the six ranking pages we read on 25 November 2026 advise working a keyword in; that is their advice. See also what our own score records show about keyword lists.

Do screen readers cut it off at 125 characters?

We cannot say what screen readers do: we tested none, and no W3C or WHATWG page we opened on 25 November 2026 states a 125-character cut-off, nor does the one screen-reader maker's page we opened. Freedom Scientific's training page, last updated in 2008, says only "relatively short". The 125-character figure is the advice of four of the six ranking pages we read that day.

What happens if a picture has no alt at all?

The W3C's F65 lists a picture with no alt attribute and no other text alternative in its markup as a failure of WCAG 1.1.1. Some screen readers announce the file name instead, and F65 also says some assistive technology does not.

Sources

See where you stand today.