Skip to main content

Alt Text for Images: A Complete Guide for Web Accessibility

By ConvertYard Team · Updated

Media Library — CMS Editor
63 / 125✓ Descriptive
Snow-capped mountain peak at sunset, viewed from a hiking trail
⚠Missing alt text on 3 other images

Alt text has been around since the early web days, but for the most part it has been optional for content teams over the last 30 years or so. That all changed in June 2025, when the European Accessibility Act came into force and started flooding companies across Europe with compliance notices. In this guide, we'll retroactively add alt text to hundreds or thousands of images, and explain everything you need to know about it in order to get it done efficiently.

Generate alt text for 100+ images at once — AI, in your browser →

What is alt text and why it matters

The content of the alt attribute for HTML image elements is known as the 'alt text'.

<img src="product-photo.jpg" alt="Blue running shoes with white sole, laces tied" />

Screen reader software (used by people who are blind or have poor vision) reads out the text in the alt attribute instead of describing the image to the user. If no alt text is provided, then the screen reader would typically announce 'image' or read out the filename of the image (e.g. product-photo-FINAL-v3.jpg).

Beyond screen readers, alt text matters for:

Search engine indexing. As Google cannot 'read' images of web pages, they use the alt text to determine what an image is featuring. Well-written alt text for product images not only means that the page will be more relevant, but also that images will rank better in image searches.

Failed image loads. The browser may display the alt text for an image that fails to load from the web (due to a slow connection, for example) or where the URL for the image has been mistyped or has changed.

Cognitive accessibility. Users with cognitive disabilities may find images confusing or even distracting. Adding accurate alt text lets them read the information the image was trying to convey.

The EAA and WCAG requirements

The European Accessibility Act (Directive 2019/882) was implemented on 28 June 2025. The Directive applies to companies that sell goods and/or services to consumers within the EU. The scope of the Directive is very broad and includes: e-commerce, banking, transport services, media services, and consumer product electronics. The requirements for accessibility have to be met by ensuring that services provided to customers meet the WCAG 2.1 Level AA accessibility requirements.

According to the WCAG 2.1 criterion 1.1.1 Non-text Content, all non-text content must have a text equivalent that can convey the same message to users. This applies to images as well and should be provided as alt text. The only cases where no text equivalent is needed are: 1) decorative images that have no function, for which alt="" is required; 2) CAPTCHA images, for which an alternative method must be provided to validate the user; 3) tests and exercises for which a text description would defeat the purpose.

In the U.S., the Americans with Disabilities Act (ADA) does not specifically mention websites. Since the Supreme Court has declined to hear Robles v. Domino's Pizza in 2019, most courts are following the opinion of the 9th Circuit that application of the ADA to business websites is proper. Web content on all federal, state and local government websites must conform to WCAG 2.1 AA standards under Section 508 of the Rehabilitation Act.

In the UK, the Public Sector Bodies Accessibility Regulations 2018 require public sector websites to meet the accessibility requirements outlined in WCAG 2.1 AA. Private sector organizations are subject to similar accessibility requirements under the Equality Act 2010.

Practical implication: If your organization sells online to customers in the EU, provides services to customers or the public or creates content with statutory requirements, then all meaningful images on your web site will need to have alt text. "We'll add it later" is no longer a valid position.

How to write good alt text

Good alt text is specific, concise and attempts to describe the visual part of content within context.

Informative images

For photos and illustrations that convey information:

  • Describe what is visually present, not what you wish were there
  • Include color, action, composition, and text that is shown in the image in your description
  • Keep it under 125 characters where possible
  • Don't start with "Image of", "Photo of" etc. Screen readers already announce "image" so it's redundant

Instead of: alt="meeting" Write: alt="Four people seated around a conference table reviewing printed documents"

Instead of: alt="chart" Write: alt="Bar chart showing monthly revenue increasing from $12k in January to $47k in June 2025"

Functional images (buttons, links, icons)

For images that perform an action when clicked:

  • Action, not image: The action that will occur when the image is clicked. alt="Search" not alt="Magnifying glass"
  • Icon-only buttons: alt="Close", alt="Menu", alt="Share", alt="Download"

Decorative images

If an image is just for looks and does not add any meaning or help explain the page, the image should have an empty alt attribute:

<img src="decorative-squiggle.svg" alt="" />

This tells people who use screen readers to skip the image. Do not leave out the alt attribute, because if you do, screen readers will read out the file name.

Product images

For e-commerce:

  • Add the product name, main features, and color
  • Help the shopper know what the product is without seeing the product
  • alt="Nike Air Max 90 sneaker in white and grey, right shoe from the side"

Bad vs. good alt text examples

ImageBad alt textGood alt text
Portrait photophoto.jpgMarketing director Sarah Chen smiling in a white blazer against a grey background
Product shotproductStainless steel water bottle, 32oz, matte black finish with push-button lid
Bar chartchart showing dataBar chart: website traffic grew from 8,000 to 24,000 monthly visitors, Jan–Jun 2025
Logo in navlogoConvertYard — return to homepage
Decorative dividerdivider line`` (empty alt attribute)
ScreenshotscreenshotFirefox browser showing the ConvertYard homepage with a file dropzone in the center

How to generate alt text for 500+ images without writing each one

Large existing image libraries (product catalogs, old content, archived pages) cannot realistically be written for manually by teams for thousands of images. A 5,000 image product catalog at 2 minutes per image equals 167 hours of work.

Generate AI alt text for large scale retrofitting of existing images. ConvertYard's alt text generator runs a vision AI model (SmolVLM) in your browser. No images are uploaded to any server. It processes one image at a time and outputs a description for that image. All descriptions are then exported to a CSV file with a row for each image, listing the filename and the generated alt text for that image.

Workflow for retrofitting a product catalog:

  1. Export the image files of your product (or a random sample of them) to a local folder on your computer.
  2. Go to ConvertYard's alt text generator and drop the images in.
  3. Your images are instantly analyzed and a CSV output file is created that contains a column for filename and a column for the automatically generated alt_text.
  4. Download the CSV when complete.
  5. Import the CSV file into your CMS or asset library. A number of CMS platforms (including WordPress, Shopify and Contentful) allow you to import large amounts of metadata in CSV format.
  6. Review generated descriptions for accuracy to make sure AI generated descriptions match your brand's context for specific images.

What to review manually:

  • Images with text (infographics, screenshots, advertising banners with text etc.) — The reading accuracy of AI for text within images is not 100% and therefore has to be checked manually.
  • People who are identifiable public figures or staff — add their names to the image manually.
  • Products with model numbers or SKUs that must appear in alt text.
  • Abstract or artistic images where "meaning" is contextual.

The AI can process the majority of the content; we are just looking for specific instances where the human can add more context.

For ongoing compliance:

  • Add a manual review of the added alt text to your current publishing checklist for images so that there is adequate copy written before the page is made live.
  • Audit existing content with tools like axe DevTools or WAVE to find missing images' alt text.
  • For new product photography, have the photographer/image manager fill out the alt text at the time of upload into your DAM (Digital Asset Management) system.

Frequently asked questions

What is alt text?
The term "alt text" (alternative text for images) is short for the HTML attribute `alt` = alternative. The alternative text is read by screen reader software for visually impaired users. It is also used by search engines to determine the content of an image. In case of purely decorative images, it is recommended to set an empty alt attribute (`alt=""`) to tell screen readers to ignore those images.
Is alt text required by law?
Yes, in many countries. The new European Accessibility Act, due to start in June 2025, will require accessibility by all companies selling online to European consumers. Also, in the US, the ADA has been interpreted in recent years to require accessibility by most businesses with a web presence. For image alt text, WCAG 2.1 Level AA (the same as current WCAG 2.0 A and AA combined) requires that all images that are not pure decoration have adequate alt text. Government and public sector websites are subject to particularly strict rules, but there is also growing risk of legal exposure for private companies.
What's the difference between alt text and a caption?
Alt text is hidden HTML code that screen readers and search engines can read. It is not displayed on the page. Captions, on the other hand, are displayed below or beside images and are for all viewers. The purpose of photo captions is to explain the context of the image, and the purpose of the alt text for screen reader users is to describe the image content.
How long should alt text be?
A typical image needs to have only one short sentence, less than 125 characters, to describe the image content. Long alt text can be cumbersome to read on a web page, while charts and infographics often contain a lot of data to convey. Provide a short alt text, and put the rest of the description in the surrounding text or link to it.
Can AI generate accurate alt text?
AI-generated alt text is accurate for most types of images, including product, portrait, scene, and object photos. It is less accurate for text-heavy images such as infographics and screenshots containing text, as well as brand-specific content such as knowing a product name or a person's job title. The generated text should be used as a first draft and then reviewed before publication of images where context is crucial.