Performance & Core Web Vitals

WebP, AVIF, JPEG XL – which image format to choose in 2026

Text
Table of contents

JPG and PNG have dominated the web since the '90s. Time for a change. WebP is 30% lighter, AVIF 50%, and JPEG XL was supposed to be king, but Google killed it in 2024. I'll show you what to use in WordPress in 2026 to save bandwidth and speed up your site.

In short

  • WebP — the safe standard in 2026, supported by 96%+ of browsers, 30–35% lighter than JPG.
  • AVIF — the next generation, 50% lighter than JPG, but slower to decode, 92% support.
  • JPEG XL — dropped by Google in 2024, use only at your own risk.
  • Strategy: AVIF + WebP fallback + JPG fallback for the oldest browsers.

Why JPG and PNG aren't enough

JPG (1992) and PNG (1996) are formats from the dial-up era. They are inefficient:

  • JPG for photos: good quality, but the file size gets too large at high resolution
  • PNG for graphics with transparency: lossless, but huge file sizes
  • No native animation (GIF is very inefficient)

A page with 30 JPG images weighs 5–8 MB on average. With WebP — 3–4 MB. With AVIF — 2 MB.

WebP – the safe standard for 2026

What it is

A Google format from 2010. It combines:
– Lossy compression (like JPG, but better)
– Lossless compression (like PNG, 26% lighter)
– Transparency (alpha channel like PNG)
– Animation (like GIF, but 64% lighter)

Benefits

  • ✅ Support for 96%+ of browsers (Chrome, Firefox, Edge, Safari 14+)
  • ✅ 30–35% lighter than JPG at the same quality
  • ✅ Conversion in seconds (plugins do it for you)
  • ✅ No SEO problems — Google indexes WebP just like JPG

Drawbacks

  • ⚠️ Old Safari (<14) and very old Android devices don't support it — fallback to JPG
  • ⚠️ Some graphics programs (Lightroom, Affinity) still have poor support
  • ⚠️ Macs running macOS versions before Big Sur (2020) had problems

How to implement it in WordPress

Plugin 1: ShortPixel (freemium)

Most popular. First 100 images/month free. Pro plan from 5 USD/month.

Features:
– Converts all existing images to WebP
– Automatically converts new uploads
– Serves WebP to supporting browsers, JPG to older ones
– Backs up originals (you can roll back)

Plugin 2: Imagify (freemium)

A competitor of ShortPixel with similar features. Free plan: 200 images / 25 MB per month.

Plugin 3: Smush (freemium)

WPMU DEV. Slightly heavier, but solid. The free version supports WebP with no limit.

Plugin 4: WebP Express (free)

For advanced users. Converts + automatic .htaccess rules. No paid plan.

Without a plugin – manually

Convert images in Squoosh (squoosh.app, a free Google tool) and upload WebP files directly.

AVIF – next generation

What it is

AV1 Image File Format. Based on the AV1 video codec (open, royalty-free). Introduced in 2019, popular since 2022.

Benefits

  • ✅ 50% lighter than JPG at the same quality
  • ✅ Better quality at low bitrates (fewer artifacts)
  • ✅ HDR support, 12-bit color depth
  • ✅ Animation
  • ✅ Royalty-free (unlike HEIF)

Drawbacks

  • ❌ 92% support — Safari has it since 16.4 (April 2023)
  • ❌ Slower decompression than JPG/WebP — especially on weaker mobile devices
  • ❌ Conversion takes 5–10× longer than WebP
  • ❌ Fewer editing tools
  • ❌ In WordPress only since 6.5 (2024)

How to implement it in WordPress

WordPress 6.5+ natively

Upload .avif via the dashboard — it works right away.

Plugins

  • Cwicly Performance — generates AVIF + fallback
  • Imagify — supports AVIF since 2024 (Pro plan)
  • ShortPixel — AVIF support since 2024

The “AVIF with WebP fallback, then JPG fallback” strategy

<picture>
  <source srcset="hero.avif" type="image/avif">
  <source srcset="hero.webp" type="image/webp">
  <img src="hero.jpg" alt="...">
</picture>

The browser picks the best supported format. The latest Chrome gets AVIF, Safari 13 gets WebP, IE11 gets JPG.

JPEG XL – what happened

A short history of disasters

  • 2017 — the beginnings of the standard (JPEG XL)
  • 2021 — Google announces experimental support in Chrome
  • 2022 — supported by Mozilla and Apple in Firefox/Safari
  • 2024 — Google drops support from Chrome (despite developer protests)

Current state

JPEG XL in 2026:
– ✅ Safari 17+ supports it
– ❌ Chrome dropped it (and has no plans to bring it back)
– ⚠️ Firefox only behind a manually enabled flag

Without Chrome support (65%+ of users), JPEG XL doesn't stand a chance in production. Let's wait for a possible comeback in 2027+.

Comparison table

FormatSize vs JPGSupport 2026CompressionAnimationTransparencyWordPressVerdict
JPG100%100%fast❌❌✅safe fallback
PNG200%+100%lossless❌✅✅only for logos / icons
WebP65–70%96%fast✅✅✅2026 standard
AVIF50%92%slow✅✅✅ from 6.5next-gen
JPEG XL60%<30%fast✅✅⚠️do not use in production

What to use and when

Logos, icons, graphics with transparency

SVG always comes first. It's vector-based and scales without quality loss, 2–10 KB.

If SVG isn't possible (raster) → WebP (lossless) instead of PNG.

Product photos, hero images

AVIF + WebP fallback + JPG fallback.

Promotional banners, social media

WebP is enough (the gain from AVIF is marginal for small images).

Animations

Animated WebP instead of GIF. Cuts file size from 5 MB → 800 KB.

AVIF for the highest quality at the lowest file size. A gallery of 50 photos: AVIF 25 MB, WebP 35 MB, JPG 50 MB.

Frequently asked questions

“Will switching from JPG to WebP improve SEO?”

Indirectly — yes. Lighter images = better LCP = better CWV = better rankings. But Google doesn't reward WebP in itself.

"What about the existing JPG images on the site?"

A plugin (ShortPixel, Imagify) will run the batch conversion in the background. 5,000 images = 1–6 hours of processing.

“Are converted images lower quality?”

At the default compression of 75–80% quality, most users won't notice the difference. For professional photo galleries, keep quality at 90% (file size goes up, but it's still smaller than JPG).

"Czy Google rozumie WebP?"

Yes. It gets indexed, appears in Google Images and is used in Discover. No SEO problems.

What's next

This week:

  1. Check the size of your images in PageSpeed (the “Properly size images” / “Serve images in next-gen formats” tab)
  2. Install ShortPixel or Imagify
  3. Run batch conversion
  4. After 24 h, check PageSpeed again — LCP should drop by 0.5–1.5 s

Image optimization is standard in our projects — in the website maintenance package, we automatically convert all images to WebP/AVIF.

Your feedback

Was this article helpful?

One click — it helps me choose future topics.

Share this article

Websky Newsletter

New posts straight to your inbox.

Once a month — practical insights on WordPress, WooCommerce, SEO and AI. No spam, unsubscribe with one click.

  • Case studies from Polish projects
  • Checklists and templates to download
  • Google and WordPress changes in a nutshell

Your data goes to Websky Studio only. You can unsubscribe with one click in every message.

Core Web Vitals

A slow website is a cost, not a detail.

I'll measure LCP, INP, and CLS on your website, pinpoint the culprits, and show you before/after results. No rebuilding everything from scratch.

Test your site speed