Filenary
← Back to all articles

WebP vs JPG: Which Format Should Your Site Actually Use?

Published 2026-09-27

At identical visual quality, WebP files are typically 25-35% smaller than JPGs — that margin comes from its VP8-derived intra-frame coding finally doing what JPG's 1992 DCT could not. Browser support stopped being an argument years ago: WebP renders in every current desktop and mobile browser, including Safari since 2016.

Where WebP wins

  • Website photography and hero images: smaller LCP, better Core Web Vitals, lower bandwidth bills
  • Images with transparency: WebP carries 8-bit alpha — the PNG-killing feature JPG simply does not have
  • Lossless variants for UI screenshots: usually beats both PNG and optimized JPG

Where JPG still wins

  • Email and messaging: clients strip WebP support inconsistently; JPG is rendered by software older than the format wars
  • Files meant for other people's devices: cameras, print shops, car head units and government upload forms that accept 'JPEG only' for exactly that reason
  • Editing round-trips: WebP lossy re-encoding degrades faster across edit-save cycles than JPG's matured encoders
  • Simplicity of tooling: every decoder in the world handles JPG without plugins or polyfills

The pragmatic stack most sites land on: serve WebP (or AVIF where supported) to browsers, keep JPG originals for everything humans download, send, or print. Content-delivery networks can negotiate the choice per request; sites without a CDN handle it with a source-set of both formats.

And AVIF?

AVIF pushes the same trade another 20-30% smaller than WebP and carries 12-bit color and HDR, which matters for flagship-phone photography archives. Its encode speed is slower and its decoder coverage — though now in all evergreen browsers — still thins out in older Windows apps and some embedded viewers. The safe 2026 answer: WebP as the workhorse, AVIF for image-heavy sites that can afford both variants, and JPG forever as the fallback everyone trusts.

Converting batches between the three is the boring part — pick a tool that keeps the alpha channel and does not re-encode the images at 75% twice on the way out. Browser-side converters do this pass without uploading your entire media library first.