Free SEO audit for new clients — claim yours
Home/Blog/Technical SEO/Image SEO: How to Optimize Images for Search
Technical SEO

Image SEO: How to Optimize Images for Search

Image SEO: How to Optimize Images for Search
Table of contents
  1. Key Takeaways
  2. What Is Image SEO?
  3. Where Images Can Appear in Search
  4. The Image SEO Checklist
  5. How to Write Good Alt Text
  6. Step-by-Step Image Optimization Workflow
  7. Images and Page Speed
  8. Image SEO for Ecommerce
  9. Common Image SEO Mistakes
  10. Related Guides
  11. Frequently Asked Questions
    1. What is the most important part of image SEO?
    2. Does Google index CSS background images?
    3. Which image format is best for SEO?
    4. Should I lazy-load all images?
    5. Do I need an image sitemap?
  12. Conclusion
  13. References

Images do a lot of quiet work for a website. They explain products, prove that a service was done well, break up long articles and make pages more shareable. They can also be a source of traffic in their own right, through Google Images, image packs in web results, Google Discover and visual search with Google Lens.

But images can just as easily hold a site back. Oversized files slow pages down, missing alt text leaves search engines guessing, and images loaded the wrong way may never be indexed at all. Image SEO is the discipline of getting all of this right.

In this guide you will learn how Google finds and understands images, the exact optimizations that matter in 2026, a step-by-step workflow you can apply to any site, and the mistakes we most often fix during audits.

Key Takeaways

  • Use real HTML <img> elements; Google doesn't index CSS background images.
  • Write descriptive, natural alt text and short, descriptive file names.
  • Compress images and use modern formats like WebP or AVIF with responsive srcset.
  • Never lazy-load the main above-the-fold image; give it priority instead.
  • Place images near relevant text on useful pages, because Google uses page context to understand them.

What Is Image SEO?

Image SEO is the process of making images discoverable, understandable and fast, so they can rank in image-based search features and support the rankings and user experience of the pages they sit on.

It has two goals. The first is visibility: helping Google find, index and correctly interpret your images. The second is performance: making sure images do not drag down page speed or Core Web Vitals. Both feed into wider technical SEO and on-page SEO.

  • Google Images, the dedicated image search tab.
  • Image packs and thumbnails within regular web results.
  • Google Discover, where large, high-quality images matter. Google recommends images at least 1200 px wide, enabled by the max-image-preview:large setting or AMP.
  • Google Lens and visual search results.
  • Rich results such as products, recipes and articles, where images come from structured data and the page.
  • Local results, where photos on your Business Profile help customers choose (see our local SEO guide).

The Image SEO Checklist

ElementBest practiceWhy it matters
HTML elementUse <img> (or <picture> with an <img> fallback)Google finds images in the src attribute; CSS images aren't indexed
Alt textDescribe the image specifically and naturallyMain metadata signal for Google and essential for screen readers
File nameShort and descriptive, e.g. red-brick-patio.jpgGives a light extra hint about the subject
FormatWebP or AVIF for photos, SVG for logos and iconsSmaller files and faster loading
DimensionsSet width and height attributesReserves space and prevents layout shift (CLS)
Responsive sizesUse srcset and sizes with a src fallbackPhones download smaller files
LoadingLazy-load below the fold; eager and high priority for the LCP imageSaves bandwidth without delaying the main content
Page contextPlace images near relevant headings and textGoogle uses surrounding content to understand images
Structured dataInclude images in Product, Recipe, Article markupCan enable image-rich results
SitemapAdd image entries if images are hard to discoverHelps Google find images, including on CDN domains

How to Write Good Alt Text

Alt text (the alt attribute) describes an image for people who cannot see it and for search engines. Google is clear about its importance:

“The most important attribute when it comes to providing more metadata for an image is the alt text.”

— Google Search Central, Image SEO best practices

Google also warns against filling alt attributes with keywords, because it creates a poor experience and may cause a site to be seen as spam. Compare these examples, adapted from the approach Google illustrates in its documentation:

QualityAlt text exampleVerdict
Missingalt="" on a product photoSearch engines and screen readers get nothing
Keyword-stuffed"patio pavers cheap patio pavers best patio pavers Austin"Spammy and unhelpful
Vague"patio"Accurate but generic
Good"Red brick patio with built-in fire pit in a small back garden"Specific, natural and useful

Decorative images such as background flourishes or spacers can use an empty alt attribute so screen readers skip them.

Step-by-Step Image Optimization Workflow

  1. Choose or create original images. Real photos of your products, team, premises and work are more useful than generic stock and are more likely to be distinctive in image search.
  2. Resize before upload. Export images at the largest size they will actually be displayed, not straight from the camera.
  3. Compress and convert. Use WebP or AVIF for photos with sensible quality settings, and SVG for vector graphics.
  4. Name the file descriptively. Use lowercase words separated by hyphens that describe the image.
  5. Write alt text. Describe what is in the image in the context of the page, naturally including a keyword only if it genuinely fits.
  6. Add responsive markup. Provide srcset, sizes, width and height, as in the example below.
  7. Set loading behaviour. Lazy-load images below the fold. For the hero image, keep the default eager loading and consider fetchpriority="high".
  8. Add structured data where relevant. Include image properties in your schema markup for products, recipes and articles.
  9. Check indexing and performance. Use URL Inspection to confirm Google sees images in the rendered HTML, and PageSpeed Insights to check their effect on LCP.
<img
  src="/images/blue-trail-running-shoe-800.webp"
  srcset="/images/blue-trail-running-shoe-400.webp 400w,
          /images/blue-trail-running-shoe-800.webp 800w,
          /images/blue-trail-running-shoe-1200.webp 1200w"
  sizes="(max-width: 600px) 100vw, 600px"
  width="800" height="800"
  alt="Blue trail running shoe with a grippy rubber sole, side view"
  loading="lazy">

Images and Page Speed

Images are often the heaviest resources on a page, and the hero image is frequently the Largest Contentful Paint element. Web.dev's guidance is unambiguous: never lazy-load your LCP image, because that always delays it. It also cautions that setting high priority on more than one or two images makes the hint unhelpful.

Practical speed wins include:

  • Serving images from a CDN with automatic format conversion and resizing.
  • Preloading or prioritizing the single most important image.
  • Replacing animated GIFs with short, muted video files.
  • Removing unused images and carousels nobody scrolls through.

For a wider list of fixes, see our guides to Core Web Vitals and improving page speed, or let our page speed optimization team handle it.

Image SEO for Ecommerce

Product images are often the deciding factor in a purchase. Show several angles, include images in Product structured data, keep image URLs stable when variants change, and make sure gallery images are real <img> elements rather than JavaScript-only backgrounds. Our ecommerce SEO service covers product image optimization as standard.

Common Image SEO Mistakes

  • Using CSS background images for important content. They look fine but are not indexed as images.
  • Keyword-stuffed alt text. It reads badly and can look spammy.
  • Lazy-loading the hero image. A common plugin default that hurts LCP.
  • Missing width and height. Leads to layout shifts as images load.
  • Uploading huge originals. Multi-megabyte photos displayed as small thumbnails waste bandwidth, especially on mobile (see our mobile SEO guide).
  • Blocking image folders in robots.txt. Google cannot index what it cannot crawl.
  • Generic file names such as IMG_4021.jpg or image1.png.

Frequently Asked Questions

What is the most important part of image SEO?

Descriptive alt text on a properly coded HTML image, placed on a relevant, useful page. Google calls alt text the most important attribute for giving it extra information about an image.

Does Google index CSS background images?

No. Google's image documentation states that it doesn't index CSS images. If an image matters for search, use an img element (optionally inside a picture element).

Which image format is best for SEO?

Google supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. For most photos, WebP or AVIF give smaller files at similar quality, which helps page speed. Use SVG for logos and icons.

Should I lazy-load all images?

No. Lazy-load images below the fold, but never the main image visible when the page loads. Lazy-loading the LCP image delays it and hurts Core Web Vitals.

Do I need an image sitemap?

Not always. It helps when images are loaded in ways Google might miss, or when you host images on a CDN or another domain, since image sitemaps can list URLs from other domains.

Conclusion

Image SEO in 2026 comes down to a few disciplined habits: real image elements, descriptive alt text and file names, modern compressed formats, responsive sizes and smart loading. Do those consistently and your images will help both rankings and conversions instead of slowing pages down.

If you would like your image library audited and optimized, our on-page optimization specialists can help. Get a free quote today.

References

  1. Image SEO best practices – Google Search Central
  2. Browser-level image lazy loading for the web – web.dev
  3. Optimize Largest Contentful Paint – web.dev
  4. Get on Discover – Google Search Central
  5. Image SEO: How to Optimize Images for Search Engines & Users – Semrush Blog
My SEO Experts Team

Our team of SEO and digital marketing specialists has been helping businesses grow organically since 2018. More about us.

Keep reading

Related articles

Ready to grow your business online?

Get a free, no-obligation proposal tailored to your goals and budget.

CallFree Quote