AI Overview
Alt text is a short description of an image that screen readers read aloud and search engines use to understand it. Describe what matters in context, keep it short, describe the action for linked images, and use an empty alt for decorative images.
Key takeaways
- Alt text describes an image for screen readers, appears when images fail to load, and helps search engines understand images.
- WebAIM's 2026 study found missing alt text on 53.1% of the top one million home pages, one of the most common accessibility failures.
- Write one short, specific sentence about what matters in context, and skip phrases like image of or picture of.
- For linked images and buttons, describe the action, such as Search or Next page, not what the icon looks like.
- Use an empty alt for purely decorative images, never leave the alt attribute out, and never stuff it with keywords.
Summarize with AI
Opens the assistant in a new tab with a link to this post.
On this page
Alt text is one of the smallest things on a web page and one of the most neglected. In WebAIM's 2026 analysis of the top one million home pages, 53.1% had images with missing alternative text, and 16.2% of all home page images had none at all. That's a lot of content that screen reader users can't access and that search engines have to guess about.
The fix is simple, but writing alt text well takes a little thought. This guide covers what alt text is, why it matters for accessibility and SEO, how to write it with plenty of before and after examples, when to leave it empty, and how to find every image that's missing it.
What is alt text?#
Alt text (short for alternative text) is a short written description of an image, added with the alt attribute on the <img> tag:
<img src="dalmatian-puppy.jpg" alt="Dalmatian puppy playing fetch in the grass">
Visitors don't usually see it. It's used in three situations:
- Screen readers read it aloud to people who are blind or have low vision.
- Browsers show it in place of the image when the image fails to load or images are turned off.
- Search engines use it to understand what the image shows and how it relates to the page.
Why alt text matters#
Accessibility comes first#
Alt text exists so that everyone can get the same information from a page. It's a requirement of the Web Content Accessibility Guidelines: success criterion 1.1.1 Non-text Content (Level A, the most basic level) says all non-text content needs a text alternative that serves the same purpose, with exceptions such as purely decorative images. Many accessibility laws and policies point to WCAG, so missing alt text is also a compliance risk.
Image SEO and Google Images#
Google's image SEO documentation calls alt text "the most important attribute when it comes to providing more metadata for an image". Google uses it along with computer vision and the content of the page to understand what an image is about, which helps your images appear in Google Images and image results. When an image is a link, its alt text also works like anchor text, telling Google what the linked page is about.
When images break#
If an image fails to load, the alt text appears in its place. A broken "Buy now" image with good alt text still tells people what to click.
How to write good alt text#
The W3C's guidance boils down to one question: what would you say about this image if you were reading the page aloud to someone who couldn't see it? Then write that, in context.
- Describe what matters in this context. The same photo needs different alt text on a recipe page and on a photographer's portfolio.
- Be specific and concise. Usually one short sentence, often under about 125 characters. Some screen readers handle long alt text awkwardly, so put long descriptions in the page text instead.
- Don't start with "image of" or "picture of". Screen readers already announce that it's an image.
- Include a keyword only if it fits naturally. Describe the image first; if the image genuinely shows the thing your page is about, the keyword will appear on its own.
- Include text that's in the image. If an image contains words, like a sign or a promotional banner, the alt text should include them.
- End with a period. It makes many screen readers pause naturally.
Before and after examples#
| Image type | Bad | Good |
|---|---|---|
| Product photo | shoe | Trail Runner 2 in forest green, side view showing the grippy outsole |
| Blog photo | IMG_4821.jpg | Barista pouring milk into a flat white with a heart pattern |
| Linked logo (to homepage) | logo | Acme Coffee home |
| Button image | arrow | Next page |
| Search icon in a form button | (missing) | Search |
| Chart | chart | Bar chart: organic traffic grew from 12,000 to 31,000 visits between January and June |
| Promotional banner with text | banner | Autumn sale: 30% off all coffee subscriptions until Sunday |
| Team photo | team | The Acme Coffee team of six standing outside the roastery |
| Decorative divider | decorative line | alt="" (empty) |
Functional images: describe the action#
When an image is a link or a button, the alt text should describe what happens when you click it, not what the picture looks like. A magnifying glass icon on a search button is "Search", not "magnifying glass". A logo that links home is usually your brand name plus "home".
Charts and complex images: summarize, then explain nearby#
For charts, infographics and diagrams, give the main takeaway in the alt text and put the full data or explanation in the surrounding text or a table. That way everyone gets the details, not only screen reader users.
Decorative images: use an empty alt#
Some images add nothing but visual style: background flourishes, divider lines, icons next to text that already says the same thing. For these, use an empty alt attribute, alt="", so screen readers skip them.
Empty is not the same as missing. If the alt attribute is missing completely, many screen readers read out the file name instead, which is worse than silence.
Try it on your site · free
Check your own page's meta tags
Title, description, canonical and robots - including an accidental noindex - in a few seconds.
What not to do#
- Keyword stuffing. Google gives this exact example of what to avoid:
alt="puppy dog baby dog pup pups puppies doggies pups litter puppies dog retriever labrador wolfhound setter pointer puppy jack russell terrier puppies dog food cheap dogfood puppy food". Google says it creates a negative user experience and may cause your site to be seen as spam. - File names.
DSC_0042.jpgorhero-final-v3tell nobody anything. - Redundancy. Repeating the caption or the sentence right next to the image word for word.
- Being too vague. "Product", "photo", "graphic" and "image" are barely better than nothing.
- Missing alt on linked images. A linked image with no alt text leaves screen reader users with a link that has no name.
Alt text vs title attribute vs caption vs file name#
| Alt text | Title attribute | Caption | File name | |
|---|---|---|---|---|
| Who sees it | Screen readers, search engines, everyone when the image fails | A tooltip on hover with a mouse | Everyone, visible on the page | Search engines, people who download the image |
| Accessibility | Essential | Not reliable; many users never see it | Helpful visible context | None |
| SEO value | High | Low | Useful page context | A small, light signal |
| Best practice | Describe the image's content or function | Optional, never a replacement for alt | Add when it helps readers | Short and descriptive, like dalmatian-puppy.jpg |
How to add alt text#
WordPress. In the block editor, select the image and fill in Alternative text in the block settings sidebar. You can also set it in the Media Library by opening an image and filling in the "Alternative Text" field. Alt text added in the block editor applies to that use of the image, so check both when you edit older posts.
Shopify. In the admin, open a product, click an image in the media section and add the alt text in the image details. For images in themes and pages, look for an "image description" or "alt text" field in the theme editor or the rich text editor's image settings.
HTML. Add the alt attribute to the <img> tag, as in the examples above. For inline SVG, Google's documentation suggests using a <title> element inside the SVG to describe it.
How to find images missing alt text#
Checking one page by hand is easy: view the source and search for <img. Checking a whole site needs tools.
- MyKavo's Site Audit crawls your site and flags "Images missing alt text" as a warning on every page where an image has no
altattribute, with the count of affected images, such as "3 of 12". It deliberately doesn't flagalt="", because an empty alt is correct for decorative images. The same audit also flags broken images and images missing width and height. - Lighthouse (in Chrome DevTools) includes an accessibility check for image elements without alt attributes.
- Accessibility browser extensions like WAVE or axe DevTools highlight every image and its alt text right on the page.
Prioritize images that carry information: product photos, charts, buttons and linked images first, then photos in your most visited articles. For the rest of your on-page checks, our on-page SEO checklist and website audit guide cover the full list.
Keep it from slipping#
Alt text breaks the same way everything else on a website does: quietly. A theme update stops outputting alt text from the Media Library, a new page builder strips it, a bulk product import arrives with none. Run your audit again after redesigns, theme changes and big imports, and make "alt text filled in" part of the checklist for every new page and product.
Frequently asked questions
What is alt text?
Alt text is a short written description of an image, added with the alt attribute. Screen readers read it aloud, browsers show it when the image fails to load, and search engines use it to understand the image.
How long should alt text be?
Usually one short sentence, often under about 125 characters. Describe what matters about the image in context, and put longer explanations in the page text.
Does alt text help SEO?
Yes. Google calls alt text the most important attribute for image metadata and uses it, with the page content, to understand images. It also works as anchor text when an image is a link.
Should every image have alt text?
Every image should have an alt attribute. Meaningful images need a description, while purely decorative images should use an empty alt, alt="", so screen readers skip them.
What is the difference between alt text and a title attribute?
Alt text replaces the image for screen readers and search engines. The title attribute only shows a tooltip on mouse hover, many users never see it, and it isn't a substitute for alt text.
How do I find images without alt text on my website?
Run a site audit that flags images missing alt attributes across every page, or use Lighthouse or an accessibility browser extension to check individual pages.
The bottom line#
Alt text makes your images usable for people who can't see them and understandable for search engines. Describe what matters about each image in context, keep it short and specific, describe the action for links and buttons, use alt="" for decoration, and never stuff it with keywords. Then audit your whole site, because missing alt text is one of the most common accessibility failures on the web.
Check a page's on-page basics with the free Meta Tag Checker, then start free with MyKavo to run a Site Audit that lists every image missing alt text.
Get alerted when your site breaks. Free, no card.
Start free