Image Optimization for SEO: The Complete Guide

Images influence rankings through page speed, Core Web Vitals and image search. Here is the complete, prioritised checklist to get them right.

Images are usually the heaviest thing on a web page, which makes them one of the biggest levers on your SEO. They affect rankings in three ways: page speed and Core Web Vitals, image search visibility, and on-page relevance. Here is how to optimise for all three.

1. Speed: the ranking factor you can feel

Google uses Core Web Vitals as a ranking signal, and images directly drive Largest Contentful Paint (LCP) — usually the biggest image above the fold. Shrink it and your LCP improves. The essentials:

  • Serve modern formats (WebP/AVIF) instead of JPG/PNG.
  • Resize images to the dimensions they are actually displayed at.
  • Compress to quality ~80.
  • Specify width and height so the layout doesn't shift (protecting your CLS score).

2. Lazy loading and responsive images

Add loading="lazy" to below-the-fold images so the browser only loads them when needed. Use srcset to serve smaller images to phones and larger ones to desktops. Together these cut the initial page weight substantially.

3. Alt text and file names

Descriptive alt text helps accessibility and tells search engines what the image shows — it is how you rank in Google Images. Write natural, specific descriptions ("golden retriever puppy on a beach"), not keyword stuffing. Give files meaningful names (red-leather-handbag.webp, not IMG_4821.webp).

4. Structured data and sitemaps

Where relevant, mark up images with structured data (product, recipe, article) so they can appear as rich results. Make sure important images are reachable in your sitemap so they get indexed.

5. The prioritised checklist

  1. Convert to WebP/AVIF.
  2. Resize to display size.
  3. Compress to ~80 quality.
  4. Set explicit width/height.
  5. Lazy-load below-the-fold images.
  6. Write descriptive alt text and file names.

Do those six things and your images will stop dragging your rankings down and start helping them.

Try the tools

Frequently Asked Questions

Do images really affect SEO rankings?

Yes — indirectly through page speed and Core Web Vitals (especially LCP and CLS), and directly through Google Images, where alt text and file names determine visibility.

What is the best image format for SEO?

WebP or AVIF, because smaller files load faster and improve Core Web Vitals. Keep a JPG/PNG fallback only if you must support very old clients.

How important is alt text for SEO?

Very. Alt text is the primary signal for ranking in image search and is essential for accessibility. Write specific, natural descriptions rather than stuffing keywords.

Related reading

Guides & Tutorials
← Guides & Tutorials