Skip to content
Lexiik
cdn

WebP vs AVIF: Guide to Modern Image Formats

Last updated : February 8, 2026

WebP and AVIF are next-generation image formats that reduce weight by 50 to 70% compared to JPEG/PNG. Discover which one to choose for your e-commerce store and how the Lexiik CDN handles them automatically.

Typical savings

JPEG → WebP migration: -30 to -50% weight
WebP → AVIF migration: -20 to -30% additional

The Problem with Traditional Formats

JPEG, PNG, GIF: Obsolete in 2026

These formats were created in the 1990s-2000s, at a time when Internet connections were slow and screens were low resolution. They are no longer suited for the modern web.

FormatYearCompressionMain issue
JPEG1992LossyExcessive weight, no transparency
PNG1996LosslessHuge weight (3-10x JPEG)
GIF1987LosslessLimited to 256 colors, heavy animations

Concrete example: A typical e-commerce product photo (1200x1200px, 85% quality):

  • JPEG: 480 KB
  • PNG-24: 1.8 MB (4x heavier)
  • WebP: 160 KB (3x lighter than JPEG)
  • AVIF: 95 KB (5x lighter than JPEG)

WebP: The Modern Standard

Developed by Google

WebP was created by Google in 2010 and integrated into Chrome as early as 2011. It combines the advantages of JPEG (lossy compression) and PNG (transparency, lossless).

WebP Advantages

Strengths

  • -30 to -50% weight vs JPEG at equal quality
  • Transparency support (alpha channel)
  • Animation support (replaces GIF)
  • 96% browser support (2026)
  • ✓ Lossy AND lossless compression

⚠️

Limitations

  • ⚠ Not supported by Safari <14 (2020)
  • ⚠ IE 11 does not support it
  • ⚠ AVIF outperforms in compression
  • ⚠ EXIF metadata sometimes lost

Browser Support

🌐Chrome / Edge
✅ Since 2011
🦊Firefox
✅ Since 2019
🧭Safari
✅ Since 2020 (v14)
📱Safari iOS
✅ Since iOS 14

AVIF: The Next-Generation Format

An Open Standard

AVIF (AV1 Image File Format) is based on the AV1 video codec, created by the Alliance for Open Media (Google, Netflix, Amazon, Apple, Mozilla...). Launched in 2019, it is the most performant format in 2026.

Why AVIF Is Superior

-50%

vs JPEG at equal quality

-20%

vs WebP at equal quality

10bit

Color depth (HDR)

Detailed Comparison

CriterionWebPAVIF
CompressionGoodExcellent (-20%)
Browser support96%88%
Encoding timeFast (50ms)Slow (200ms)
Color depth8-bit10-bit (HDR)
Transparency
Animation

AVIF Browser Support

🌐Chrome / Edge
✅ Since Chrome 85 (2020)
🦊Firefox
✅ Since Firefox 93 (2021)
🧭Safari
✅ Since Safari 16 (2022)
📱Safari iOS
✅ Since iOS 16 (2022)

Warning

Warning: 12% of visitors still do not support AVIF (mainly older browsers and iOS <16). You must always provide a WebP or JPEG fallback.

What Strategy to Adopt?

Recommendations by Use Case

🏆 Option 1: AVIF + WebP + JPEG (Optimal)

Serve AVIF to modern browsers, WebP as fallback, JPEG for legacy.

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

✅ Best performance • ✅ 100% support • ⚠️ Complex to manage

🥈 Option 2: WebP + JPEG (Balanced)

WebP for 96% of visitors, JPEG for the remaining 4%.

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

✅ Good compromise • ✅ Simple • ✅ 96% coverage

🥉 Option 3: Optimized JPEG (Minimum)

If you cannot use WebP/AVIF, at least optimize your JPEGs.

• 85% compression (quality/weight sweet spot)
• Exact dimensions (no CSS resizing)
• Progressive JPEG for gradual loading

⚠️ Limited gains • ✅ 100% compatible • ⚠️ Weight 2-3x higher than WebP

Lexiik Handles Everything Automatically

The Lexiik CDN implements Option 1 (AVIF + WebP + JPEG) automatically, with no code to write:

  1. 1
    Browser detection

    The CDN analyzes the User-Agent and Accept headers

  2. 2
    Dynamic conversion

    Chrome/Edge → AVIF | Safari/Firefox → WebP | IE → JPEG

  3. 3
    Edge cache

    Each variant is cached for 1 year

  4. 4
    Ultra-fast delivery

    From the nearest datacenter (<50ms)

Measuring the Impact

Real Example: Fashion Store (3,200 products)

Before (JPEG only)

Average weight/image420 KB
Mobile LCP4.8s
Bandwidth/month2.4 TB

After (AVIF + WebP + CDN)

Average weight/image85 KB (-80%)
Mobile LCP1.4s (-71%)
Bandwidth/month480 GB (-80%)

📊 Business Impact

+28%
Mobile conversions
+15%
Organic traffic
-$240
Bandwidth savings/month

Conclusion and Next Steps

In 2026, WebP is the minimum requirement for any serious e-commerce store. AVIF is the near future and provides significant additional gains. The Lexiik CDN gives you both automatically.

⚡️

Activate the Lexiik CDN

3-click activation guide to benefit from automatic WebP/AVIF.

🌱

Green SEO

Reduce carbon footprint with optimized images.