Adding alt text to your images is the first rule of image SEO and it’s also a key principle of web accessibility.
This is an in-depth guide about the alternative text attribute: from what is an alternative text to how to perfectly write them for better rankings in Google Images and web search.
I have added to this tutorial several examples of optimized alt tags for SEO with explanations, a do’s and don’ts table, e-commerce alt text patterns, and an image SEO checklist.
There is also a dedicated section about Alt text in WordPress and AI alt text generators.
Let’s get started!

An alternative text is an HTML attribute that should always be added to your image (<img>) elements. Alt texts provide a textual alternative to visual content in web pages.
The textual alternative should describe the appearance and function of the image on the page. People often forget to include the function of the image when they fill out alternative texts. Mentioning the function is not really important for SEO, but it’s key for accessibility. I’ll come back to this topic later, when we go through the alt text examples.
Alt tags should be applied whatever the image format: this attribute is compatible with JPEG, WebP, PNG, GIF, AVIF, and SVG.
If the image you are displaying has no function or editorial purpose the alt text can be left empty.
<img src="decorative-divider.jpeg" alt="" />
Technically speaking you should not use the term alt tag to refer to alternative texts because it’s not a tag, but a possible attribute of img elements. However, who cares?
Alternative text, alt text, alt tag, alt description, alt attribute: they are synonyms and designate a text alternative to an image.
It’s important for accessibility and SEO to pay attention to alternative text but you can ignore title text.
Title texts are just there to give a title to your pictures. Search engines don’t care about them: they are useless for search engine optimization. Title tag optimization should therefore be your last priority.
That’s one of the reasons why our Image SEO Optimizer for WordPress addresses the issue of alt text but not title text.
In its article Using ALT attributes smartly Riona MacNamara from Google Webmaster Tool Team told us:
“Googlebot does not see the images directly, we generally concentrate on the information provided in the “alt” attribute.”
If you want to know more about it, I invite you to read my article about the image attributes optimization for SEO. You will find more information about the title text attribute there.
With the rise of Artificial Intelligence, Google and Bing are able to read your pictures. However, they don’t always do it because it would be too slow and expensive for them at scale. That’s why alternative texts are so important for SEO and image SEO: they offer you the possibility to tell Google what your photos are about in a few keywords.
I write this in almost all my articles, but on-page SEO is largely about helping Search Engines understand your content.
An image with a bad file name and no alt text will poorly rank in Google Image search results — but the impact goes beyond that.
Images with no alternative text constitute a grey area on your page for search engines. Helping Google to unlock the meaning of your images also improves the global semantic relevance of your page. The alt text attribute is, in a sense, Google’s crawling robots’ best friend.
Does alt text help SEO? Absolutely. Google has confirmed multiple times that alt text is one of the key factors they use to understand image content. It helps your images rank in Google Images, and it strengthens the topical relevance of the entire page for your target keywords.
Nowadays, having access to the internet is almost a human right. Your site should be accessible to everybody — including visually impaired or blind people. That’s why alternative texts are important.
Providing a textual alternative to your photos allows people using screen readers or software such as JAWS and NVDA to literally read your images even though they can’t see them.
Adding alternative texts to your pictures is the right thing to do. Moreover, it’s a market of millions of people all over the world.
Also, Title III of the Americans with Disabilities Act prohibits discrimination based on disability. There is a growing number of legal cases regarding website accessibility and more and more judges are stating that online retailers must comply with the ADA regulation.
For your information, accessibility is also one of the core principles of WordPress.
Alt text is not just good practice — in many jurisdictions, it’s a legal requirement. Understanding the compliance landscape helps you avoid costly lawsuits while making the web better for everyone.
WCAG 2.1 Success Criterion 1.1.1 (Non-text Content) requires that all non-text content presented to the user has a text alternative that serves an equivalent purpose. This is a Level A requirement — the most basic level of accessibility compliance.
In practical terms, this means:
alt="")The number of web accessibility lawsuits has been rising every year. In 2019, Domino’s Pizza lost a landmark case when the Supreme Court declined to hear their appeal against a blind customer who could not order food on their website. The ruling confirmed that the ADA applies to websites.
E-commerce sites are the most frequent targets. If your product images lack alt text, screen reader users literally cannot tell what you’re selling. That’s both a missed sale and a legal risk.
The European Accessibility Act (EAA), taking full effect in 2025, extends similar requirements across the EU. If you operate internationally, alt text compliance is non-negotiable.
When a screen reader encounters an image, it reads the alt text aloud. If no alt text is present, some readers will read the file name instead — which usually sounds something like “IMG underscore 2847 dot JPEG.” That’s a terrible user experience.
If the alt attribute is completely missing (not just empty), some screen readers will try to announce the image URL, which is even worse. Using alt="" on decorative images tells screen readers to skip the image entirely, which is the correct behavior.
Google’s ability to understand images has advanced dramatically. With Google Lens processing billions of queries, MUM (Multitask Unified Model) understanding content across languages and formats, and AI Overviews pulling image context into search results, you might wonder: are alt tags still relevant for SEO?
The answer is yes, and here’s why.
While Google can identify objects in photos using computer vision, alt text provides context that AI cannot reliably determine. A photo of a person at a desk could be a CEO, a customer, or a stock photo. Only your alt text tells Google which one it is and why it matters to your page content.
Google’s John Mueller has repeatedly confirmed that alt text remains one of the strongest signals for image search. In 2023, he stated that Google uses alt text to understand both the image itself and the page it appears on.
Here’s what alt text does that computer vision cannot:
Bottom line: Google’s AI supplements alt text, it doesn’t replace it. Writing good alt text in 2026 remains one of the highest-ROI on-page SEO activities you can do.
This being said, let’s focus on what you probably came for: how to perfectly write alternative texts?
I said previously that the function and context were key. Every time an image plays a function on your page, you should provide a textual alternative. The other way around, when an image is purely decorative, the alternative text can be left empty.
Let’s practice with some alternative text examples!
When an image is somehow linked to your editorial content, you must provide a textual alternative. This includes the photos you might use in your blog articles, your product sheets, etc.
When determining how to write appropriate alternative texts for images, context is everything. One alt for one image may be vastly different based upon the context and surroundings of the image itself.
Good alternative texts are short, but descriptive, present the content, enhance context, and give the function of the image if necessary.
A long time ago, in a wonderful world dominated by Internet Explorer 6, HTML and CSS were not offering much possibility to front-end developers.

Front-end developers did not even exist because the only way to make something aesthetic was to put an image in a table element. No border-radius, no box-shadow, etc.
One of the consequences was that people were using images for their menu. In such situations, it is necessary to provide an alternative text to the image.
In our example, each item of the menu should have an alt text: “Brachiosaurus” for the first link, “Gallimimus” for the second, etc.
There is no need to add “Link to” because the image will be identified as being within a link.
Thanks to common sense, Google, Mozilla Firefox and the W3C, functional images are slowly disappearing.
How to spot if an image is decorative or not? You have to answer a double question:

In this situation, the stars close to the WordPress logo are mainly decorative.
Indeed, they are not directly linked to what we are talking about and they are not functional at all, since they are not providing an external link to our amazing WordPress reviews.
If both answers are “No,” the image is decorative. Use alt="" (an empty alt attribute). Do not omit the alt attribute entirely — that’s invalid HTML and confuses screen readers.
Common decorative images include: background patterns, visual dividers, hero images that repeat the heading text, and stock photos used purely for aesthetics.

Perfect Alt for SEO: Cathedral Notre Dame de Paris surrounded by clouds
Decent Alt for SEO: Notre Dame de Paris
Bad alt for SEO: Cathedral

Perfect Alt for SEO: Adult Red Kangaroo in the Australian desert
Decent Alt for SEO: Red Kangaroo
Bad alt for SEO: Kangaroo

Perfect Alt for SEO: White rose flower in a natural garden
Decent Alt for SEO: White rose
Bad alt for SEO: Flower

Perfect Alt for SEO: Tesla Model 3 charging at an electric station in a parking lot
Decent Alt for SEO: Tesla on a parking lot
Bad alt for SEO: Car
Here’s a scannable reference for what to put in alt text for SEO and what to avoid:
| Do ✓ | Don’t ✗ |
|---|---|
| Be descriptive and specific: “Golden retriever puppy playing fetch in a park” | Be vague: “Dog” |
| Include your target keyword naturally when relevant | Stuff keywords: “dog puppy pet canine golden retriever dog photo” |
| Keep it under 125 characters (screen reader friendly) | Write a full paragraph as alt text |
| Describe the image’s function if it’s a button or link | Start with “Image of” or “Picture of” (screen readers already announce it as an image) |
Use alt="" for purely decorative images |
Leave the alt attribute missing entirely |
| Match the alt text to the surrounding content context | Use the same generic alt text for every image on the page |
| Include relevant details: color, brand, action, location | Describe elements that aren’t visible in the image |
| Write in natural language as a complete phrase | Use file name syntax: “IMG_2847_final_v2” |
Product images are where alt tags for SEO have the most direct impact on revenue. When someone searches for “red Nike Air Max 90 size 10,” your product image can rank in Google Images — but only if the alt text contains those details.
For e-commerce, use this pattern:
[Brand] + [Product Name] + [Key Attribute] + [Variant]
Examples:
When you have multiple images of the same product, vary the alt text for each view:
This approach gives each image a chance to rank for different long-tail searches while providing meaningful descriptions for screen reader users browsing your product page.
Even SEO-savvy websites make these errors. Here are the most common alt text mistakes that hurt both rankings and accessibility:
alt="" because screen readers may read the file path.In this section, I’ve compiled all the things that you need to know about alt texts in WordPress. Let’s get started with the most obvious: adding an alternative text to an image in WordPress.
Once you upload an image to WordPress, you’ll have access to its metadata, which will give you the following menu (on the right side of your screen):
Illustration — refer to text for details
Among other things, you can change your image’s title, the caption, and alt text.
You can also add alternative texts directly in the media library.
Illustration — refer to text for details
Add an image and click on edit to access the image settings in WordPress.
Illustration — refer to text for details
From here, you can edit the alternative text, the caption and the description.
When you build pages in Elementor, adding alt text is very straightforward.
If you want to add an alt text to an image, you can do so by clicking on the image and an image box will appear from the Elementor editor.
Edit alt text directly inside Elementor. No extra plugins, no workflow disruption — just better SEO for every image you add.
From the Image Box, click the image and it will be displayed in your media library.
The Alt Text option is displayed on the right side of the window.
Let AI generate SEO-optimized alt text right inside your Elementor editor. Save hours on every page build.
You can edit the alt tag from here.
In the past, the Divi theme did not support alt tags from the media gallery.
Hopefully, this has changed since version 4.4.4.
Adding alt text in Divi is easy: you need to go to the advanced tab, scroll down and enter the text manually into the alt text area.
If you have a lot of empty alternative texts, it can take hours to properly fill out alternative texts with SEO-friendly content.
Fortunately, there is a plugin named Image SEO Optimizer that can do it in one click using artificial intelligence. Here’s how to use this plugin.
Once you have registered, you need to click on the “Alt & name optimizer” tab. Then choose the settings that suit your needs.
Illustration — refer to text for details
Then, you just have to run the bulk optimizer. That’s it.
Illustration — refer to text for details
This plugin is compatible with Yoast and SEOPress targeted keywords.
Writing alt text manually for hundreds or thousands of images isn’t realistic. Here are the best tools to automate and speed up the process:
| Tool | Best For | How It Works |
|---|---|---|
| Image SEO Optimizer | WordPress sites (bulk optimization) | AI analyzes images + page context to generate SEO-optimized alt text. Integrates with Yoast, RankMath, SEOPress. Bulk processes your entire media library. |
| Ahrefs Site Audit | Finding missing alt text | Crawls your site and flags images with empty or missing alt attributes. Great for auditing, not generating. |
| ChatGPT / Claude | One-off descriptions | Upload an image and ask for alt text. Good for a few images; not practical for bulk. |
| Google Cloud Vision API | Developer teams | Returns image labels and detected objects. Requires custom integration to write as alt text. |
| Shopify built-in AI | Shopify stores | Auto-generates alt text for product images. Quality varies — always review before publishing. |
Whichever tool you choose, always review AI-generated alt text before publishing. AI can describe what’s in an image but may miss the context of why that image is on your page.
Alt text is the foundation, but it’s not the only factor in image SEO. Here’s a complete checklist to maximize your image rankings:
red-nike-air-max-90.jpg instead of IMG_2847.jpg. Separate words with hyphens.srcset and sizes attributes so browsers load appropriately sized images for each device. WordPress does this automatically for uploaded images.loading="lazy" to images below the fold. This improves page speed by loading images only when they scroll into view.ImageObject schema for key images. For product pages, include image URLs in your Product schema markup.For a deep dive into file naming, title attributes, and figcaption, read our complete guide to image SEO attributes: alt, title, filename and figcaption.
A good alt tag is descriptive, specific, and under 125 characters. It should accurately describe what the image shows while naturally including relevant keywords when appropriate. For example, instead of “photo,” write “Golden Gate Bridge at sunset with fog rolling in from the Pacific Ocean.” Good alt text serves both search engines and visually impaired users.
Yes, alt tags remain one of the most important on-page SEO elements. Google has confirmed through John Mueller and other spokespeople that alt text is a primary signal for understanding image content. While Google’s AI can recognize objects in photos, alt text provides the semantic context and keyword relevance that computer vision cannot. Every major SEO audit tool still flags missing alt text as a critical issue.
Describe the image accurately in natural language, then include your target keyword if it fits naturally. Focus on what the image shows (subject, action, setting) and why it matters to the page content. For product images, include the brand, product name, color, and key features. Avoid starting with “image of” or “picture of” — screen readers already announce that. Keep it concise: 5 to 15 words is the sweet spot.
Absolutely. Alt text helps SEO in three ways: (1) it helps your images rank in Google Images, which drives traffic; (2) it strengthens the topical relevance of the page for your target keywords; and (3) it improves accessibility, which is an indirect ranking factor as Google favors user-friendly sites. Pages with properly optimized alt text consistently outperform those without in image search results.
Aim for 5 to 15 words, or roughly 50 to 125 characters. Most screen readers cut off alt text at around 125 characters, so anything beyond that may not be read. If an image is too complex to describe in 125 characters (like an infographic or chart), use a brief alt text and provide a longer description in the surrounding page content or via a longdesc attribute.
Every image should have an alt attribute, but not every image needs alt text. Informative images (photos, diagrams, screenshots, product images) need descriptive alt text. Decorative images (background patterns, visual spacers, ornamental icons) should use an empty alt attribute: alt="". Never omit the alt attribute entirely — that’s invalid HTML and causes screen readers to read the file path aloud.
The alternative text attribute is really important for both SEO and accessibility: you should not neglect it under any circumstances.
To summarize the key takeaways:
alt="" for decorative images, never omit the attributePerfectly writing alternative texts can be tricky and time-consuming. I hope the explanations, examples, and tables I provided in this guide will help you optimize every image on your site.
If you have hundreds or thousands of alternative texts to optimize, make sure to give a look at Image SEO Optimizer. This WordPress plugin could save you hours!