Download a video

IMAGES · 6 MIN READ

How to Optimize Images for Website Speed and Core Web Vitals

On most websites, images account for the largest share of downloaded bytes, and the largest image is often the Largest Contentful Paint (LCP) element Google measures. Optimising them is the fastest way to a quicker site.

1. Serve the right dimensions

Measure how wide each image is actually displayed and export it at that width (or 2× for high-density screens). Shipping a 4000-pixel photo into an 800-pixel slot wastes bandwidth on every visit. The Image Resizer handles batches and keeps aspect ratios intact.

2. Use modern formats

Convert JPG and PNG website images to WebP. For most pages this alone saves a quarter to a third of image weight without visible change.

3. Compress sensibly

Quality 75–82 is the sweet spot for photos. Check results at their real display size rather than zoomed in.

4. Mark images up correctly

  • Always set width and height attributes so the browser reserves space — this prevents layout shift (CLS).
  • Lazy-load images below the fold with loading="lazy", but never the main hero image.
  • Use srcset and sizes so phones download smaller versions.
  • Write descriptive alt text for people using screen readers.

5. Name files descriptively

A filename like red-running-shoes-side.webp gives search engines a little context and makes your media library easier to manage. It is a minor signal — useful, not magic. The Bulk Image SEO Renamer can rename a whole folder consistently.

How to check the result

Run Google PageSpeed Insights or Lighthouse before and after. Look at LCP (aim for under 2.5 seconds on mobile) and CLS (under 0.1). If the LCP element is an image, it should be the first thing you optimise.

Key takeaways

  • Resize, convert to WebP, then compress.
  • Always set width and height to avoid layout shift.
  • Lazy-load below-the-fold images only.
  • Measure LCP and CLS before and after.

Published 18 November 2026 by the Cloude Tools team.