Alt text is one of the few pieces of SEO work that helps two very different audiences at once. For a person using a screen reader, it is the only way to know what an image shows. For a search engine, it is one of the clearest signals of what an image is about and how it relates to the rest of the page.
Despite that, alt text is often the first thing skipped when a page goes live. In our audits we routinely find product galleries with no alt attributes at all, blog images labelled "image1", and hero banners stuffed with every keyword the marketing team could think of. None of these help users, and none of them help rankings.
This guide explains what alt text is, how Google uses it in 2026, how accessibility standards define it, and exactly how to write it for each type of image. You will get a simple decision process, real examples, a checklist and the mistakes to avoid.
Key Takeaways
- Alt text (the
altattribute on an<img>element) describes the content or function of an image for people and machines that cannot see it. - Google uses alt text alongside computer vision and page content to understand images, and it also acts as anchor text when an image is a link.
- Describe what matters in the context of the page; use keywords only when they genuinely describe the image.
- Decorative images should have an empty alt attribute (
alt=""), not a missing one. - Functional images, such as linked logos or icon buttons, need alt text that describes the action or destination, not the picture.
What Is Alt Text?
Alt text, short for alternative text, is a written description added to an image in HTML. It looks like this:
<img src="red-trail-running-shoe.jpg" alt="Red lightweight trail running shoe with a deep-lug rubber sole">
Browsers show the text if the image fails to load. Screen readers read it aloud. Search engine crawlers read it as part of the page. It is sometimes loosely called an "alt tag", but technically it is an attribute of the <img> tag.
The accessibility requirement comes from the Web Content Accessibility Guidelines. Success Criterion 1.1.1, Non-text Content, is a Level A requirement, the most basic level of conformance.
“All non-text content that is presented to the user has a text alternative that serves the equivalent purpose”
— W3C, Understanding Success Criterion 1.1.1: Non-text Content
Note the phrase "equivalent purpose". Good alt text is not a literal inventory of pixels. It conveys what the image is there to do.
Why Alt Text Matters for SEO
Google is clear that alt text is a key image signal. In its Google Images SEO best practices, Google states:
“The most important attribute when it comes to providing more metadata for an image is the alt text”
— Google Search Central, Google Images SEO best practices
The same page explains that Google combines alt text with computer vision and the content of the page to understand an image's subject. That has three practical benefits:
- Image search visibility. Clear descriptions help your images appear for relevant queries in Google Images and in image packs on the main results page.
- Page context. Descriptive alt text reinforces the topic of the page, in the same way that good heading tags and body copy do.
- Link context. When an image is wrapped in a link, Google treats its alt text like anchor text. A linked logo with no alt text is effectively a link with an empty anchor.
Alt text is one part of wider image SEO, which also covers file names, file sizes, formats, lazy loading and image sitemaps. It is also an easy accessibility win, which is why it sits right where accessibility and SEO overlap.
Alt Text by Image Type
The W3C's Images Tutorial groups images by their purpose. Each type needs a different approach.
| Image type | What it is | How to write alt text | Example |
|---|---|---|---|
| Informative | Photos or illustrations that convey information | Short description of the essential content | alt="Technician replacing a cracked iPhone screen" |
| Decorative | Visual flourishes, background textures, spacer graphics | Empty attribute so screen readers skip it | alt="" |
| Functional | Images used as links or buttons | Describe the action or destination | alt="Search" for a magnifying-glass button |
| Images of text | Graphics that contain words (other than logos, ideally avoid) | Repeat the text shown in the image | alt="Summer sale: 30% off all tents" |
| Complex | Charts, graphs, diagrams, infographics | Short alt text plus a full description or data table nearby | alt="Bar chart of monthly organic sessions, described below" |
| Groups | Several images that convey one message, such as a star rating | One alt text for the group; empty alt on the rest | alt="Rated 4 out of 5 stars" |
How to Write Good Alt Text: Step by Step
The W3C's alt decision tree is a great starting point. We have adapted it into a process you can use for any image:
- Ask why the image is on the page. Is it showing a product, illustrating a step, linking somewhere, or just decoration? The purpose decides everything else.
- If it is decorative, use
alt="". Do not leave the attribute out entirely; without it, some screen readers read the file name instead. - If it is a link or button, describe the function. A logo that links to the homepage should say something like "Acme Plumbing home", not "blue wrench logo".
- If it contains text, include that text. If the same words already appear as real text right next to it, you can treat the image as decorative.
- If it is informative, describe what matters in context. The same photo of a chef could be "Head chef plating a mushroom risotto" on a restaurant menu page and "Chef wearing a cut-resistant glove" on a safety equipment page.
- Add specifics a sighted user would notice. Colour, model, location or action often matter, especially on product pages.
- Use a keyword only if it is a natural description. If your page targets "oak dining table" and the image shows one, saying so is accurate. Adding "cheap furniture sale UK" is not.
- Read it aloud. If it sounds like a robot or a list of tags, rewrite it as a short, natural phrase.
Good, better and best
Google's own documentation uses a simple puppy example to show the difference between missing, stuffed and useful alt text. Here is the same idea applied to an ecommerce product image:
| Quality | Alt text | Why |
|---|---|---|
| Bad | (attribute missing) | Screen readers may announce the file name; Google gets no text signal. |
| Bad | "sofa couch settee cheap sofa grey sofa best sofa UK sofa sale" | Keyword stuffing; poor experience and a spam risk. |
| Okay | "Grey sofa" | Accurate but vague; does not distinguish it from other products. |
| Best | "Three-seater grey velvet sofa with walnut legs" | Specific, natural, and naturally includes relevant terms. |
How long should alt text be?
Neither HTML nor WCAG sets a character limit. Many guides, including Semrush's alt text guide, suggest keeping it under roughly 125 characters as a practical rule of thumb. The underlying principle matters more than the number: be as concise as possible while still conveying the purpose. For charts and infographics, keep alt text short and put the full explanation in the page copy, a caption or a data table.
Where and How to Add Alt Text
How you add alt text depends on your platform:
- HTML: add the
altattribute directly to each<img>element. - WordPress: open the image in the Media Library or select it in the block editor and fill in the "Alternative Text" field. See our WordPress SEO setup guide for other settings worth checking.
- Shopify and other ecommerce platforms: product media usually has an "alt text" option in the admin. Product images are worth prioritising; our product page SEO guide covers this in more detail.
- Inline SVG: Google's documentation notes that for inline
<svg>elements you can use the<title>element to provide a text description. - CSS background images: these have no alt attribute, so never put meaningful content (such as a product photo or text) in a CSS background.
Alt Text, AI Tools and Scale
If you have thousands of images, writing every description by hand can be slow. AI image-description tools can now produce a solid first draft, and many CMS plugins offer bulk generation. Used carefully, they can clear a backlog quickly.
The catch is context. An AI model can tell you a photo shows "a woman holding a laptop", but it does not know that the image sits on a page about remote IT support and should say "IT support specialist helping a client over video call". Treat AI output as a draft, review it for accuracy and context, and check it does not slip into keyword stuffing. Our overview of AI SEO tools covers where automation helps and where human review is still essential.
Common Mistakes
- Missing alt attributes. The most common audit finding. Crawlers such as Screaming Frog or the site audit in Semrush flag these quickly.
- Keyword stuffing. Google explicitly warns that stuffing alt attributes creates a negative user experience and may cause a site to be seen as spam.
- Starting with "image of" or "picture of". Screen readers already announce an image. Only mention the medium when it matters, such as "Screenshot of" or "Watercolour painting of".
- Describing decorative images. Alt text on dividers and background shapes wastes screen reader users' time.
- Describing the picture instead of the function. A shopping cart icon button should say "View basket", not "Shopping trolley icon".
- Using the file name or the same alt text everywhere. "DSC_0045" or repeating the product name on all eight gallery images gives no extra information. Describe what is different about each shot, such as "side view" or "close-up of stitching".
- Relying on the title attribute. Tooltips are not a substitute for alt text.
Alt Text Audit Checklist
Run through this list during any on-page SEO review or full SEO audit:
- Every
<img>element has analtattribute. - Decorative images use
alt="". - Linked images describe their destination.
- Informative images describe the content in the context of the page.
- Charts and infographics have a full text explanation nearby.
- No alt text contains lists of keywords or repeated phrases.
- Images also have descriptive file names, such as
grey-velvet-sofa.jpgrather thanIMG00023.jpg, which Google says can give "very light clues" about the subject.
Related Guides
- How to Build an SEO Strategy for 2026 (Step by Step)
- SEO for Small Business: A Practical Guide
- International SEO: How to Reach Global Audiences
- How to Update Old Content to Boost Rankings
Frequently Asked Questions
Does alt text help SEO?
Yes. Google says it uses alt text, together with computer vision and the surrounding page content, to understand what an image shows. That helps the image appear in Google Images and gives context to the page. It is not a magic ranking lever, though; it works best as part of good on-page SEO.
How long should alt text be?
There is no official character limit in the HTML or WCAG standards. Many practitioners aim for roughly one short sentence, often under about 125 characters, because long alt text is tiring to listen to. Complex images such as charts should get a longer description elsewhere on the page.
Should every image have alt text?
Every img element should have an alt attribute, but not every image needs descriptive text. Decorative images should use an empty attribute, alt="", so screen readers skip them.
Should I start alt text with 'image of'?
No. Screen readers already announce that the element is an image, so 'image of' or 'picture of' just adds noise. Exceptions are when the medium matters, such as 'Oil painting of' or 'Screenshot of'.
Can I use AI to write alt text?
AI tools can produce a useful first draft, especially for large media libraries, but always review the output. AI does not know why the image is on your page, so it often misses the context that makes alt text genuinely useful.
Is the title attribute the same as alt text?
No. The title attribute creates a hover tooltip and is not reliably read by assistive technology. Google's image guidance focuses on the alt attribute, so put your description there.
Conclusion
Good alt text is simple: describe what the image is doing on the page, in plain words, as briefly as you can. Do that consistently and you make your site usable for more people, give Google clearer image signals and remove a common audit warning in one go. It also pairs naturally with clean, descriptive URLs and file names.
If your site has a large backlog of missing or stuffed alt text, our on-page optimization team can audit and fix it at scale, and our W3C compliance service covers broader accessibility issues. Get a free quote to find out what your images are missing.




