Skip to content

Comparison

JPG vs WebP: 25% smaller files at the same quality

WebP for the web. JPG only for legacy compatibility.

By Published

TL;DR. WebP beats JPG for web use because it produces files 25-35% smaller at equivalent visual quality while supporting transparency and animation, with ~97% browser coverage in 2026. JPG only wins for email attachments, print pipelines, and legacy software.

WebP is a Google-developed image format introduced in 2010 and added to every major browser by 2020. At equivalent visual quality it produces files 25-35% smaller than JPG. For most web destinations there’s no remaining reason to default to JPG; the only meaningful blocker — browser support — is essentially solved as of 2026.

The headline numbers

AspectJPGWebP
CompressionLossy onlyLossy or lossless
Transparency (alpha)NoYes
AnimationNoYes
4K photo file size~1.5 MB at quality 85~1 MB at equivalent visual quality
Browser support (2026)~100%~97%
Encode speedFastSlightly slower (~2-3×)
Decode speedFastFast (comparable)
Year introduced19922010

When WebP wins

  • Web destination, modern browser audience. Default to WebP. The 3% of browsers without support can fall back to JPG via the <picture> element (see below).
  • Photographs with transparency.JPG can’t do alpha at all. WebP can — and at smaller sizes than PNG would.
  • Mobile-first, bandwidth-conscious audiences. 25-35% smaller files mean noticeably faster page loads on metered connections.

When JPG still wins

  • Email attachments. Some email clients (Outlook ancient, certain webmail variants) still mishandle WebP. JPG is universal.
  • Print pipelines. Most pre-press software accepts JPG natively; WebP support is uneven.
  • Embedding into legacy CMSes or document templates that you can’t test or upgrade.
  • Camera output. Most cameras still write JPG by default. Convert to WebP at the publishing step, not at the capture step.

The picture-element fallback pattern

For maximum reach with WebP’s smaller files, use HTML’s<picture> element with format fallbacks. The browser picks the first <source> it supports; the <img>serves as the catch-all fallback for browsers that don’t know<picture> at all.

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

Modern Chrome / Safari / Firefox / Edge get WebP; the small remaining fraction get JPG. The build step needs to produce both versions but otherwise the markup is just one extra line.

Should I bother with AVIF too?

AVIF (2019) is the successor: 20-30% smaller than WebP at equivalent quality. Browser support is at ~93% in 2026 — good enough for the same fallback pattern, with three tiers:

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

AVIF’s catch is encode speed — typical encoders are 10-100× slower than WebP. For build pipelines that produce each image once (web publishing), it’s worth the wait. For on-the-fly encoding (uploads, user-generated content), WebP is the practical choice.

The pragmatic recommendation

Default to WebP for web destinations. Keep JPG fallback via<picture> for the long tail of old browsers. Add AVIF as a third tier when you have a build pipeline that can produce it cheaply. Convert your existing JPG library with our JPG to WebP converter — runs in your browser, no upload, takes seconds per file.

Numeric facts

  • WebP vs JPG file size: Google’s own study across 1 million images measured a median 25-34% reduction at matched SSIM, with lossless WebP averaging 26% smaller than PNG.
  • Color depth: JPG is 8 bits per channel only (24-bit total); WebP supports the same 8-bit lossy plus 8-bit lossless with alpha; neither does HDR — that’s AVIF (10-12 bit) and JPEG XL territory.
  • Maximum dimensions: JPG is 65,535 × 65,535 px (16-bit fields); WebP is 16,383 × 16,383 px (14-bit) — the one place JPG technically wins.
  • Alpha bytes saved: a 1080p PNG with alpha averages ~600 KB; the equivalent lossy WebP-with-alpha lands at ~80 KB — about 7× smaller than the only JPG-era alternative (PNG).
  • Encode time: libjpeg-turbo encodes ~250 MP/s; libwebp lossy ~80 MP/s; libwebp lossless ~20 MP/s on a 2024 laptop. JPG is ~3× faster to encode, decode parity within 10%.
  • Browser coverage (caniuse.com, 2026): WebP ~97.4%, AVIF ~93%, JPEG XL <1% (Chrome/Edge dropped it in 2023).

Side-by-side table: same source image at quality 80

ContentJPGWebPSavings
1080p photograph (portrait)312 KB198 KB37%
1080p photograph (landscape, lots of sky)240 KB148 KB38%
4K hero image (product)1.5 MB980 KB35%
Screenshot with text + UI180 KB lossy (blurry)64 KB lossless64% + sharper
Photo with transparencyN/A (no alpha)120 KBvs 480 KB PNG
Small avatar (under 5 KB)4.1 KB4.3 KBJPG wins (overhead)

Decision matrix

DestinationPick
Public web page, modern audienceWebP (AVIF if build pipeline allows)
Email attachment / inlineJPG
Print pipeline (CMYK, ICC profile)JPG or TIFF, not WebP
UI screenshots in docsWebP lossless or PNG
User-uploaded photos (server transcode)WebP lossy, q=80
iOS / Android app bundleWebP — native since iOS 14, Android 4.0
Camera capture / RAW preservationJPG (or DNG/RAW)

Sources

Frequently asked questions

Is WebP always smaller than JPG?
For photographs, yes — typically 25-35% smaller at equivalent visual quality. For very small images (under ~5 KB) or already-aggressive JPGs (quality below 60), the gap narrows and occasionally JPG wins by a few bytes due to WebP's container overhead.
Does WebP lose quality compared to JPG?
WebP has both a lossy mode (similar to JPG, uses a VP8-derived codec) and a lossless mode (no JPG equivalent). In lossy mode at matched quality settings, WebP's artefacts are slightly different from JPG's but generally less visible at the same file size.
Will WebP open in older software like Photoshop or Outlook?
Modern Photoshop (2022+) supports WebP natively; older versions need a plug-in. Email clients are uneven — Gmail and Apple Mail render WebP; some Outlook versions still don't. For email attachments and legacy software, JPG remains the safest interchange format.
Should I use WebP or AVIF?
AVIF compresses 20-30% smaller than WebP and is supported in ~93% of 2026 browsers. The tradeoff is encode speed — AVIF encoders are 10-100× slower. Use AVIF for build-pipeline output where you encode once; use WebP for on-the-fly encoding of user uploads. Many sites ship both via a <picture> element.

Related

Published May 14, 2026