WebP vs JPG: which to use

Use WebP for web pages and JPG when the file has to work everywhere, including email, print and older software. At the same quality setting of 82, WebP was 23% smaller than JPG on 4000-pixel photos in our test and 1% larger on small 768×512 photos. WebP also supports transparency and animation, which JPG does not.

WebP and JPG side by side

WebP compared with JPG.
WebPJPG
CompressionLossy or losslessLossy
TransparencyYesNo
AnimationYesNo
Browser supportSupported by every evergreen browser since 2020 (Chrome, Firefox, Safari 14+, Edge). Older systems and some editing tools still struggle.Universally supported. It's been there since the first browsers.
Kodak photo, 768×512, average sizemeasured63 KB62 KB
Photo 4000 px wide, average sizemeasured397 KB515 KB
Screenshot 2880×1800, average sizemeasured109 KB182 KB
Encode time, photo 4000 px widemeasured598 ms121 ms
Decode time, photo 4000 px widemeasured43.6 ms93.8 ms

Measured rows: lossy formats at quality 82, which is the converter's default, in headless Chromium on one machine. Quality 82 is not the same visual quality in every format, and no quality metric was computed. Sizes are averages across each image set. Times are medians. Method and full results.

What we measured

On the Kodak photos, WebP and JPG at quality 82 came out nearly level: WebP was 1% larger. On photos 4000 pixels wide WebP was 23% smaller, and on screenshots 40% smaller. So the gap depends on the image. It was widest on flat colour and text, and absent on small, detailed photos.

JPG was quicker to make. A 4000-pixel photo took a median of 121 ms as JPG and 598 ms as WebP. The JPG encoder here is jpegli. JPGs made by other encoders may be larger at the same setting, in which case WebP would compare better against them than it does here.

Differences that are not about size

WebP can have a transparent background and can be animated. JPG can do neither. If you convert a WebP with transparency to JPG on this site, the transparent areas are filled with white.

JPG is the format every camera, phone, printer, email client and upload form understands. WebP is displayed by every current browser, but some desktop software still will not open it.

When to use WebP, and when to use JPG

Use WebP when

  • The image is for a website and page weight matters.
  • You need transparency or animation.
  • The image is large, or has flat colour and text in it.

Use JPG when

  • The file is for email, print, or an upload form with a fixed list of formats.
  • The recipient may be using older software.
  • You are converting a large batch and speed matters more than the last few percent of size.

Convert between them

These run in your browser. The file is not uploaded.

WebP vs JPG: common questions

No. In our test it was 23% smaller on large photos and 1% larger on small ones, both at quality 82. It depends on the image and on how good the JPG encoder is.

Other format comparisons

Last updated