Images account for 50%+ of a typical web page's total weight. A single unoptimized hero image can add 3-5 seconds to load time on mobile. This guide covers everything you need to know about image optimization in 2026 — from format selection to serving strategies.
Google uses Core Web Vitals (LCP, CLS, INP) as ranking signals. Images directly impact two of these:
Beyond SEO, faster pages have higher conversion rates. A 1-second delay in mobile load time can reduce conversions by up to 20%.
| Format | Best For | Typical Size | Browser Support |
|---|---|---|---|
| WebP | Photos, graphics with transparency | 25-35% smaller than JPEG | 97%+ |
| JPEG | Photographs, complex images | Baseline | 100% |
| PNG | Screenshots, line art, transparency | Larger (lossless) | 100% |
| AVIF | Next-gen photos, high compression | 50% smaller than JPEG | 92%+ |
| SVG | Icons, logos, simple graphics | Tiny (vector) | 100% |
Recommendation: Use WebP as your default format for all raster images. Serve JPEG as fallback for older browsers. Use AVIF if you can generate it (another 20-30% smaller than WebP).
Most JPEGs and WebPs are saved at quality 85-95 by default. For web use, you can go much lower:
For most websites, quality 75-80 for JPEG/WebP is the sweet spot. The visual difference from quality 90 is imperceptible to most users, but the file size difference is significant.
Serving the same 4000px hero image to a mobile phone is wasteful. Use the <picture> element and srcset attribute:
<picture>
<source srcset="hero.avif" type="image/avif">
<source srcset="hero.webp" type="image/webp">
<img src="hero.jpg"
srcset="hero-400.jpg 400w,
hero-800.jpg 800w,
hero-1200.jpg 1200w"
sizes="(max-width: 768px) 100vw, 1200px"
alt="Hero image"
width="1200" height="600"
loading="lazy">
</picture>
Key attributes to always include:
width and height — Prevents CLS (layout shift)loading="lazy" — Defers off-screen imagesdecoding="async" — Non-blocking decode for below-fold imagesfetchpriority="high" — For LCP images onlyWhen designing landing pages or selecting brand colors, extracting colors from existing images or mood boards can save time. Our Color Palette Extractor analyzes any image and returns the dominant colors with their HEX and RGB values.
This is useful for:
width and height to every <img> tagloading="lazy" to below-fold images<picture> for format fallback (AVIF → WebP → JPEG)srcset for responsive sizingfetchpriority="high" on your LCP image