Alt Text & Alt Tags for SEO: Examples & Best Practices (2026)

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!

What is an alternative text (alt)?

Cathedral Notre Dame de Paris surrounded by clouds
What could be the best alt text for this photo?

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.

Alt texts are a textual alternative for images

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 attributes apply to every image format

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="" />

Alternative text, Alt text, alt tag, alt description and alt attribute: ALL THE SAME!

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.

Alt text and title text (or title tag) are nevertheless different

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.

Why Alt Texts Are Important for SEO and Accessibility

The link between ALT text, Search Engines and Organic Traffic

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.

Alt texts improve in-page SEO

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.

Alt tags are fundamental for accessibility and user experience

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 and Web Accessibility Compliance (ADA & WCAG)

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 and alt text requirements

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:

  • Every informative image must have descriptive alt text
  • Decorative images must use an empty alt attribute (alt="")
  • Complex images (charts, infographics) need longer descriptions
  • Functional images (buttons, links) must describe the action, not the image

Legal risks of missing alt text

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.

How screen readers use alt text

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.

How Google Actually Understands Images in 2026

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:

  • Provides semantic context — connects the image to your page’s topic and keywords
  • Specifies intent — tells Google whether an image is a product, a tutorial step, or a comparison
  • Disambiguates content — distinguishes between similar-looking images used in different contexts
  • Covers text in images — OCR isn’t perfect, especially for stylized or handwritten text

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.

How to Perfectly Write Alternative Texts

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!

Best SEO Practices for Alt Tags in 2026

Images part of or linked to your editorial content

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.

What about functional images?

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.

functional images example from an old website
This menu is made of functional images

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.

Decorative images: when to leave alt text empty

How to spot if an image is decorative or not? You have to answer a double question:

  1. Is the image somehow linked to the content I am talking about?
  2. Is this image providing important functions, such as navigation?
an example of decorative image

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.

Alt Text Examples & Best Practices

Alt text example n°01

Cathedral Notre Dame de Paris surrounded by clouds

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

Alt text example n°02

Adult Red Kangaroo in the Australian desert

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

Alt text example n°03

White rose flower in a natural garden

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

Alt text example n°04

Tesla Model 3 charging at an electric station in a parking lot

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

Alt Text Do’s and Don’ts: Quick Reference Table

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”

Alt Text for E-Commerce Product Images

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.

The product alt text formula

For e-commerce, use this pattern:

[Brand] + [Product Name] + [Key Attribute] + [Variant]

Examples:

  • Clothing: “Levi’s 501 Original Fit jeans in dark wash blue”
  • Electronics: “Apple MacBook Pro 16-inch M3 chip space gray front view”
  • Furniture: “West Elm mid-century modern walnut dining table seats 6”
  • Beauty: “Glossier Cloud Paint liquid blush in shade Dusk”

Multiple product views

When you have multiple images of the same product, vary the alt text for each view:

  • Main image: “Nike Air Max 90 running shoe in white and red”
  • Side view: “Nike Air Max 90 side profile showing air cushion sole”
  • Detail shot: “Nike Air Max 90 close-up of breathable mesh upper”
  • Lifestyle: “Runner wearing Nike Air Max 90 on urban trail”

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.

Common Alt Text Mistakes to Avoid

Even SEO-savvy websites make these errors. Here are the most common alt text mistakes that hurt both rankings and accessibility:

  1. Keyword stuffing — Writing “shoes running shoes best running shoes buy shoes” as alt text. Google may flag this as spam and it creates a terrible screen reader experience.
  2. Using the file name as alt text — “DSC_0042.jpg” or “screenshot-2026-03-15.png” tells nobody anything.
  3. Identical alt text for every image — If all 20 product images say “our product,” Google has no reason to rank any of them.
  4. Omitting alt on important images — Missing the attribute entirely is worse than an empty alt="" because screen readers may read the file path.
  5. Over-describing — An alt text that reads like a novel (“A beautiful stunning gorgeous high-resolution photograph of a majestic golden sunset over the Pacific Ocean with waves crashing…”) is counterproductive. Aim for 5-15 words.
  6. Ignoring context — The same photo of a laptop needs different alt text on a “Best Laptops 2026” page vs. a “Remote Work Setup” page. Match the alt to the content around it.

Alt Texts In WordPress: A Step-by-Step Guide

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.

How to add alt 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.

How to add alt text to images in Elementor

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.

🎨

Elementor Alt Text Integration

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.

One-Click Alt Text

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.

Get image alt tags working in Divi

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.

Bulk Alt tags in WordPress

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.

Best AI Alt Text Generator Tools (2026)

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.

Image SEO Checklist: Beyond Alt Text

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:

  1. Descriptive file names — Use red-nike-air-max-90.jpg instead of IMG_2847.jpg. Separate words with hyphens.
  2. Right file format — Use WebP or AVIF for photographs (smaller files, same quality). Use SVG for logos and icons. Use PNG only when you need transparency and WebP isn’t supported.
  3. Compress images — Large images slow down your page. Use tools like ShortPixel, Imagify, or Squoosh to compress without visible quality loss. Aim for under 200KB per image.
  4. Responsive images — Use srcset and sizes attributes so browsers load appropriately sized images for each device. WordPress does this automatically for uploaded images.
  5. Lazy loading — Add loading="lazy" to images below the fold. This improves page speed by loading images only when they scroll into view.
  6. Image sitemaps — Include your important images in your XML sitemap or a dedicated image sitemap. This helps Google discover images that might be loaded via JavaScript or CSS.
  7. Structured data — Use ImageObject schema for key images. For product pages, include image URLs in your Product schema markup.
  8. Captions and context — Images placed near relevant text with descriptive captions rank better. Google uses surrounding text to understand image context.

For a deep dive into file naming, title attributes, and figcaption, read our complete guide to image SEO attributes: alt, title, filename and figcaption.

Frequently Asked Questions About Alt Text & SEO

What is a good alt tag?

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.

Are alt tags still relevant for SEO in 2026?

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.

What should I put in alt text for SEO?

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.

Does alt text help SEO?

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.

How long should alt text be?

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.

Should every image have alt text?

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.

Final Thoughts About Alt Text for SEO

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 text helps Google understand your images and improves your entire page’s ranking potential
  • Keep alt text descriptive, specific, and under 125 characters
  • Include keywords naturally — never stuff them
  • Use alt="" for decorative images, never omit the attribute
  • Consider accessibility compliance (ADA, WCAG, EAA) as a legal obligation, not just best practice
  • Don’t stop at alt text — file names, compression, and structured data all contribute to image SEO

Perfectly 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!

Our SEO Tool will grow your traffic

Why have you neglected images search engine optimization for so long ?

Try it for free
\n