How long should alt text be?
Alt text should be as short as the image's job allows: a few words for most images, a sentence for some, and an empty alt attribute for a purely decorative one. WCAG, the HTML Standard and W3C's images tutorial set no character limit. When an image needs more than a short phrase or sentence, put the detail in the page text and keep the alt attribute short.
Published . Last reviewed .
Alt text is the text in an image's alt attribute. A screen reader reads it aloud in place of the image, and a browser shows it when the image does not load, as WebAIM's alternative text article explains. Its length follows from what the image does on the page, which is why WCAG and the HTML Standard name no number. WCAG success criterion 1.1.1 Non-text Content (Level A) asks for a text alternative that serves the equivalent purpose. For most images that purpose fits in a few words, some need a sentence, and a chart or diagram needs a short alt attribute plus a longer description in the page.
This page is about how much to write. For what to write, start with our complete guide to alt text and the alt text examples.
What the standards say about alt text length
Four sources shape the answer. None sets a character count. All four tie the alt text to what the image does on the page, and W3C and WebAIM add that anything longer belongs in the page text.
| Source | What it says about length |
|---|---|
| WCAG 1.1.1, Understanding document | Sets no length. A short text alternative is enough where a short description can serve the same purpose. For a chart or diagram it calls for a short alternative plus a long description. |
| W3C images tutorial, tips page | Asks for "the most concise description possible of the image's purpose". If more than a short phrase or sentence is needed, use a long description method. Put the key information first. |
| WebAIM, alternative text | Says a few words are typically enough and a short sentence or two is rarely appropriate. What will not fit goes elsewhere, such as an adjacent data table or a linked page. |
| HTML Standard, requirements for alt text | Sets no length. The value must be an appropriate replacement: swapping every image for its alt text should not change the meaning of the page. It should not repeat the prose beside the image. |
Google's image SEO best practices (the page shows an update date of March 2, 2026) ask for useful, information-rich alt text in the context of the page. They give no length either, and their best example is a short phrase.
The sources differ in emphasis. The HTML Standard's examples run from one word on a topic icon to several sentences for a screenshot in a gallery, where the image is the point of the page. W3C and WebAIM steer long content out of the attribute. We follow the stricter guidance because it serves more listeners. That is our reading, not a rule.
Is there a character limit for alt text?
No. None of the sources above names one. The figure you will see repeated is 125 characters.
Accessibility specialist Eric Eggert, who says he helped write W3C's images tutorial, called the idea that screen readers cut alt text off at that point a myth in a February 2022 post. He reports that a test by Terrill Thompson found no screen reader cutting the text off altogether, and that JAWS splits long alt text into shorter pieces, which, he guesses, people mistook for truncation. That is one practitioner's report, and the test page it links returned a page-not-found error when we tried it in October 2026. Treat it as a reason to doubt the myth, not proof of how every screen reader behaves.
A number can still work as a prompt. Our free alt text generator aims for under 125 characters, in one sentence, where possible. That is our own target for a draft, not a standard. If a description runs well past it, ask whether it has drifted into detail the image's purpose does not need.
Why shorter alt text usually works better
The limit that matters is the listener's. In an April 2024 post that he updated that November, Adrian Roselli tested a deliberately long alt text in several browsers and screen readers. He writes that the limit is not on what is allowed but on what people can use. Three reasons to keep alt text short come from his tests and the standards.
- It has no structure. Alt text is plain text, so a listener cannot move through it by word or paragraph. In Roselli's tests NVDA split the long text into chunks and announced each one as a graphic, while JAWS with Chrome and VoiceOver gave no way to step backward through it, so a missed detail can mean starting over.
- It stands in when the image does not load. In Roselli's tests, Chrome clipped it to the space set for the image, and Safari showed none of it when it was longer than the placeholder.
- It competes with the page. The HTML Standard says alt text should not repeat information in the prose next to the image and should not hold the image's caption. Our guide to captions versus alt text covers the split.
Roselli adds that social media is no excuse to ignore this advice. See alt text on social media.
Too short is a failure too
Length is not the measure of quality in either direction. Alt text that is short and empty of information fails the same purpose as alt text that is long and padded. Typical short failures are a placeholder such as "image" or a file name, which tells the listener nothing (our free scan flags these), and a label in place of a replacement. The HTML Standard says "sales graph" would be inadequate alt text for a sales graph, because alt text has to carry the image's message, not name it. Google's own example ladder also ranks a bare "puppy" below a specific description.
Very short text is exactly right in some cases. WebAIM's example is a PDF icon beside the link text "Download the employment application": the best alt text is "PDF". A purely decorative image should have an empty alt attribute, covered in our decorative images guide.
How much to write for each kind of image
Use this table as a starting point, then adjust for what the text around the image already says. The examples are invented.
| Kind of image | How much to write | Example |
|---|---|---|
| A decorative image, or one that only repeats nearby text | Nothing: an empty alt attribute | alt="" |
| An icon next to a text label that says the same thing | Nothing, because the label already says it | alt="" |
| An icon that is the only content of a link or button (alt text for icons) | A word or a few words for what it does or where it goes | alt="Search" |
| A logo that stands for an organization (alt text for logos) | The organization's name, without the word "logo" | alt="Name of the organization" |
| A photo that carries meaning in the page | One short phrase, or one sentence | alt="Yellow rain jacket worn with the hood up on a hill trail" |
| A screenshot (alt text for screenshots) | A sentence on what it shows and what the text around it relies on, with steps and values in the page text | alt="Settings page with the language menu open" |
| An image of text (guide to images of text) | The same words that appear in the image | alt="Sale ends Sunday" |
| A chart, diagram, map or infographic (alt text for charts) | A short alt that says what it is and its main point or where the full text is, plus a long description in the page | alt="Line chart of monthly orders, full figures in the table below" |
The icon, logo and image-of-text rows follow the HTML Standard's sections on icons and logos and text rendered to a graphic. For product photos, see alt text for product images.
When one sentence is not enough: a short alt plus a long description
W3C's complex images tutorial covers images that hold more than a short phrase or sentence can carry: graphs and charts, diagrams the page text relies on, and maps. They need a two-part text alternative. The short description identifies the image and, where it helps, says where the long description is. The long description gives the essential information as text, including values, relationships and trends.
W3C advises making the long description available to everyone, for example as part of the main content, and summarizing the image in the surrounding text. Its approaches are a link next to the image (alone or inside a figcaption), the long description's location named in the alt attribute, a figure whose figcaption holds the whole description, and aria-describedby pointing to a paragraph. That last one suits only text-only descriptions, because assistive technology reads the referenced element as one continuous paragraph and drops headings and tables.
Naming the location in the alt attribute looks like this:
<img src="orders.png"
alt="Line chart of monthly orders. Full figures are under the heading Orders by month.">
...
<h3>Orders by month</h3>
<table>...</table>
If a chart's whole message fits in one sentence, that sentence can be the alt text, as in one of the HTML Standard's graph examples. If it is a table's worth of data, it cannot. WebAIM notes that the longdesc attribute is deprecated and should not be used. Our chart alt text guide has worked examples.
What to cut when alt text runs long
If a draft feels long, cut in this order:
- Words that announce the medium. W3C says "image", "icon" and "picture" are usually unnecessary because screen readers announce the image. Keep the medium only when it matters, such as a painting versus a photograph.
- Words that repeat the caption or nearby text. The HTML Standard says never to put the caption in the alt attribute.
- Detail the image's purpose here does not need.
- Keywords, slogans, credits and web addresses. Google warns that keyword stuffing gives a poor experience and may get a site seen as spam, and Roselli lists credits and URLs among the things to leave out. See alt text and SEO.
- Data and long explanations. Move them into the page and point to them.
Whatever stays, W3C advises putting the most important information first.
One image at three lengths
Take a photo of a yellow rain jacket worn on a hill trail, on a store's product page where the heading and price already name the product. The jacket is an invented example.
| Version | Alt text | Verdict |
|---|---|---|
| Too short | alt="jacket" | A generic noun. The listener cannot tell this jacket from any other. |
| Too long | alt="Photo of a smiling woman in a bright yellow waterproof rain jacket with the hood up on a hill trail on a cloudy day, best rain jacket for hiking, buy online" | Announces the medium, adds keywords and a sales line, and includes details the shopper does not need. |
| Right-sized | alt="Yellow rain jacket worn with the hood up on a hill trail" | Says what the picture shows and how it is shown, in one short phrase. |
Check it yourself
Three checks take a few minutes on any page:
- Read it aloud. W3C and the HTML Standard both suggest imagining you are reading the page aloud over the phone to someone. If you stumble, cut words.
- Swap each image for its alt text. By the HTML Standard's rule, the meaning of the page should not change. A sentence you can remove without loss is excess. If the page now makes less sense, something is missing.
- Read the longest alt attributes first. They are the likeliest to be carrying data, captions or keywords.
Then run the tools. The free alt text checker downloads up to six images from a page and judges whether each alt text is true of its image. It flags wrong, vague and filename alt text, and decorative images that are being read out. The alt text generator writes a draft for an image you upload, which you then edit. Scan my site for free flags images with no alt attribute and alt text that is a placeholder, such as a file name or the word "image", on the pages it scans.
The checker and the scan do not grade length. A check that reads only the HTML can flag unusually short or long alt text, but it never opens the image, so it cannot tell you whether short alt text is true. Our AI alt text accuracy test shows why that gap matters.
Keep it checked
A one-off review covers the images as they are on the day you look. GotAlt checks the pages you monitor every week. It compares the alt text of up to six images per page with the image itself, runs its rule checks, opens monitored pages in a browser for contrast and other checks that need a rendered page (see what we check), and reports what changed. Plans are from $69 a month. Audit my whole site from $69/mo.
Alt text length questions
Is there a character limit for alt text?
No. WCAG, the HTML Standard, W3C's images tutorial and WebAIM set no character count. They ask for concise text that does the image's job. The 125-character figure is a widely repeated rule of thumb, and accessibility specialist Eric Eggert reports that a test he cites found no screen reader cutting alt text off altogether. Shorter text is still easier to listen to.
Do screen readers cut off long alt text?
The reports we have read say they do not. Accessibility specialist Eric Eggert's 2022 post reports no screen reader cutting text off altogether, and says JAWS splits it into pieces. Adrian Roselli's 2024 tests found other problems: some screen readers cannot step back through long alt text, and some browsers clip or hide it when the image fails to load. Keep it short enough not to depend on either.
Is shorter alt text always better?
No. Short only helps when the text still does the image's job. The alt text "jacket" is short and tells a listener nothing about a specific photo, and the HTML Standard says "sales graph" would be inadequate alt text for a sales graph. Aim for the shortest text that carries what the image adds to the page, and move extra detail into the page.
Can alt text be more than one sentence?
It can, but ask first whether the extra belongs in the page. WebAIM says a few words are typically enough and a short sentence or two is rarely appropriate. W3C says that if more than a short phrase or sentence is needed, use a long description method instead. The HTML Standard allows detailed alt text for an image that is the point of a page, such as a screenshot in a gallery.
How long should alt text be for a chart or graph?
Keep the alt attribute short: say what kind of chart it is and its main finding, or where the full text is. Put the data in a table or text in the page. W3C calls this a two-part text alternative, a short description plus a long description. Our chart alt text guide has worked examples.
Does longer alt text help SEO?
Google's image SEO best practices page does not say so. It asks for useful, information-rich alt text in the context of the page, warns that stuffing keywords may cause a site to be seen as spam, and gives no length guidance or ranking promise. Write for the listener first. Our alt text and SEO guide goes through the details.
Should alt text start with "image of" or "photo of"?
Usually not. W3C says there is usually no need for words like image, icon or picture, because sighted people can see it and screen readers announce the image. Keep the medium only when it matters, such as telling a painting from a photograph. Starting with the content also puts the key information first.
Related guides
- The complete guide to alt text: the pillar page for every alt text question.
- Background and CSS images: when a CSS image needs a text alternative.
- SVG accessibility: titles, roles and inline icons.
- Captions, alt text and figcaption: which does what, and what not to repeat.
- Images of text: when text must be real text (WCAG 1.4.5).
- Alt text on social media: where each platform's alt text field is.
- Alt text for logos: the name, not the word logo, and the home link case.
- Alt text for icons and icon buttons: when an icon needs a name and when it is decoration.
- Alt text for screenshots: what to say about a captured screen.
Is your alt text true, not only the right length?
Our free checker downloads up to six images from any page and asks whether each alt text is true of its image. No account, just an email address once, and one check a day.
Check if my alt text is actually rightFind the images missing alt text
The free scan finds missing and placeholder alt text, alongside the other rule-based WCAG checks. No signup.
Scan my site for free