Runs in your browser · nothing uploaded

Compress Images to Improve PageSpeed and LCP

If Google PageSpeed Insights or Lighthouse flags your images, this is where to fix them. Resize oversized files and convert them to WebP so warnings like "Properly size images" and "Serve images in next-gen formats" clear up and your Largest Contentful Paint improves.

Understanding the image warnings

Lighthouse, which powers PageSpeed Insights, reports several image-related opportunities. "Properly size images" means files are larger in pixels than the space they're shown in. "Serve images in next-gen formats" suggests using WebP or AVIF instead of JPG and PNG. "Efficiently encode images" means the compression could be stronger. Each audit lists the specific files and the potential savings.

Largest Contentful Paint measures when the biggest visible element finishes rendering, and Google considers 2.5 seconds or less to be good. On many pages that element is an image, so shrinking it has a direct effect.

A practical fix workflow

Start with the LCP element; PageSpeed Insights identifies it in the diagnostics. Note the size it's displayed at, then export it here as WebP with a max width around twice the displayed width for high-density screens, using the nearest preset. Use 75–80% quality. Repeat for the other images listed under the warnings, prioritizing the ones with the biggest savings. After replacing the files, rerun the test. Remember that the hero image shouldn't be lazy-loaded, and serving responsive sizes with srcset helps mobile scores further.

Questions

How do I fix 'Serve images in next-gen formats'?

Convert the listed JPG and PNG files to WebP, which all current major browsers support, then replace them on your site. Choose WebP here, keep quality around 75–80% and update the image references in your CMS or code.

What is a good LCP time?

Google considers Largest Contentful Paint of 2.5 seconds or less to be good, measured at the 75th percentile of real page loads. Over 4 seconds is rated poor. Large unoptimized images are one of the most common causes of slow LCP.

Will compressing images alone give me a perfect score?

Not always. Images are often the biggest win, but scores also depend on server response time, render-blocking scripts and CSS, fonts and third-party code. Fix images first, then use the remaining Lighthouse suggestions to tackle the rest.

Want a website that loads in under a second? We build them from $299.

See web development

More ways to use the Image Compressor