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
- Resize to display dimensions: Don't serve a 4000px image that displays at 1200px. Use the Resize tool to match.
- Compress aggressively: Use the Compress tool - WebP quality 75-80 or AVIF quality 65-75 for hero images.
- Use modern formats: AVIF is 50-70% smaller than JPEG. WebP is 25-35% smaller. Both reduce download time.
- Preload the LCP image: Add
<link rel="preload" as="image">for the hero image. - 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
widthandheightattributes so the browser reserves space before the image loads. - Use aspect-ratio CSS:
aspect-ratio: 16/9preserves layout even before the image loads. - Consistent dimensions: When resizing, use consistent aspect ratios across your site.
Comprehensive Image Checklist for Core Web Vitals
- Resize to maximum display width (2x for retina)
- Compress to WebP or AVIF at quality 75-80
- Strip metadata to save 10-50KB per image
- Set HTML width/height attributes
- Preload hero/LCP images
- Lazy-load below-fold images
- 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.
Try it yourself
Free, private, runs in your browser. No sign-up required.
