WebP vs AVIF vs JPG for Product Images, With File Sizes From One Photo

We delivered one 205 KB product photo through the Filestack CDN at three widths, three crops and three formats, then measured all 27 files.

WebP vs AVIF vs JPG file sizes for the same straw hat product photo: JPG 121 KB, WebP 83 KB, AVIF 50 KB

Key takeaways

  • AVIF made the smallest file in all 27 measurements on the hat photo, 19% to 58% smaller than JPG at the same width and crop. On three other photos at 480 and 240 px it was smallest in all 6, 31% to 63% smaller.
  • WebP came second on the hat photo, 7% to 31% smaller than JPG.
  • The gap between formats shrinks with image size. On the 240 px square, the three formats came to 17 KB, 16 KB and 14 KB.
  • On this photo, resizing to the display size saved more than any change of format.
  • One upload serves all three formats: AVIF and WebP sources in a <picture> element, with JPG as the fallback.

Which image format makes the smallest product photos?

AVIF, at every width and crop we tested. Every file came from one upload to an API for image uploads, and Table 1 shows the three placements a store uses most.

PlacementSize (px)JPGWebPAVIFAVIF saves
Product page720 × 1116121 KB83 KB50 KB58%
Category grid480 × 48052 KB44 KB30 KB41%
Cart240 × 30020 KB18 KB15 KB23%
Table 1. One 721 × 1118 JPG product photo (205 KB), delivered through the Filestack CDN on October 30, 2026. Smallest file in bold.

A category page with 48 product tiles at 480 × 480 loads about 2.4 MB of images as JPG, 2.0 MB as WebP and 1.4 MB as AVIF. Bandwidth for those files is priced in what uploads, storage and bandwidth cost.

The same 480 px square, delivered in each format:

The straw hat photo as a 480 px square JPG
JPG at quality 80, 52 KB
The straw hat photo as a 480 px square WebP
WebP at quality 80, 44 KB
The straw hat photo as a 480 px square AVIF
AVIF at quality 60, 30 KB

How much smaller is WebP than JPG?

On this photo, 7% to 31% smaller, depending on width and crop. Google reports that lossy WebP files are 25 to 34% smaller than comparable JPEGs at equivalent SSIM quality. The 720 px result, 31%, falls inside that range. The smaller sizes came in below it.

Does the same ranking hold on other photos?

Yes, on the three photos we added. On a towel, a pencil close-up and a rose photo, AVIF was the smallest file and JPG the largest at both widths. On these photos at 480 px, AVIF saved 53% to 63% against 48% on the hat, and at 240 px the lead was smaller than at 480 px for every photo.

PhotoWidthJPGWebPAVIFAVIF saves
Hat480 px67 KB52 KB35 KB48%
Towel480 px56 KB37 KB24 KB56%
Pencils480 px45 KB30 KB21 KB53%
Rose480 px25 KB14 KB9 KB63%
Hat240 px22 KB19 KB16 KB27%
Towel240 px17 KB13 KB9 KB48%
Pencils240 px16 KB13 KB11 KB31%
Rose240 px9 KB7 KB5 KB46%
Table 3. The four product photos in the homepage demo, each delivered at its original ratio with the settings below, October 30 and November 4, 2026. The towel, pencil and rose sources are 480 px wide JPGs of 61, 50 and 28 KB, so they are not measured at 720 px.
A striped beach towel held up to a person's face
Towel, AVIF at 480 px, 24 KB
A close-up of colored pencil ends
Pencils, AVIF at 480 px, 21 KB
A rose
Rose, AVIF at 480 px, 9 KB

How we tested

Every file is the same stored original, requested from cdn.filestackcontent.com with a different chain of URL tasks.

  • Photo: a straw hat on a yellow background, 721 × 1118 pixels, uploaded as a 209,870-byte JPG.
  • Widths: 720, 480 and 240 pixels.
  • Crops: the original ratio, 4:5 portrait and square, each centered.
  • Formats: JPG at quality 80 plus the compress task, WebP at quality 80, and AVIF at quality 60.
  • Orientation: each request starts with rotate=deg:exif.
  • Other photos: the same task chain at 480 and 240 px wide, without a crop, measured November 4, 2026.
  • Measured: October 30, 2026 for the hat, as the byte length of each CDN response.
A straw hat, sunglasses and a palm leaf on a yellow background
The test photo: 721 × 1118 pixels, 205 KB as uploaded.

Each encoder uses its own quality scale, so AVIF at 60 and JPG at 80 are encoder settings, not matched quality levels. The homepage demo uses these same settings, so you can run your own photo through it.

What are the file sizes at every width and crop?

On this photo, AVIF’s lead over JPG grew with each step up in width: 19% to 27% at 240 px, 41% to 48% at 480 px, and 54% to 58% at 720 px. Table 2 lists all 27 files.

WidthCropJPGWebPAVIFAVIF saves
720 pxOriginal121 KB83 KB50 KB58%
720 px4:5107 KB76 KB47 KB56%
720 pxSquare93 KB70 KB43 KB54%
480 pxOriginal67 KB52 KB35 KB48%
480 px4:560 KB47 KB33 KB45%
480 pxSquare52 KB44 KB30 KB41%
240 pxOriginal22 KB19 KB16 KB27%
240 px4:520 KB18 KB15 KB23%
240 pxSquare17 KB16 KB14 KB19%
Table 2. All 27 files. AVIF saves compares each AVIF file with the JPG of the same width and crop. 1 KB is 1,024 bytes.

How much does the format matter on thumbnails?

Less than on large images. A 240 px image holds one ninth of the pixels of a 720 px image at the same crop, and the three formats on the 240 px square came to 17 KB, 16 KB and 14 KB.

In bytes, AVIF saved about 3 KB over JPG on the 240 px square and about 70 KB on the 720 px product page image. On product page and grid images, the format changes each file by 21 to 70 KB.

Does resizing or changing the format save more?

Resizing. On this photo, a 480 px square JPG is 52 KB against 205 KB for the original, a 75% reduction before any change of format. Converting that square to AVIF took it to 30 KB.

The original is 721 pixels wide, so serving it into a 240 px cart slot sends about ten times the bytes the slot needs: 205 KB against 20 KB for a 240 × 300 JPG. Size each variant to the slot it fills, then pick the format.

Which browsers support WebP and AVIF?

Current Chrome, Edge, Firefox and Safari display both. Per Can I use, WebP is supported from Chrome 32, Edge 18, Firefox 65 and Safari 16, and AVIF from Chrome 85, Edge 121, Firefox 93 and Safari 16.4 (WebP, AVIF), data retrieved November 4, 2026. Email clients and marketplace feeds publish their own lists of accepted formats, so keep a JPG URL for them.

How do you serve AVIF with WebP and JPG fallbacks?

Use a <picture> element. The browser checks each <source> in order and loads the first format it supports, so list AVIF first, then WebP, and put the JPG in the <img> tag.

  1. Upload the original once and keep its file handle.
  2. Build one CDN URL per format. Keep the resize task the same and change only the output task.
  3. List the URLs in a <picture> element, AVIF first.
<picture>
  <source type="image/avif"
    srcset="https://cdn.filestackcontent.com/rotate=deg:exif/resize=width:480,height:480,fit:crop,align:center/output=format:avif,quality:60/zcjsVk1qSKWjIebIhHuc">
  <source type="image/webp"
    srcset="https://cdn.filestackcontent.com/rotate=deg:exif/resize=width:480,height:480,fit:crop,align:center/output=format:webp,quality:80/zcjsVk1qSKWjIebIhHuc">
  <img src="https://cdn.filestackcontent.com/rotate=deg:exif/resize=width:480,height:480,fit:crop,align:center/output=format:jpg,quality:80/compress/zcjsVk1qSKWjIebIhHuc"
    width="480" height="480" alt="Straw sun hat on a yellow background" loading="lazy">
</picture>

The CDN generates each variant from the stored original on request, so adding a format later takes one more URL from the same upload.

Frequently asked questions

Is AVIF better than WebP for product images?

For file size, yes. In this test, AVIF files were 12% to 39% smaller than WebP files of the same width and crop.

Can WebP and AVIF keep a transparent background?

Yes. Both formats support an alpha channel for transparency, and JPG has none, so product cutouts that need a transparent background can be delivered as WebP or AVIF (MDN).

Can I convert images that are already uploaded?

Yes. Change the output task in the image’s CDN URL, for example from output=format:jpg to output=format:avif. The stored file stays as it is.

Sources

  1. File sizes: Filestack CDN measurements, as described in How we tested.
  2. Google for Developers, An image format for the Web.
  3. Can I use, WebP image format and AVIF image format.
  4. MDN Web Docs, Image file type and format guide.
  5. MDN Web Docs, The Picture element.
  6. Filestack, Processing API documentation.
Written by

Carl Cruz