Every image on your website is a ranking opportunity. When you learn how to name images for SEO, you unlock traffic from Google Images, improve your pages’ topical relevance, and make your content accessible to both humans and machines.
In this in-depth guide, we break down the four HTML elements that control how search engines understand your images: filenames, alt text, title text, and figcaptions. You will learn exactly how to write each one, see real-world examples, and walk away with a checklist you can apply to every image you publish.
If you manage a WordPress site with hundreds or thousands of images, doing this manually is not realistic. That is why we built the ImageSEO plugin, which uses AI to generate optimized alt text and filenames at scale. But whether you optimize by hand or with a tool, the principles below apply to every website.
Image search is no longer a secondary channel. It is a major source of qualified traffic for e-commerce stores, publishers, and service businesses alike. Here are the numbers that make the case:
In 2026, the landscape has expanded beyond traditional search. AI-powered search engines and assistants, including ChatGPT Search, Claude, and Perplexity, now crawl and index web content. These systems rely heavily on structured text signals like alt text and filenames to understand what an image depicts. When an AI assistant answers a question that involves visual content, properly named images with descriptive alt text are far more likely to be referenced and linked.
This means that optimizing your image metadata is no longer just about Google. It is about ensuring your visual content is discoverable across every platform where people search for information.
Before we dive into the details, here is a quick overview of the four HTML attributes and elements you need to understand:
blue-running-shoes-nike.jpg). Search engines read the filename before anything else.<img> tag that tells search engines and screen readers what the image shows.<figure> and <figcaption> HTML elements. Figcaptions are indexed by search engines and read by users.Each element serves a distinct purpose. The most important ones for SEO are the filename and the alt text. Let us start with filenames.
The filename is the first piece of information a search engine encounters about your image. It is baked into the URL, which means it is permanent, public, and crawlable. Getting it right from the start saves you from painful redirects later.
When Googlebot discovers an image, it reads the file path and name to form an initial understanding of the image content. Google’s own image SEO documentation states that filenames can give Google clues about the subject matter of the image.
Consider the difference between these two URLs:
example.com/images/IMG_20260301_1847.jpg – Tells search engines nothing.example.com/images/red-leather-handbag-front-view.jpg – Immediately communicates the subject, color, material, and perspective.The second URL reinforces the page’s keyword relevance and gives Google Images a strong signal to rank that image for queries like “red leather handbag.”
Follow these rules every time you name an image file:
blue-running-shoes-on-trail.jpg is ideal.DSC0001.jpg, image1.png, or Screenshot 2026-03-15.png before uploading.| Do (Good Filenames) | Don’t (Bad Filenames) |
|---|---|
chocolate-chip-cookies-recipe.jpg |
IMG_4521.jpg |
yoga-mat-purple-6mm.jpg |
product-photo.jpg |
new-york-skyline-sunset.jpg |
photo_final_v2 (1).jpg |
seo-audit-checklist-template.png |
screenshot-2026-01-15-at-10.32.png |
white-ceramic-coffee-mug.jpg |
mug.jpg |
If your WordPress media library is full of poorly named images, you have several options:
Whichever method you choose, make sure old image URLs redirect (301) to the new ones. Broken image URLs hurt both user experience and SEO.
There is no official character limit from Google, but best practice is to keep filenames between 3 and 8 words (roughly 20 to 60 characters). Longer filenames get truncated in some tools and become harder to manage. Shorter filenames may lack the descriptive detail search engines need.
A good rule of thumb: if you can describe what the image shows in five hyphenated words, that is usually the sweet spot for learning how to name images for SEO effectively.
Alt text is the single most important on-page element for image SEO. It is also a legal accessibility requirement in many jurisdictions. Getting alt text right serves both search engines and users with disabilities.
Alt text (short for “alternative text”) is a text attribute added to the HTML <img> tag. It describes the content and function of an image. Here is what it looks like in code:
<img src="blue-running-shoes.jpg" alt="Blue Nike running shoes on a forest trail">
When the image cannot be displayed (slow connection, broken URL, or email client blocking images), the alt text appears in its place. Screen readers also read alt text aloud to visually impaired users, making it essential for web accessibility.
You will hear these terms used interchangeably, but there are technical distinctions:
<img> HTML element.For practical purposes, all three terms refer to the same thing: the descriptive text you write for your image.
Writing effective alt text is a balance between being descriptive for accessibility and being strategic for SEO. Follow these guidelines:
Here are real-world examples showing the difference between poor, acceptable, and excellent alt text:
Example 1: Product image
alt="shoes"alt="running shoes"alt="Women's blue Nike Air Zoom Pegasus 42 running shoes, side view"Example 2: Blog post image
alt="chart"alt="SEO traffic chart"alt="Line chart showing 140% increase in organic traffic after image SEO optimization over 6 months"Example 3: Decorative image
alt="". This tells screen readers to skip it.The Web Content Accessibility Guidelines (WCAG 2.2) require that all non-decorative images have meaningful alt text. This is not optional. In many countries, including the United States (under the ADA) and the European Union (under the European Accessibility Act), failing to provide alt text can expose your organization to legal risk.
Beyond legal compliance, accessible images make your site usable for the estimated 2.2 billion people worldwide who have some form of vision impairment. Good alt text is good SEO and good ethics.
For a comprehensive deep dive into alt text optimization, read our full guide: Alt Text for SEO: The Complete Guide.
The title attribute is the second text attribute you can add to an <img> tag. It looks like this:
<img src="blue-shoes.jpg" alt="Blue running shoes on a trail" title="Nike Air Zoom Pegasus 42">
When a user hovers their mouse over the image, the title text appears as a small tooltip. On mobile devices, it is generally not visible at all.
The title attribute has minimal direct impact on search rankings. Google has stated that it uses alt text as the primary text signal for images, and the title attribute is considered a secondary signal at best. However, there are situations where it adds value:
Do not spend significant time crafting title attributes for every image. Instead, use them strategically:
If you use the ImageSEO plugin, it can automatically generate title attributes alongside alt text, saving you the manual effort.
The <figure> and <figcaption> elements are among the most underused image SEO tools. While filenames and alt text work behind the scenes, figcaptions are visible to readers and provide an additional text signal that search engines index.
In HTML, the <figure> element wraps self-contained content like images, diagrams, or code snippets. The <figcaption> element sits inside <figure> and provides a caption. Here is the markup:
<figure>
<img src="seo-traffic-chart.png" alt="Organic traffic growth after image optimization">
<figcaption>Organic traffic increased 140% in 6 months after optimizing image filenames and alt text across 200 blog posts.</figcaption>
</figure>
The <figure> element tells browsers and search engines that the image and its caption are semantically related. This is stronger than simply placing a paragraph below an image.
Figcaptions provide measurable SEO and engagement benefits:
Adding a figcaption in WordPress is straightforward:
<figure> and <figcaption> tags.<figure> and <figcaption> markup shown above.Tip: Your figcaption should not duplicate the alt text. The alt text describes what the image shows for accessibility. The figcaption provides additional editorial context, a data point, or a call to action for sighted readers.
The rise of AI-powered search platforms has introduced a new dimension to image SEO. Understanding how these systems work helps you optimize for the full spectrum of search in 2026.
AI search engines like ChatGPT Search, Claude, and Perplexity use web crawlers to index content, similar to Googlebot. When these crawlers encounter images, they rely on text-based signals to understand visual content:
To maximize the chances that your images and associated content are referenced by AI search engines, follow these additional practices:
loading="lazy") rather than JavaScript-only solutions.The fundamental principle remains the same: describe your images accurately and thoroughly. What has changed is that the audience for those descriptions now includes AI systems that synthesize information across millions of pages.
Use this checklist every time you add an image to a page or blog post. It covers all the elements discussed in this guide.
alt="") for purely decorative images.loading="lazy" attribute added to images below the fold.srcset and sizes attributes used to serve appropriate resolutions.If this checklist feels overwhelming for a site with thousands of images, the ImageSEO plugin can automate the filename, alt text, and title text steps in bulk.
Knowing how to name images for SEO comes down to mastering four elements. Here is what to remember:
Image SEO is not a one-time task. As you publish new content and update old pages, apply these practices consistently. The cumulative effect of well-named, well-described images across your entire site builds topical authority, drives image search traffic, and ensures your visual content is discoverable by both traditional search engines and AI-powered platforms in 2026 and beyond.