How to Write Alt Text: Rules, Examples and a Checklist
Write alt text that states what an image means in its context, in a few words. Describe informative photos briefly, name the destination for linked images, repeat words shown in images of text, give charts a long description elsewhere, and leave decorative images with an empty alt attribute. Never stuff keywords.

Good alt text says what an image means on that page, in as few words as accuracy allows. A photo that adds information gets a short description, a linked icon gets the name of its destination or action, and a purely decorative image gets an empty attribute (alt=""). This guide is research-based: the rules below come from the W3C, WebAIM and Google's own documentation, read in November 2026, not from our own user testing.
Most teams know they should write it. Fewer agree on what to write, which is why the same blog can have "image", "IMG_4471.jpg" and a 60-word keyword list sitting under three photos on one page. The fix is a short decision process and a house style that every writer and designer follows.
Why does alt text still go missing?
Because it is invisible to the person publishing. A sighted editor never hears it, so nothing looks broken when it is wrong. The scale shows up in audits. The WebAIM Million 2026 report found missing image alternative text on 53.1% of the top one million home pages, the second most common detected failure after low contrast text.
The image-level numbers are more telling. Home pages averaged 66.6 images, and 16.2% of all images had no alt text at all, about 10.8 per page. Of those, 45% were linked images, which leaves a link with no name. WebAIM also flagged 10.8% of images that did have alt text as questionable or repetitive, such as alt="image", a file name, or text identical to the caption next to it.
Blank attributes are only half the story; plenty of what does get typed is filler.
What should alt text actually do?
It replaces the image for anyone who can't see it. WebAIM's alternative text article lists three jobs: screen readers announce it in place of the picture, browsers display it when an image fails to load or is blocked, and search engines factor it into their reading of the page.
The same article makes the point that drives every decision below. Software can increasingly recognise what an image depicts, but it can't know what the image means in context. Its example is a maple leaf, which could stand for Canada or simply show a leaf. Only the author knows which, so only the author can write the right text.
WebAIM's four working rules are short enough to pin above a desk. Alt text should be accurate and equivalent to the content and function of the image. It should be succinct, usually a few words and rarely more than a sentence or two. It shouldn't repeat text already next to the image. And it shouldn't begin with "image of" or "graphic of", because screen readers already announce that an image is present.
The five-question decision process
The W3C publishes an alt decision tree that settles most cases in under a minute. Paraphrased, it asks these questions in order and stops at the first match:
- Does the image contain text? If the same words also appear as real text nearby, or the lettering is only a visual effect, use
alt="". If the image is the only place those words appear, put the words in the alt attribute. If the text acts as an icon, describe the function. - Is the image inside a link or button, and would its purpose be unclear without it? Describe where the link goes or what the button does, not what the picture looks like.
- Does the image add meaning to the page? For a simple photo or graphic, write a brief description of that meaning. For a chart or diagram, put the full information elsewhere on the page. If it only repeats nearby text, leave the attribute empty.
- Is it purely decorative? Use
alt="". - Still unsure? The tree says plainly that it does not cover every case and points to the full W3C images tutorial.
Notice that "empty" appears as an answer four times. An empty attribute is a deliberate choice that tells assistive technology to skip the image. A missing attribute is different, and WebAIM is blunt that every image should carry one, even if it is alt="".
Alt text by image type
The table below pulls the W3C and WebAIM guidance into one reference for content teams.
| Image type | Typical example | What to write | Common mistake |
|---|---|---|---|
| Informative photo | Product shot in a review | A short description of what matters in this context | Describing every visual detail |
| Decorative | Stock handshake beside a services blurb | alt="" | "Two businessmen shaking hands" |
| Linked image, no link text | Thumbnail that opens an article | The destination or action | "Click here" or the file name |
| Icon next to link text | PDF icon after "Download the guide" | Only the extra fact, such as "PDF" | Repeating the link text |
| Image of text | Quote card or banner headline | The exact words shown | "Quote graphic" |
| Chart or diagram | Bar chart of quarterly traffic | A short identification plus a long description on the page | Cramming the data into the attribute |
| Site logo linked home | Header logo | The company name | "Acme logo home page link" |
Two of those rows trip up marketing teams most often. The first is the stock photo. WebAIM's own example is a handshake image beside a paragraph about customer service, and its recommendation is an empty attribute, because deleting the photo would lose no information. It also warns against using the attribute to slip in a sales line such as "We guarantee our professional services".
The second is the logo. WebAIM recommends the company name alone. The word "logo" and the fact that it links to the home page are both conventions screen reader users already expect.
How long should alt text be?
As short as accuracy allows. WebAIM says a few words usually do the job, with a short sentence or two on rare occasions. No W3C or WebAIM page we checked sets a hard character limit, so be wary of guides that state one as a rule.
The better test is equivalence. Read the alt text in place of the image and ask whether a reader loses anything the picture was there to say. If the answer is yes, add the missing fact. If the description now runs past a couple of sentences, the image is probably complex and needs a long description instead.
How should you describe charts and infographics?
Split it in two. The W3C complex images tutorial calls for a two-part text alternative: a short description that identifies the image, and a long description that carries the essential information, such as scales, values and trends.
Its worked example is a bar chart with the alt text "Bar chart showing monthly and total visitors for the first quarter 2025 for sites 1 to 3". The numbers then live in a linked page, a nearby section, or a figcaption holding a proper data table. The tutorial also suggests summarising the chart in the body copy, such as noting that visitors fell in one quarter and recovered in the next, which helps every reader, not only screen reader users.
One technical caution from the same page: if you link the description with aria-describedby, assistive technology reads it as a single paragraph. Headings and tables inside it lose their structure. For anything with rows of data, use a visible table in a figure instead.
This matters for infographic-heavy channels too. If your team repurposes blog graphics into Pins, our Pinterest Pin size guide covers the layout side, but the page hosting the original graphic still needs its long description.
Does alt text help SEO?
Yes, within limits. Google's image SEO documentation calls alt text the most important attribute for giving it metadata about an image. Google says it combines alt text with computer vision and the page content to understand what an image shows, and that alt text works as anchor text when an image is a link.
Google is just as clear about the opposite. It tells site owners to avoid filling alt attributes with keywords, which it says hurts the user experience and may cause a site to be seen as spam. Its own example ladder runs from a missing attribute (bad), to a long list of dog-related keywords (bad), to "puppy" (better), to "Dalmatian puppy playing fetch" (best).
A few related details from the same page are worth adding to a publishing checklist:
- Google doesn't index CSS background images, so meaningful pictures belong in
imgelements. - Short, descriptive file names such as
my-new-black-kitten.jpggive light extra clues;IMG00023.JPGgives none. - For inline SVG, Google points to the
titleelement as the equivalent of alt text.
Writing for humans and writing for Googlebot end up producing identical text: specific and accurate. If you are also working on visibility in AI answers, our explainer on generative engine optimization covers how that fits with classic search work.
Worked example: one blog post, five images
Here is how the decision process plays out on a typical post titled "Spring menu launch at a neighbourhood café". The images and context are illustrative.
- Hero photo of the new seasonal salad. The post is about the menu, so the dish matters. Alt: "Strawberry and feta salad with mint on a white plate." Not "Image of delicious salad", which wastes words and adds an opinion.
- Thin floral border above each section. Decorative. Alt: empty.
- Quote card reading "Best brunch on the block" with the reviewer's name, and the quote does not appear elsewhere. It is an image of text. Alt: the exact quote and attribution.
- Map thumbnail linking to directions, with no link text. Functional. Alt: "Directions to the café on Google Maps." Describing streets and pins would miss the point.
- Chart of weekend covers before and after the launch. Complex. Alt: "Line chart of weekend covers from January to April." A small table below the chart carries the figures, and one sentence in the body states the trend.
Five pictures, several patterns, and one rightly left blank.
A house style checklist for content teams
Paste this into your style guide and CMS template:
- No
imgships without the attribute; empty is allowed, absent isn't. - Ask first what job the picture does in this particular post.
- Subject up front, nouns over adjectives, stop once nothing is lost.
- Skip openers like "picture of".
- Captions and alt never say the same thing twice.
- Thumbnails and icons that link name their target.
- Quote cards and banners reproduce their wording verbatim.
- Graphs pair a brief label with a visible table.
- Logos carry the organisation's name, nothing more.
- One natural keyword is fine; lists of them are banned.
- Scan with WAVE or a similar checker, then eyeball anything flagged.
Automated scanners spot absent attributes reliably and judge quality poorly. WebAIM itself cautions that a clean scan doesn't prove a page is accessible.
What about AI-generated alt text?
Treat it as a rough draft. A vision model can name objects, yet it has no idea why an editor chose that picture. Expect it to narrate the decorative handshake in loving detail while missing that the map thumbnail is clickable.
Its genuine strength is backlog volume. Thousands of untagged catalogue photos are better served by reviewed machine suggestions than by silence. Route every suggestion past a human, and fix linked images first, since WebAIM's figures show that's where gaps hurt most.
Where this guide stops
Scope here is web pages. Instagram, LinkedIn and other networks have separate fields with their own quirks, while video calls for captions and audio description. Where accessibility is written into contracts or law, commission a formal audit. Low contrast tops those same WebAIM charts, and our WCAG colour contrast guide tackles it.
The policy we would adopt
Make the W3C tree your team standard, bake the checklist into the CMS, and review descriptions during the same edit pass as headlines. When auditing old posts, begin with linked graphics and charts, because those gaps hide information outright. From then on, nothing gets published without a deliberate decision on every picture.
How this was made: Researched and written by the Hackinen Studios editorial team with AI-assisted drafting; guidance checked against the linked W3C, WebAIM and Google Search Central pages as of November 2026.
Frequently asked questions
Should every image have alt text?
Every image should have an alt attribute, but not every image needs a description. Decorative images such as borders, dividers or generic stock photos should use an empty attribute, written alt with two quotation marks and nothing between them. That tells screen readers to skip the image. Leaving the attribute out entirely is the real error, because some screen readers then read the file name aloud.
Is there a character limit for alt text?
Neither the W3C nor WebAIM pages we checked set a hard character limit. WebAIM's guidance is that a few words usually do the job, with a short sentence or two on rare occasions. If you need more than a couple of sentences to explain an image, treat it as a complex image and put a fuller description in the page text or a nearby table.
Should alt text start with 'image of'?
No. Screen readers already announce that an element is an image, so starting with 'image of' or 'picture of' repeats information and wastes the listener's time. The exception is when the medium itself matters to the content, for example when a page discusses a painting rather than a photograph. In that case, naming the medium adds real information and is worth including.
Does alt text improve Google rankings?
Google says alt text is the most important attribute for telling it what an image shows, and it combines alt text with computer vision and page content. That helps images appear in Google Images and other image features. Google also warns that stuffing alt attributes with keywords hurts users and may be treated as spam, so write a specific, accurate description instead of a keyword list.
Can I use AI tools to write alt text?
AI tools can draft descriptions of what an image shows, which helps when a large library has blank attributes. They cannot know why an image is on a page, so they often describe decorative images in detail or miss that an image is a link. Have an editor review each draft against the W3C decision process before publishing, starting with linked images.