Skip to main content
COMBb2
100% Private
How-To

Image Optimization for Core Web Vitals: A Technical Guide

Images directly impact LCP and CLS scores. Here's how to optimize them for better Core Web Vitals performance and search rankings.

February 23, 2026
7 min read
Image Optimization for Core Web Vitals: A Technical Guide

Core Web Vitals are Google's metrics for user experience, and they directly affect search rankings. Images impact two of the three main metrics: Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS). Optimizing images is often the single highest-impact improvement you can make to your Core Web Vitals scores.

LCP: Largest Contentful Paint

LCP measures how long it takes for the largest visible element to render. This is often a hero image. Google's thresholds:

  • Good: Under 2.5 seconds
  • Needs Improvement: 2.5 - 4.0 seconds
  • Poor: Over 4.0 seconds

How images affect LCP

A 2MB hero image on a 3G connection takes 8+ seconds to download. The same image compressed to 150KB loads in under 2 seconds. Image file size is often the primary factor in LCP performance.

Image optimizations for LCP

  1. Resize to display dimensions: Don't serve a 4000px image that displays at 1200px. Use the Resize tool to match.
  2. Compress aggressively: Use the Compress tool - WebP quality 75-80 or AVIF quality 65-75 for hero images.
  3. Use modern formats: AVIF is 50-70% smaller than JPEG. WebP is 25-35% smaller. Both reduce download time.
  4. Preload the LCP image: Add <link rel="preload" as="image"> for the hero image.
  5. Don't lazy-load the LCP image: The hero image should load immediately, not wait for lazy loading to trigger.

CLS: Cumulative Layout Shift

CLS measures visual stability - how much page content shifts during loading. Images without specified dimensions cause CLS because the browser doesn't know how much space to reserve.

Image optimizations for CLS

  • Always specify width and height: Use HTML width and height attributes so the browser reserves space before the image loads.
  • Use aspect-ratio CSS: aspect-ratio: 16/9 preserves layout even before the image loads.
  • Consistent dimensions: When resizing, use consistent aspect ratios across your site.

Comprehensive Image Checklist for Core Web Vitals

  1. Resize to maximum display width (2x for retina)
  2. Compress to WebP or AVIF at quality 75-80
  3. Strip metadata to save 10-50KB per image
  4. Set HTML width/height attributes
  5. Preload hero/LCP images
  6. Lazy-load below-fold images
  7. Use <picture> with AVIF/WebP/JPEG fallback

Measuring Impact

Use Google PageSpeed Insights, Chrome DevTools Lighthouse, or Web Vitals Extension to measure before and after. Focus on:

  • "Properly size images" audit
  • "Serve images in next-gen formats" audit
  • "Efficiently encode images" audit
  • LCP element identification and timing

Conclusion

Image optimization is the most impactful Core Web Vitals improvement for most websites. The combination of proper sizing, modern format conversion, and aggressive compression can improve LCP by seconds. Use the Resize, Compress, and Strip Metadata tools - all processing stays in your browser.

Core Web VitalsLCPweb performancecompressresizeSEO

Try it yourself

Free, private, runs in your browser. No sign-up required.

Open Tool

Try COMBb2 - Free Image Tools

16 AI-powered image tools that run 100% in your browser. Your photos never leave your device.