Fix "Serve Images in Next-Gen Formats" (PageSpeed Insights)

You run your site through PageSpeed Insights, get a decent-looking score, and then see it: a yellow "Serve images in next-gen formats" warning sitting under Opportunities, usually with a number next to it like "Potential savings of 850 KB." You know it's about images. You're just not sure what a "next-gen format" actually is, or why the JPEGs and PNGs you've been using for years are suddenly a problem.

The short version: it's not that your images are wrong, it's that JPEG and PNG are older formats, and newer ones — mainly WebP, with AVIF close behind — can show the same image at a noticeably smaller file size. Lighthouse (the engine behind PageSpeed Insights) checks every image on your page against what a next-gen format would produce, and flags the difference as wasted bytes. Fixing it is mostly mechanical once you know what to convert and how to keep older browsers working.

Quick Answer

"Serve images in next-gen formats" means Lighthouse found JPEG/PNG images that would be smaller as WebP or AVIF with no visible quality loss. Fix it by converting your JPEG and PNG assets to WebP (usually 25–35% smaller), and serving it with a <picture> fallback so older browsers still get the original format. Re-run PageSpeed Insights afterward to confirm the warning has cleared.

What does "Serve images in next-gen formats" mean?

This is one of the "Opportunities" audits inside Lighthouse, the engine behind PageSpeed Insights. It scans every image on your page, re-encodes a copy of it in WebP at a comparable visual quality, and compares the file sizes. If the next-gen version comes out meaningfully smaller, the audit lists that image along with the estimated bytes you'd save by switching formats.

"Next-gen" simply refers to image formats developed after JPEG (1992) and PNG (1996) that use more modern compression techniques:

The audit isn't judging your image quality or resolution — it's specifically about the container format the pixels are stored in. The same photo, same dimensions, same visual quality, just packed more efficiently.

Why this warning matters

It's easy to treat this as a nitpick, but the underlying issue has real consequences for both your PageSpeed score and how the page actually feels to a visitor:

📊 Quick stat WebP images are typically 25–35% smaller than an equivalent-quality JPEG, and can be over 50% smaller than PNG for photographic content. For a page with several large images, that alone is often enough to clear this audit entirely.

Step-by-step: fixing the warning

  1. Run PageSpeed Insights and open the audit. Expand "Serve images in next-gen formats" to see the exact list of flagged images and their estimated savings — this tells you which files to prioritize first.
  2. Convert the flagged images to WebP. Use a converter that supports batch conversion so you're not doing this one file at a time, and keep quality around 80–85% for photographic content — visually identical to the original at a fraction of the size.
  3. Keep the original as a fallback, don't delete it. Not every visitor's browser needs WebP specifically, and keeping the source format available makes the next step possible.
  4. Serve WebP with a <picture> fallback. Wrap your image in a <picture> element with a WebP <source> and the original JPEG/PNG as the fallback <img>, so every browser gets a format it can render:
💻 Example markup <picture>
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Description">
</picture>
  1. If you're on WordPress, Shopify, or a similar CMS, check for built-in support. Many platforms and CDNs now auto-serve WebP or AVIF based on browser support, which can resolve this audit without touching markup at all — check your platform's image settings before converting manually.
  2. Re-run PageSpeed Insights. Confirm the audit has cleared or the estimated savings have dropped substantially. If it's still flagging images, check that your server or CDN is actually serving the WebP file and not silently falling back to the original.
  3. Repeat for any newly added images going forward. Build the conversion step into your upload workflow so future images don't reintroduce the same warning later.
Try the Rebrixe Image to WebP Converter — free No uploads, no signup. Batch convert JPEG/PNG to WebP in your browser.
Convert to WebP Now →

Common mistakes that keep the warning showing

1. Converting only some images, not all flagged ones

The audit lists every image over its savings threshold individually. Converting your hero banner but leaving product thumbnails or content images untouched means the warning persists — it aggregates savings across every flagged asset, not just the biggest one.

2. Serving WebP without a fallback and breaking legacy support

Renaming files to .webp and swapping them in directly, without a <picture> fallback, works fine for modern browsers but can break rendering for older browsers or tools that don't support WebP. Always pair the conversion with a proper fallback path.

3. Assuming a CDN or plugin already handles it

Some CDNs and CMS plugins do auto-convert images, but not all of them apply this by default, and some only do so above a certain traffic tier or plan. Confirm actual behavior by checking the served content-type in your browser's network tab rather than assuming.

4. Re-compressing an already-compressed JPEG into WebP

Converting a heavily compressed, artifact-ridden JPEG into WebP locks in those existing artifacts — it doesn't undo prior compression damage. Whenever possible, convert from the original source image rather than a JPEG that's already been through multiple save cycles.

💡 Pro tip If you manage a large image library, prioritize by the audit's own savings estimates. Converting the handful of largest, most-visited images first usually clears the bulk of the flagged bytes long before you've touched every file on the site.

Real-world savings examples

These are representative results from converting the same source images from JPEG/PNG to WebP at a comparable visual quality:

Hero banner (JPEG)
JPEG → WebP
−32%
1.6 MB → 1.1 MB. No visible difference at full-bleed width.
Product photo (JPEG)
JPEG → WebP
−28%
640 KB → 460 KB. Identical zoom-in detail on the listing page.
Logo with transparency (PNG)
PNG → WebP (lossless)
−48%
Transparency preserved exactly, file size nearly halved.
Blog content image (PNG)
PNG → WebP (lossy)
−61%
Screenshot-style content compresses especially well as WebP.

The pattern is consistent across content types: WebP saves the most on flat-color and screenshot-style PNGs, and a solid, reliable margin on photographic JPEGs — enough in most cases to clear the audit on its own.

Format comparison: JPEG vs PNG vs WebP vs AVIF

Knowing where each format still makes sense helps you decide what to convert and what to leave alone.

Format Typical size vs. JPEG Browser support Transparency Best for
JPEG Baseline Universal No Legacy compatibility, email, fallback source
PNG Larger Universal Yes Logos, icons, flat-color graphics needing transparency
WebP −25 to −35% All modern browsers Yes Direct fix for this audit — the safe next-gen default
AVIF −35 to −50% Most modern browsers Yes Further savings once WebP is already in place

Convert your images to WebP right now — free

The Rebrixe Image to WebP Converter runs entirely in your browser. Your images are never uploaded to a server — conversion happens locally, so you can batch-convert an entire folder of JPEGs and PNGs and download the WebP versions in seconds. No account, no file size limit, no watermarks.

Free Image to WebP Converter — no uploads required Client-side only. Your files never leave your device.
Open WebP Converter →

Want to go deeper on quality settings, lossless vs. lossy WebP, and batch workflows for large image libraries? Read the full guide below.

The Ultimate Guide to WebP Compression Quality settings, lossless vs. lossy, and batch conversion workflows explained.
Read the Guide →

Frequently asked questions

It means Lighthouse detected JPEG or PNG images on your page that could be smaller if re-encoded as a modern format like WebP or AVIF, while looking visually identical. The audit estimates the bytes you'd save and flags it as a performance opportunity.
WebP is typically 25–35% smaller than an equivalent-quality JPEG, and can be 50%+ smaller than PNG for photographic content. The exact number depends on image content, but the audit usually disappears once images are converted.
Only the ones large enough to matter. PageSpeed Insights flags images above a certain byte-saving threshold, so tiny icons or already-optimized thumbnails may not need conversion. Focus on hero images, banners, and content photos first.
Only if you don't provide a fallback. Using the <picture> element with a WebP <source> and a JPEG/PNG fallback <img> serves WebP to browsers that support it and the original format to those that don't, so nothing breaks.
AVIF often compresses slightly smaller than WebP at the same quality, but encoding is slower and support is less universal than WebP's. WebP remains the safer, faster-to-implement default for most sites; AVIF is worth adding as a further optimization once WebP is in place.
Yes, directly. Smaller image payloads reduce Largest Contentful Paint (LCP) and total page weight, both of which factor into the Performance score and Core Web Vitals, which affect real-world load speed and can influence search ranking.
Yes. WebP supports both lossy and lossless compression. At quality settings around 80–85%, most photographic images convert to WebP with no visible difference from the original JPEG, while being noticeably smaller.

Clear the warning in seconds

The Rebrixe Image to WebP Converter runs entirely in your browser — no uploads, no account, no file size limits. Batch convert and re-run PageSpeed Insights right after.

← Back to blogs