benchmark · WebP AVIF benchmark

WebP vs AVIF Benchmark

Use this benchmark to choose a first modern web format before testing your own images.

Benchmark notes

  • AVIF produced the smallest file in this sample set.
  • WebP stayed small while keeping broader practical compatibility.
  • Transparent and flat graphics also benefited from modern formats.

Measured cross-format output

SampleBaselineWebP q78AVIF q50Smallest
Photo-style sampleJPEG q90, 526 KB310 KB133 KBAVIF
UI screenshot sampleJPEG q90, 30 KB6 KB3 KBAVIF
Transparent graphicPNG, 21 KB12 KB8 KBAVIF
Flat illustrationJPEG q90, 24 KB6 KB3 KBAVIF

Test methodology

ImgShrink generated four repeatable samples with sharp: a photo-style gradient, a UI screenshot, a transparent graphic and a flat color illustration.

Each output was encoded with the stated format and quality setting, then measured by byte size before being rounded for the table.

Test images and parameters

Photo sample: 1600x1067 pixels. Screenshot sample: 1365x768 pixels. Transparent sample: 512x512 pixels. Flat graphic sample: 1200x800 pixels.

WebP used quality 78 for the cross-format table, AVIF used quality 50, and JPEG baselines used quality 90 unless a quality row states otherwise.

What we learned

AVIF produced the smallest file in this sample set.

WebP stayed small while keeping broader practical compatibility.

Transparent and flat graphics also benefited from modern formats.

Limitations

These values are benchmark results for the sample set, not a promise for every uploaded file.

Real images vary by noise, detail, transparency, dimensions, browser encoder and the target platform's accepted formats.

Benchmark questions

Are these exact results for my image?

No. They are measured sample results that help choose a first setting to test.

Do these tests upload user images?

No. They use generated samples and browser-style encoding assumptions.