complete guide to image SEO

Image SEO: How to Optimize
Images for Search and AI Results

Image SEO is the work of making the images on your site findable by search engines and cheap for browsers to load. It covers what the file is called, what the alt text says, which format it uses, how many bytes it weighs, how it is served to different screens, and what surrounds it on the page.

It gets skipped more than any other on-page task, even though Images are the single largest contributor to page weight on the median website. An image nobody can interpret is invisible in Google Images, in Lens, and in any AI answer that wants a picture.

Key Takeaways

  • Resize before you compress. A photo exported at 4,000 pixels wide and squeezed to 800 KB is still four times bigger than the slot it fills. The resize does most of the work.
  • WebP is the safe default, AVIF is the smaller one. Can I Use puts global support at 97.18% for WebP and 96.35% for AVIF, so both are safe behind a <picture> fallback.
  • Alt text is a description, not a keyword slot. Google calls it the most important attribute for giving an image metadata, and it also tells you not to stuff it.
  • Decorative images take alt="", not a missing alt. An empty alt tells a screen reader to skip the image. A missing one makes it read the file name.
  • Never lazy-load the hero. web.dev’s instruction is to avoid lazy loading anything likely to be in the viewport at load, LCP images above all.
  • Always set width and height. Without them the browser reserves no space and your layout shifts when the image arrives.
  • File names should read like captions. trail-shoe-tread-wear.jpg instead of IMG_0023.JPG. It is one of the cheapest wins on this list.
  • Image sitemaps are for images Google cannot find on its own, mainly JavaScript-loaded galleries and CDN-hosted files. Everyone else can skip them.
  • Context does the heavy lifting. Google reads the text around an image, the caption, and the heading above it to work out what the image shows.

What Image SEO Is and Where Images Surface

image seo explained

Two separate outcomes sit under the same label – image discoverability and page experience.

Discoverability is whether your images get found and shown in search. The surfaces are Google Images, the image packs that appear inside regular results, Google Lens, Discover, AI-generated answers that include a picture, and the preview card that appears when somebody shares your URL. Winning here depends on what the image is about and how well your markup explains it.

Page experience is whether your images make the page slow. This one depends on bytes and loading behavior, and it affects every visitor rather than only the ones arriving from image search.

HTTP Archive’s 2025 Web Almanac found that the median desktop home page ships 1,058 KB of images out of 2.86 MB total, and the median mobile home page 911 KB out of 2.56 MB. Images are the largest single resource type on both, ahead of JavaScript. On inner pages the figure drops to 442 KB, which tells you where the worst offenders live: the home page nobody audits.

Visual search is no longer a rounding error either. Google’s own figure, published in October 2024 and still the one it quotes, is that people use Lens for more than 20 billion visual searches a month (2024 data), with a fifth of them shopping-related.

Image SEO supports content, but it can never substitute for it. A page with nothing to say will not rank because its images are 40 KB lighter. The work below pays off on pages that already deserve to rank, which is the same place most on-page SEO returns come from. If you do not have a detailed SEO strategy running yet, start there and come back to this.

How to Optimize Images for SEO

image optimization tips for seo

Ten steps, roughly in the order you would do them.

1. Start with images worth finding

Stock photography is invisible. The same shot of two people shaking hands sits on ten thousand pages, and no search engine has a reason to prefer your copy of it.

Original images are the only ones that can be found for their own sake. A screenshot of the thing you are describing, a photo of the product you tested yourself, a diagram you drew, a chart built from your own numbers. Those are also the images that get cited in an AI answer, because they contain information that exists nowhere else.

This overlaps with information gain. If your page includes a chart nobody else has, you have given both a reader and a retrieval system a reason to pick your page over a better-linked one. If your page includes a hero image of a laptop on a desk, you have added 100 KB and nothing else.

The practical rule for a content site: one original asset per article, placed where it carries the argument rather than where the template wants decoration.

2. Name the file like a human would

Google’s instruction is to use file names that are “short, but descriptive,” and their example of what not to do is IMG00023.JPG. In other words, you can’t just transfer images from your phone or give random names to images.

Use hyphens between words, keep it to a few words, and describe what the image shows rather than what you want to rank for. trail-shoe-tread-wear.jpg works. best-trail-running-shoes-seo-image-2026.jpg reads as manipulation and describes nothing.

This is the cheapest item in this guide and the one most sites fail wholesale, because the file name is whatever the camera or the design tool produced. Renaming on upload takes three seconds and nobody does it.

Changing file names on published pages means changing URLs, which means redirects, so fix the process for new uploads and leave the archive alone unless you are already migrating. And pick the term a reader would use rather than the one your keyword research tool reports highest, since a file name is not a ranking lever and overfitting it looks exactly like what it is.

3. Write alt text that describes, not markets

Google calls alt text “the most important attribute when it comes to providing more metadata for an image,” and in the same breath tells you to avoid keyword stuffing. Example of good alt text are “Pirate ship sailing the sea” and “Group of children playing Monopoly.”

The accessibility world has a better framework than the SEO world does here. The W3C’s alt decision tree sorts images by job, and the job determines the text.

Image typeWhat goes in the alt
InformativeA short description of what it shows and why it is there
Functional (inside a link or button)What happens when you click it, not what the icon looks like
Decorativealt=””, empty but present
Image of textThe text itself, word for word
Complex (chart, diagram)A brief alt, with the full data in the page text or a table

The empty-alt case is the one people get wrong. A decorative image with alt=”” is skipped by a screen reader, which is correct. A decorative image with no alt attribute at all makes the screen reader announce the file name, so your reader hears the file name spelled out, “D S C zero two nine one dot j p g.”

Four alt strings, three of them failures:

  • alt="image seo, image optimization, seo images, best image seo" is stuffing.
  • alt="image" says nothing.
  • alt="screenshot" says almost nothing.
  • alt="Squoosh reducing a 2.4 MB JPEG to 180 KB as WebP" describes the image and happens to contain relevant terms, because the image is relevant.

If you use an AI alt-text generator, read every line it produces. They describe what is literally visible and miss why the image is on the page, which is usually the part that matters.

4. Pick the right format

Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF in the src attribute, so format choice is about file size and fidelity rather than about being indexed.

FormatUse it forNot for
AVIFPhotos and complex images where you want the smallest fileAnything needing support on very old clients without a fallback
WebPThe safe default for photos and graphicsNothing much; it is the sensible baseline
JPEGThe fallback inside <picture>Transparency, flat graphics, text
PNGScreenshots, transparency, flat graphicsPhotographs, where it bloats badly
SVGLogos, icons, line art, diagramsPhotographs
GIFNothing you can avoidAnimation, which should be video or AVIF

Support figures, read from Can I Use at the time of writing: WebP at 97.18% globally, AVIF at 96.35%, with AVIF arriving in Chrome 85, Firefox 93, Safari 16.4 and Edge 121. Both are safe. AVIF is roughly 20-30% percent smaller than WebP on the same photo at matched quality, which is why it is worth the extra build step on image-heavy pages.

The pattern that makes either safe is a <picture> element with a fallback, which Google explicitly asks for:

<picture>

  <source srcset="trail-shoe-tread-wear.avif" type="image/avif">

  <source srcset="trail-shoe-tread-wear.webp" type="image/webp">

  <img src="trail-shoe-tread-wear.jpg"

       alt="Worn tread on a trail running shoe after 300 miles"

       width="1600" height="900">

</picture>

The browser takes the first format it understands and ignores the rest. Nothing breaks anywhere.

5. Resize before you compress

The order matters more than the tooling.

Take a hero photo straight off a phone at 4,032 pixels wide, 2.4 MB as a JPEG. The slot it fills on your page is 1,600 pixels at most.

Resize to 1,600 px and it drops to roughly 600 KB with no visible change, because you removed pixels no screen was going to show. Convert that to WebP at quality 80 and it lands near 180 KB. Convert to AVIF instead and it lands near 120 KB. That is a 95% reduction, mostly thanks to the resize.

Those figures are illustrative rather than measured, and your own photos will land somewhere different depending on subject and noise. The ratio is the durable part: resize first, convert second, tune quality third. A 4,032-pixel image compressed to 800 KB without resizing is still shipping four times the pixels anyone will see.

For quality settings, lossy at 75-85 is invisible on photographs. Below 70 you start seeing it on gradients and skies. Use lossless only for flat graphics and screenshots with text, where lossy artifacts show up around the letterforms.

Working budgets, not rules from Google:

Image roleMax dimensionTarget weight
Hero, full width1,600 to 2,000 px wideUnder 150 KB
Inline content image800 to 1,200 pxUnder 100 KB
Thumbnail or card400 to 600 pxUnder 30 KB
Logo or iconSVG wherever possibleUnder 10 KB

The Squoosh tool is the quickest way to see the trade-off, since it shows both versions side by side with a byte count. For anything at volume, do it in the build pipeline or at the CDN rather than by hand. Our technical SEO guide covers the delivery layer, including when a CDN with automatic format conversion earns its cost.

6. Serve the right size to every screen

One image file for every device means phones download desktop pixels. srcset and sizes fix that by handing the browser a menu and letting it choose.

<img src="trail-shoe-tread-wear-1200.webp"

     srcset="trail-shoe-tread-wear-600.webp 600w,

             trail-shoe-tread-wear-1200.webp 1200w,

             trail-shoe-tread-wear-1800.webp 1800w"

     sizes="(max-width: 700px) 100vw, 700px"

     alt="Worn tread on a trail running shoe after 300 miles"

     width="1200" height="675">

srcset lists what exists and how wide each file is. sizes tells the browser how much space the image will occupy before any CSS has loaded, which is the part people omit and the reason the feature often appears not to work.

width and height belong on every <img> tag regardless. web.dev’s reasoning is direct: they let the browser reserve space for the image and avoid layout shifts. Leave them off and the image area computes as zero by zero until the file arrives, then the page jumps. They do not fix the rendered size, which CSS still controls. They supply the aspect ratio.

Most modern CMS platforms generate the srcset for you on upload. Check that yours does, and check what dimensions it generates, because defaults set years ago are often still producing 1024-pixel maximums for full-width heroes.

7. Lazy load everything except the hero

Native lazy loading is one attribute and it works everywhere: loading="lazy" on any image below the fold.

The rule that matters is the exception. web.dev states it plainly: “Don’t lazy-load images that are likely to be in-viewport when the page loads, especially LCP images.” Lazy loading your hero delays the one request that defines your LCP, so a change meant to speed up the page measurably slows down the metric Google watches.

So the hero gets the opposite treatment. Leave off loading="lazy", and add fetchpriority=”high”, which lets an important image start at high priority immediately rather than waiting its turn. It is a hint rather than a directive, so the browser can still override it, but on a page where the hero competes with fonts and scripts it usually helps.

Use it on one image per page. The value comes from the contrast with everything else, so marking six images as high priority marks none of them.

A related failure worth naming: images loaded as CSS backgrounds are invisible to all of this. No alt text, no srcset, no indexing in Google Images, and harder for the browser to discover. Use CSS backgrounds for decoration and real <img> tags for anything that carries content.

8. Give images context on the page

Google’s guidance here is explicit. Place images near relevant text and on pages that are relevant to the image subject matter, and it reads captions and image titles to work out what an image shows.

So the heading above an image is part of the image’s description, which makes this an extension of your header tags work. An image sitting under a heading that names its subject is easier to interpret than the same image floating between two unrelated paragraphs.

Write real captions on images that carry information. A caption can say what the alt text cannot, because alt text is a replacement for the image while a caption is additional commentary for someone who can see it. “LCP dropped from 4.1s to 1.8s after the hero was converted to AVIF” is a caption. “Hero image” is not.

[NEEDS SOURCE: the claim that captions are read more often than body copy is widely repeated but I could not trace it to an original study. Either find the original research or cut the claim.]

The surrounding text matters more than any attribute on the tag itself. If the paragraphs around an image describe what it shows, you have given every system reading the page a consistent signal. If they do not, the alt text is working alone.

9. Add structured data where it earns something

Structured data on images is worth doing in two cases and skippable otherwise.

The first is image licensing. Google’s image license metadata documentation makes a page eligible for a Licensable badge in Google Images, which links to your license terms. It uses ImageObject and needs contentUrl plus at least one of creator, creditText, copyrightNotice or license, with license required for the badge itself, and acquireLicensePage recommended. If you sell or license photography, this is a direct commercial return.

The second is the og:image tag, which controls the preview card when your URL is shared and gives Google a hint about which image on the page is the main one. It takes thirty seconds and it is the difference between a shared link that looks deliberate and one that grabs your sidebar logo.

Everything else is optional. Adding ImageObject to every inline screenshot on a blog post does nothing that the alt text and surrounding copy are not already doing.

10. Check where these controls live

The controls exist in every platform, they are just buried in different places.

In WordPress, the media library holds the file name and the alt text, and the block editor exposes alt text in the image block’s settings sidebar. The file name is fixed at upload, so rename before you drag the file in. In Shopify, product image alt text sits behind the ALT link on each image in the product editor, and theme images are edited in the theme customizer. In Wix and Squarespace, alt text lives in each image element’s settings panel.

In all three, the default upload behavior is the problem rather than the interface. Platforms accept a 5 MB camera file and serve a resized copy while keeping the original in your media library, and the resized copy is often larger than it needs to be. Set your export dimensions before upload rather than relying on the platform to clean up afterward.

Image Sitemaps: Do You Need One?

the value of image sitemaps

Probably not, and the cases where you do are specific.

Google’s position is that an image sitemap helps it find images “that we might not otherwise find (such as images your site reaches with JavaScript code).” That is the test. If your images sit in plain <img> tags on pages Google already crawls, it has them. A sitemap adds nothing.

You need one when images load through JavaScript, as in a gallery or a filtered product grid that fetches images after render, or when images live on a CDN domain that Google has no other reason to crawl.

The markup is an extension to a normal sitemap rather than a separate file:

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"

    xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">

  <url>

    <loc>https://example.com/trail-shoe-review/</loc>

    <image:image>

      <image:loc>https://cdn.example.com/trail-shoe-tread-wear.webp</image:loc>

    </image:image>

  </url>

</urlset>

Two things to know. Only image:image and image:loc are still supported, with a limit of 1,000 images per URL entry. The caption, title, geolocation and license tags that older tutorials show you have all been deprecated, so putting them in does nothing.

Submit it the same way as any sitemap, through the Sitemaps report in Search Console or a reference in robots.txt. Most SEO plugins can generate image entries automatically, which is the sane route if you are on WordPress.

Google Images, Lens, and AI Answers

how Google, lens and AI overviews see images

This is the section where it pays to separate what is documented from what is observed from what is guesswork, because the gap between the three is wide here and most writing on the topic blurs it.

What Google documents. Images need to be in real <img> tags on crawlable pages. Alt text, file names, captions and surrounding text are how Google works out the subject. Structured data can produce rich results in Google Images. Supported formats are listed. On AI features, Google’s documentation says there are “no additional requirements to appear in AI Overviews or AI Mode, nor other special optimizations necessary,” and that both may use a query fan-out technique, issuing multiple related searches across subtopics before building a response.

An image whose four signals agree is easier to select, but it still lands on a page a model has to read, and the text around the image is what gets quoted into the answer.

What is reasonable to infer. A system picking an image for an answer has to decide what the image shows, and it has the same inputs a crawler does: the alt text, the caption, the heading above it, and the paragraphs around it. An image whose four signals agree is easier to select than one whose alt text says “chart” while the surrounding text discusses conversion rates. That is the mechanism working as described rather than a published ranking factor.

What is guesswork. Anybody telling you there is an image schema trick that gets you into AI Overviews is guessing. Nobody outside Google knows the selection criteria, and the documentation says there is no special optimization. Treat confident claims with suspicion.

Lens deserves its own note because it inverts the usual flow. The query is a photograph, matched against indexed images, and the page that owns the matching image gets the visit. That makes product photography a discovery channel for ecommerce in a way it is not for B2B, which is also why a fifth of Lens searches being shopping-related matters commercially.

The practical instruction across all three surfaces is the same and dull: original images, accurate alt text, real captions, consistent naming of the thing in the image across your site so the entity is unambiguous. Our coverage of Google’s AI optimization guidance goes through what Google has said it wants from pages feeding these features.

[NEEDS SOURCE: current prevalence of image packs in Google results. The 55.62% figure circulating from April 2024 is stale and I have no fresh first-party figure. Pull one from Semrush Sensor or Ahrefs SERP features data before publishing, or leave the claim out.]

How to Audit Your Images

image audit process for seo

Four passes, in order of what they will find.

Search Console shows whether image search sends you anything. Open Performance, then set Search type to Image. If impressions are near zero on a site with hundreds of original images, something structural is wrong: images loaded as CSS backgrounds, a blocked directory, or alt text that describes nothing.

search type by image in google search console

PageSpeed Insights or Lighthouse finds the weight problems on a single page. The diagnostics that matter are “Properly size images,” “Serve images in modern formats” and “Defer offscreen images,” plus the LCP element readout, which tells you which image is defining your LCP and so which one must never be lazy-loaded.

A crawler finds the pattern across the site. Screaming Frog’s Images tab lists missing alt text and files over 100 KB. Sort by size and the worst twenty images are usually responsible for most of the problem, which makes this a short job rather than a site-wide rewrite.

Your robots.txt is the five-second check worth doing first. A disallowed /wp-content/uploads/ or /assets/img/ blocks every image on the site from Google Images, and it happens more often than it should.

Fold this into a recurring content audit rather than treating it as a project. Image problems arrive one upload at a time.

Common Image SEO Mistakes

Keyword-stuffed alt text. Google’s documentation names this one directly. The symptom is an alt attribute that reads as a list rather than a sentence. Describe the image once, in the words you would use saying it out loud, and stop there.

Content images as CSS backgrounds. A background image takes no alt attribute, never appears in Google Images, cannot use srcset, and is harder for the browser to discover and prioritize. The tell is a page with eight visible images and two <img> tags in the source. Use backgrounds for decoration and real tags for anything carrying information.

Lazy-loading the hero. The most common way a performance change makes the page worse. PageSpeed Insights names your LCP element, so compare that against your loading="lazy" attributes and remove the one that overlaps.

Uploading at camera resolution. A 4,032-pixel photo sitting in a 700-pixel column, repeated across a few hundred posts. Sort a crawl by file size and the offenders surface in seconds. The fix is an export preset, not a plugin.

Text baked into images. A headline, a pricing table or a quote rendered inside a graphic is invisible to search, unreadable by a screen reader, and impossible to translate or resize. If the words matter, they belong in HTML with the image supporting them.

The same alt text on every image in a post. Usually a sign that somebody pasted the target term nine times. A screen reader user hears that phrase nine times and learns nothing about any of the nine images, and Google gets one signal repeated instead of nine descriptions.

Blocked image directories in robots.txt. A disallowed /wp-content/uploads/ or /assets/img/ removes every image on the site from Google Images while the pages themselves keep ranking normally, so nothing looks broken from the outside. Five seconds to check, and it is the first thing to rule out when image impressions are flat.

What Image SEO Won’t Do

It will not rank a page that has nothing to say. Google Images returns the page an image sits on, so an image impression earned by a thin page turns into a visit that bounces. Images multiply content quality rather than substituting for it, and a multiplier works in both directions.

It will not fix a weight problem that is really a JavaScript problem. The same Web Almanac data shows the median desktop home page shipping 697 KB of JavaScript alongside its 1,058 KB of images. On a content site the images usually dominate. On a page built with a heavy framework the ratio inverts, and converting every image to AVIF while two megabytes of script block the main thread produces a number that improves and an experience that does not. Open the PageSpeed Insights resource breakdown and confirm which type is the real problem before committing the week.

It will not send meaningful traffic to most B2B sites. Image search intent skews visual and commercial, which is why a furniture retailer and a SaaS blog should treat this work differently. Check rather than assume. Search Console’s Image search type tells you in thirty seconds whether image search sends you anything at all, and if it sends nothing, do this work for page speed, accessibility and citation odds instead of expecting clicks.

Alt text is not a ranking lever. Google uses it to work out what an image shows, and screen readers use it to describe the image to someone who cannot see it. Both are worth doing well. Neither responds to keyword density, and treating the attribute as a ranking field produces a worse page for both audiences with nothing gained.

And none of it holds without a process. Every gain here can be undone by one person uploading a 5 MB camera file, or by a theme update that regenerates your image sizes at the wrong dimensions. Fix the upload step and the build pipeline, then re-audit twice a year. Treating image SEO as a project means doing it again in eighteen months.

Conclusion

Image SEO has an unusual risk profile for on-page work, which is that doing it badly is worse than not doing it. Lazy-load the hero and your LCP gets worse. Stuff the alt text and you have degraded the page for blind users while gaining nothing. Convert everything to AVIF with no fallback and a slice of your audience sees broken images. Most on-page tasks fail quietly by accomplishing nothing. This one can take the page backwards.

That is also why the sequence in this guide matters more than any individual tip. Resize before compressing, because the resize does the work. Describe before optimizing, because an accurate description serves readers, crawlers and answer engines at once while a keyword-loaded one serves none of them. Add structured data only where it buys a specific feature.

Do only three things, rename files on upload, write alt text that describes what the image shows, and stop lazy-loading your heroes. Those take a morning to set up as habits and they capture most of the available return. The format pipelines and sitemaps and schema are worth having, and they are worth having second.


Work With Us

Image SEO is the kind of work that sits in a backlog until a page speed report forces the issue, and by then it is a few hundred uploads deep. The Growth Spice handles content, link building and SEO for teams who would rather fix the upload process once than clean up after it. If your pages are slower or less visible than the content deserves, get in touch.


Frequently Asked Questions (FAQ):

1. What is image SEO?

Image SEO is the practice of making images findable by search engines and fast to load. It covers file names, alt text, format choice, compression, responsive delivery, lazy loading, structured data, and the text surrounding the image on the page. The goal is visibility in image and AI results plus a faster page.

2. Does alt text help SEO?

Indirectly. Google calls alt text the most important attribute for providing metadata about an image, which is how it understands the subject and matches the image to queries. It is not a ranking factor you can push on, and stuffing it with keywords is something Google’s documentation warns against directly.

3. What is the best image format for SEO: WebP or AVIF?

AVIF produces smaller files, roughly 20 to 30 percent below WebP at matched quality. WebP has marginally wider support, 97.18% against 96.35% on Can I Use. Use AVIF first with WebP and JPEG fallbacks inside a <picture> element, which makes the choice safe in every browser.

4. What size should SEO images be?

Match the slot the image fills rather than any fixed number. Full-width heroes at 1,600 to 2,000 pixels wide and under 150 KB, inline images at 800 to 1,200 pixels and under 100 KB, thumbnails at 400 to 600 pixels and under 30 KB. Serve multiple sizes through srcset so phones do not download desktop files.

5. Do image file names matter for SEO?

Yes, modestly. Google asks for file names that are “short, but descriptive” and names IMG00023.JPG as the pattern to avoid. The gain is small per image and meaningful across a site. Set the name before upload, since renaming a published image changes its URL and needs a redirect.

6. Do I need an image sitemap?

Only if Google cannot find your images by crawling. The two real cases are images loaded through JavaScript, such as a filtered gallery, and images hosted on a separate CDN domain. If your images sit in ordinary <img> tags on crawlable pages, a sitemap adds nothing.

7. Does lazy loading hurt SEO?

Only when applied to the wrong images. Lazy loading below-the-fold images helps. Lazy loading an image that is visible on load, especially your LCP image, delays the request that defines your largest paint and makes the metric worse. web.dev’s guidance is to exclude in-viewport images from lazy loading.

8. Do images help you rank in AI search results?

They can help a page get selected, though no vendor documents how. Google states there are no special optimizations for AI Overviews or AI Mode beyond standard SEO. What is sound is making an image interpretable: accurate alt text, a real caption, a heading that names the subject, and surrounding copy that agrees with all three.

Scroll to Top