Alt text is a short written description of an image, kept in the page’s HTML in the image’s alt attribute. It helps people who can’t see the image, and Google uses it to understand what the picture shows. It is also what a browser shows when the image fails to load, and plain text that any crawler can read, which pictures alone are not.
What is alt text? #
It is the words inside alt="..." on an <img> element. MDN calls the attribute mandatory and incredibly useful for accessibility: an <img> normally needs at least two attributes, most often src and alt. MDN also says the alt text is shown on the page when the image cannot load, for example after a network error, content blocking or link rot. The title attribute is not a substitute for it.
Why does it matter for people? #
Screen readers read the alt text aloud. MDN says that when an image has no alt attribute, some screen readers may read out the image’s file name instead, which is confusing if the name is something like IMG_4031.jpg. The web’s accessibility standard, WCAG 2.2, makes this its first rule, success criterion 1.1.1 at level A: all non-text content shown to the user has a text alternative that serves the same purpose. The exceptions are narrow: a form control gets a name that says its purpose, a CAPTCHA gets a description of its purpose and another way through for people who use other senses, and decoration is made ignorable. See web accessibility.
Why does it matter for search? #
Google’s image SEO guidance calls alt text “the most important attribute” for giving more information about an image. Google uses it, along with computer vision and the rest of the page, to understand the subject of the image. When an image is a link, its alt text also works as anchor text for the page it points to; see link juice. Good alt text helps your images appear in Google Images. Stuffing it with keywords does the opposite: Google says that may cause your site to be seen as spam. See image SEO.
Why does it matter for AI answers? #
An AI crawler that reads your HTML gets the alt text as words, even when it does not download or look at the picture. Multimodal AI can look at images, but the alt text still says what you mean the picture to show: which product, which colour, which part. Google also asks you to fact-check AI-written alt text before you publish. Its generative AI guidance names image alt text among the things that can appear in results. A tool that writes “red bike” under a blue one has made an AI hallucination on your own page.
Examples #
| HTML | Verdict |
|---|---|
<img src="puppy.jpg"/> |
Google’s bad example: no alt text |
| An alt full of “puppy dog baby dog pup pups puppies” | Google’s other bad example: keyword stuffing |
<img src="puppy.jpg" alt="puppy"/> |
Google’s “better” example |
<img src="puppy.jpg" alt="Dalmatian puppy playing fetch"/> |
Google’s preferred example |
<img alt="image" src="penguin.jpg" /> |
MDN’s “Don’t” example: it describes the image’s presence, not its content |
<img alt="A Penguin on a beach." src="penguin.jpg" /> |
MDN’s “Do” example |
For a purely decorative image, MDN says an empty value, alt="", tells browsers the image is not a key part of the content, so screen readers can skip it. For an image inside a link or button, MDN suggests describing the action, such as alt="next page" rather than alt="arrow right".
How do I decide what to write? #
The W3C’s alt decision tree (updated 13 May 2024) asks five questions in order:
- Does the image contain text? If the same text is on the page nearby, or it is only styling, use empty alt. If the text appears nowhere else, put the text in the alt.
- Is it in a link or button, and would the purpose be unclear without it? Then the alt says where the link goes or what the button does.
- Does it add meaning? For a simple photo, write a short description. For a graph or complex picture, put the information in the page text as well.
- Is it purely decorative? Use empty alt.
- Not sure? The tree does not cover every case; the W3C images tutorial goes further.
What about products and shops? #
A shop has many pictures of similar things. Each alt text should say what makes this picture different: the colour, the angle, the part shown. “Blue 54 cm road bike, side view” and “Close-up of the disc brake” tell a reader and a crawler two different things. Copying the product name onto all six photos tells them nothing new: it is the picture version of duplicate product descriptions. Keep the product facts in the page text and product structured data too, and in your shopping feed for Google Merchant Center. See ecommerce SEO.
What else does Google read? #
- File names. Google suggests short, descriptive names:
my-new-black-kitten.jpgis better thanIMG00023.JPG. - Nearby text. Place images near relevant text.
- Formats. Google supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. See WebP and AVIF.
- Sizes. The
srcsetattribute gives different versions of the same image; always keep a fallback insrc. Oversized images slow the page; see page speed and Largest Contentful Paint. - Image sitemaps. You can list images Google might not otherwise find in an image sitemap. See XML sitemap.
Common mistakes #
- Starting every description with “image of” or “picture of”.
- Copying the same alt text onto every product photo in a gallery.
- Putting the file name or a list of keywords in the alt attribute.
- Describing a decorative swirl, so a screen reader reads clutter. Use
alt="". - Leaving the alt off a linked logo, so the link has no name. That weakens your internal linking too.
- Putting important pictures in CSS backgrounds. Google says it doesn’t index CSS images.
- Letting an AI tool write every alt text and never checking it.
A worked example #
A bike shop’s product page has five images. Here is the before and after:
| Image | Before | After |
|---|---|---|
| Main photo | (no alt) | Blue 54 cm gravel bike, side view |
| Detail photo | bike bike gravel bike cheap bike | Close-up of the hydraulic disc brake |
| Size chart with text in it | chart | The sizes as a real table on the page, and alt naming it |
| Basket icon in a link | basket icon | Add to basket |
| Decorative divider | divider line | (empty: alt="") |
Each change follows one rule above: describe, do not stuff; put text in text; say what a button does; let decoration be silent.
How to check it #
- Look at the source. Right-click a page and choose view source, then search for
<img. Each image that carries meaning should have analt="..."that describes it. The free Image SEO Checker reads alt, formats, sizes and licence. In URSY Pro, opening in stages, the Image SEO audit checks alt text, sizes, formats and image sitemaps across the site. - Write what the picture shows, in context. Google’s own example: “Dalmatian puppy playing fetch” is better than just “puppy”. For a linked image, the alt is the link’s anchor text.
- Use real images for images that matter. Use
<img>elements, not CSS backgrounds. For an inline SVG, use its<title>element instead of an alt attribute. If images are added by script, see JavaScript SEO. - Check the images load. The Broken Link Checker finds each broken link on a page. Run an image address through the HTTP Header Checker to see its status code, type and cache headers, and the Redirect Checker to see whether it redirects.
- Check crawlers may fetch them. An image folder blocked in robots.txt cannot be read. Test it with the Robots.txt Checker, and see which AI bots your rules let in with the AI Bot Checker.
- Check the image sitemap. The XML Sitemap Checker reads your sitemap files.
- Check image markup. The Schema Markup Checker shows the image in your schema markup, such as a product’s image. The Meta Tag Checker shows the page’s other tags.
- Score and compare. The AI Readiness Checker gives a score and fixes, and Compare Two Websites shows a rival page on the same checks.
- Go further for AI. In Pro, Image AI sidecars and licence gives each picture a description file for AI and licence markup, What AI reads shows AI reads of your images and other files, and Product AI readiness scores every product page.
What URSY.com counts #
A request, in our counting, is one answer the website gave: a page, file, image, feed or API reply. So image reads by search engines and AI crawlers are counted like page reads, from the edge log as well as the website, including images answered from the edge cache. Each bot is checked against its company’s published IP list where one exists. See our methodology.
Questions #
How long should alt text be? #
Long enough to say what matters in the picture, usually one short sentence. Put long detail, such as a chart’s figures, in the page text.
Should every image have alt text? #
Every <img> should have an alt attribute. Images that carry meaning get a description; purely decorative ones get alt="".
Should I put keywords in alt text? #
Only if they describe the picture. Google warns that filling alt attributes with keywords may cause your site to be seen as spam.
Is the title attribute the same? #
No. MDN says the title attribute is not an acceptable substitute for alt.
Related words #
- Web accessibility
- Anchor text
- WebP and AVIF
- Image SEO
- Lazy loading
- Largest Contentful Paint
- Multimodal AI
- On-page SEO
- Technical SEO
Sources #
- Google Search Central: Google Images SEO guidance, checked 24 November 2026
- MDN Web Docs: The image embed element, checked 24 November 2026
- W3C WAI: An alt decision tree (updated 13 May 2024), checked 24 November 2026
- W3C WAI: Understanding Success Criterion 1.1.1 Non-text Content (WCAG 2.2), checked 24 November 2026
- Google Search Central: Google Search’s guidance on using generative AI content on your website, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: Alt text. URSY. Updated 26 November 2026. https://ursy.com/wiki/alt-text/ · Section links
Tools for this
- LiveImage SEO Checkeralt text, AVIF/WebP, sizes and licence markupRun the check →
- LiveSEO Audit100 pages free, health scoreRun the check →
- LivePrompt Injection Checkerhidden text or planted AI instructions on a pageRun the check →
- ProImage SEO auditAlt text, sizes, formats, image sitemapsIn URSY Pro →
- ProHealth score historyYour score over timeIn URSY Pro →
- ProAI shopping feedsOpenAI feed, AI catalogue text, JSONL, knowledge graph from your shopIn URSY Pro →