Alt text for SEO: what to write and when AI needs a human check

By Or Fialkov ·

Alt text says what an image shows and why it is on the page, in a short phrase for someone who cannot see it. Google reads it together with the page content to understand the image. Use keywords only where they fit, give decorative images an empty alt, and have a person check AI drafts for product and people photos.

How does alt text for SEO align with web accessibility?

When you write text alternatives for an image, you serve two audiences at the same time. People using screen readers rely on this text to understand what the image shows. Search engines read the same text to understand the subject matter of the image.

Google uses alt attributes along with computer vision algorithms and the page content to understand the subject matter of the image, as detailed in Google's image SEO guidelines. This text also acts as anchor text if you decide to use the image as a link. Google extracts information about the subject matter from the content of the page, including nearby captions and titles.

The WCAG success criterion 1.1.1 asks that all non-text content presented to a user has a text alternative that serves the equivalent purpose, except for listed situations such as pure decoration.

Which images need alt text, and which should be empty?

Not every image on your website requires a written description. The W3C's alt text decision tree provides a clear sequence of questions to determine what you should write. This framework helps you decide when to describe an image and when to hide it from screen readers.

First, check if the image contains text. An image whose words are real text on the page needs an empty alt, an approach you can review when keeping the words out of AI-generated ad images. If the text in the image is not present anywhere else, use the alt attribute to include the exact text of the image.

Next, consider if the image is used in a link or a button. If it would be impossible to understand what the button does without the image, use the attribute to communicate the destination or action taken. For purely decorative images that provide no meaning, always use an empty alt attribute so the visual element can be ignored by assistive technology.

What Google considers bad, better, and best descriptions

Google asks site owners to focus on creating useful, information-rich content that fits the context of the page. You should avoid filling attributes with keywords, as this causes a negative user experience and might flag your site as spam. File names give very light clues, meaning a name like my-new-black-kitten.jpg is preferred over IMG00023.JPG.

Google illustrates its standard with a photo of a puppy. They classify missing descriptions or a long string of dog-related keywords as "Bad". The simple description alt="puppy" is considered "Better".

The example they label as "Best" is highly specific: alt="Dalmatian puppy playing fetch".

Can an AI alt text generator write it for you?

An AI alt text generator sees the pixels and describes what is visible. It does not know why the image is on this page.

An image of a globe used as a link on a travel site requires the text "International Travel", while the exact same image on a university website needs "International Campuses". The correct description depends on the page intent rather than just the visible pixels.

This is why human review is necessary for product and people photos. A person must verify that the AI draft captures the actual business context, just as you would review what Google's guidance says about AI-written articles.

How our team manages image alt text on the platform

FDAIApps includes a tool that writes image alt text for visual assets in a WordPress media library that lack descriptions. Our team runs this work on the platform. Our team can pass a context hint per image, for example the title of the post the image is the featured image of.

The platform downloads each image and sends it to Gemini's vision model, one of the tools and AI models the platform is built with, for a short description. The English instruction asks for exactly what is visible in one line of 6 to 18 words, at most 120 characters. It requires the model to exclude lead-ins like "Image of" and trailing periods. If the image shows a prominent headline, brand or number, the model must include it, translating non-English text into English.

The tool skips images that already have alt text unless our team forces a rewrite, so running it again does not overwrite existing alt text. It runs a dry run first, allowing our team to review the output before applying anything to the site. Only public marketing images from the website are sent to the model, and images containing personal data or personal documents must not be sent.

Our team follows a strict house rule during this process. We identify a visual asset by looking at it, after downloading it and checking its dimensions, never by its file name or its existing text. Related work on the platform includes AI-written meta titles and descriptions, image optimization, an accessibility audit, and a WordPress SEO audit with fixes.

Frequently asked questions

Does alt text help SEO?

Yes, it helps search engines understand the subject matter of an image and the surrounding page content. Google states that alt text is the most important attribute when it comes to providing more metadata for an image.

How do you write alt text?

First, decide from the image's purpose on the page whether it needs alt text at all. Then describe what it shows in a short phrase, including any words in the image that are not elsewhere on the page. Use keywords only where they fit.

What is alt text for images?

It is an attribute in the HTML code of a webpage that provides a textual description of a visual asset. This text improves accessibility for people who cannot see images on web pages, including users who use screen readers or have low-bandwidth connections.

See how our team runs alt text drafts and checks on the platform. Book a demo or write to info@fdaiapps.com.