How to optimize images for a faster website
On most websites, images are the single biggest contributor to page weight — and to slow loads. Optimizing them is the highest-leverage speed improvement you can make, and it directly helps your Core Web Vitals and SEO.
Why images matter for speed and SEO
Large images delay your Largest Contentful Paint (LCP), one of Google’s Core Web Vitals. Faster pages rank better and convert better. Because images are often 50%+ of page weight, shrinking them is usually the quickest win.
Use modern formats (WebP/AVIF)
Serve WebP or AVIF instead of JPEG/PNG. At the same visual quality they’re 25–50% smaller, so your pages download faster with no visible difference. Keep a JPEG fallback only if you must support very old clients.
Size images to their display size
Don’t ship a 4000-pixel image to an 800-pixel slot. Resize to the largest size the image is actually shown at (allow roughly 2× for high-DPI screens). This alone often halves image weight.
Compress with the right quality
Quality around 75–80 is usually indistinguishable from the original for photos. Or set a target size per image to keep every file under a budget. Smaller files, same look.
Other quick wins
Add width and height attributes to avoid layout shift (CLS), lazy-load below-the-fold images, and strip EXIF metadata you don’t need. Together these steadily improve your Core Web Vitals.
Batch-optimize with Dropsize
Drop your images into Dropsize, convert to WebP or AVIF, resize, and compress — all in your browser, nothing uploaded — then download them as a zip ready to ship to your site.
Optimize your images →