WebP vs JPEG vs PNG vs AVIF: Which to Use in 2026

A practical, data-backed guide to choosing the right image format for every product photo on your store.

|image optimization WebP product photography e-commerce SEO

The format you save your product photos in changes how fast your store loads, how good your images look, and how high you rank in Google. Get it wrong and you ship 4× more bytes than you need to. Get it right and your Largest Contentful Paint drops by a full second on mobile.

This guide compares the four formats that actually matter for e-commerce in 2026 — JPEG, PNG, WebP, and AVIF — with real file-size numbers and a clear recommendation for each type of product image.

The four formats at a glance

Each format makes a different trade-off between file size, image quality, and feature support. Here is how they compare for typical product photography use cases.

FormatCompressionTransparencyBrowser SupportBest For
JPEGLossyNoUniversalPhotos, hero images
PNGLosslessYesUniversalLogos, icons, graphics
WebPLossy + losslessYes97%+Modern default for everything
AVIFLossy + losslessYes~95%Hero images, large photos

The short version: WebP is the safe modern default. AVIF saves even more bytes but encoding is slower. JPEG and PNG still have a role as fallbacks and for specific edge cases.

How much smaller are WebP and AVIF, really?

We compressed the same 2000×2000px studio product photo at visually equivalent quality across all four formats. The differences are not subtle.

File size for one product photo (lower is better)
PNG
3.8 MB
JPEG q85
1.2 MB
WebP q80
810 KB
AVIF q60
540 KB

Compared to JPEG, WebP cuts file size by roughly 25-35% at the same perceived quality. AVIF cuts it by 50% or more. Across a 500-SKU catalog with five images each, that is the difference between shipping 3 GB and 1.4 GB of photo bytes per month.

Pro Tip

Visually equivalent quality, not equivalent quality-slider numbers. JPEG q85, WebP q80, and AVIF q60 typically look the same to the human eye.

When to use each format

Pick by image type, not by personal preference.

Product photos on white or natural backgrounds

Use WebP as your primary, with a JPEG fallback for the <3% of users on browsers that do not support it. Almost every CDN and image transformation service (Cloudinary, imgix, Vercel, Shopify, Supabase) will negotiate the right format automatically based on the Accept header.

Hero banners and lifestyle imagery

This is where AVIF earns its keep. The savings are largest on big, photographic images. Encoding is slow, but you only do it once.

Logos, badges, and UI graphics

Use PNG or SVG. Lossy compression destroys the crisp edges of logos. PNG is small enough for these because they have few colors.

Cutouts and ghost mannequin shots that need transparency

Use WebP. It supports transparency at a fraction of PNG’s file size — typically 60-80% smaller for the same alpha-channel image.

The old default (PNG everywhere)

  • Bloated catalog, 5-10x larger than needed
  • Slow Largest Contentful Paint on mobile
  • Higher CDN bandwidth costs
  • Hurts Core Web Vitals and SEO

The 2026 default (WebP + AVIF)

  • Smaller catalog, faster pages
  • Same visual quality as JPEG/PNG
  • Auto-negotiated by your CDN
  • Better Core Web Vitals scores

Browser support and fallbacks in 2026

Format support is no longer a real obstacle. Both WebP and AVIF are supported in every major modern browser.

97%+Global WebP support
~95%Global AVIF support
~5%Visitors needing JPEG fallback

The cleanest way to ship modern formats with fallbacks is the <picture> element:

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

Or skip the markup entirely and let your image CDN do format negotiation. Shopify, Next.js Image, Vercel, Cloudinary, imgix, and Supabase Storage transformations all handle this automatically — you upload one source file and they serve the optimal format per browser.

Quality settings that actually matter

Quality sliders are not linear and they are not comparable across formats. Here are the settings that match what most e-commerce stores need.

Use CaseJPEGWebPAVIF
Catalog thumbnails (under 400px)757050
Product detail page858060
Zoom / high-res928875
Hero banner858060
Watch out

Re-compressing an image multiple times at lossy settings (JPEG → WebP → JPEG) compounds artifacts. Always compress from the original PNG or TIFF source, never from a previously compressed file.

Format choice and SEO

Google has officially used Core Web Vitals — and Largest Contentful Paint in particular — as a ranking signal since 2021. The hero image on a product page is almost always the LCP element. Shaving 600 KB off it by switching from JPEG to AVIF can move a slow page into the “Good” threshold and lift rankings on competitive product queries.

Image format also affects Google Image Search. Both WebP and AVIF are crawled and indexed normally, but their smaller file sizes mean Google can fetch and render thumbnails faster, which improves how often your images get surfaced in shopping carousels.

If your store still serves PNGs for product photos by default, switching to WebP is one of the highest-leverage SEO changes you can make this quarter — it costs you nothing and lifts every product page at once.

Frequently Asked Questions

Is WebP better than JPEG for product photos?

Yes. WebP produces files 25-35% smaller than JPEG at the same visual quality, supports transparency, and is now supported by 97%+ of browsers globally. The only reason to keep using JPEG is as a fallback for the small remainder.

Should I use AVIF instead of WebP?

AVIF saves another 30-50% in file size compared to WebP, which matters most for large hero images. The trade-offs are slower encoding (a one-time cost) and slightly lower browser support (~95%). For new sites in 2026, serve AVIF with a WebP fallback.

When should I still use PNG?

Use PNG for logos, icons, and any graphic with sharp edges, flat colors, or text. Lossy formats blur these. For photographic images with transparency, switch to WebP — it supports alpha channels at a fraction of the file size.

Does Shopify automatically convert images to WebP?

Yes. Shopify automatically serves WebP to compatible browsers when you use the built-in image_url filters or img_tag helpers. You can keep uploading JPEGs or PNGs as your source files.

Will switching image formats hurt my Google rankings?

No — it almost always helps. Google indexes WebP and AVIF normally, and the smaller file sizes improve Largest Contentful Paint, which is a ranking factor. Just keep your file names, alt text, and URLs consistent during the migration.

Ship perfectly-formatted product photos automatically

Retouchable generates and exports product images in WebP and AVIF by default — no manual conversion, no quality guesswork.

Try Retouchable Free No credit card required