Skip to main content

JPG vs WebP: We Encoded the Same Photos and Measured the Difference

Two 12-megapixel photos and one flat graphic, encoded with the same browser encoder at matched quality. Here are the real file sizes, in kilobytes.

Last updated: 2026-11-28

How We Tested

Two photos and one synthetic graphic, all encoded in the same browser session on 28 November 2026. Nothing was uploaded: each image was decoded to a canvas and re-encoded with the browser's own encoders, which is the same code path the tools on this site use.

The photos are two 4032×3024 (12.2 megapixel) JPEGs — one portrait, one landscape — so the pixel count is identical and only the content differs. The graphic is a 2000×2000 flat design card with text, a solid header bar and two colour blocks.

Every number below is a real encoded file size in kilobytes, rounded down. The quality values are the ones passed to the encoder. They are not comparable across formats, because JPEG, WebP and PNG define quality differently.

Results: Photos

EncodingPortrait photo, 4032×3024Landscape photo, 4032×3024
JPEG, quality 95989 KB2,603 KB
JPEG, quality 85735 KB1,982 KB
JPEG, quality 70607 KB1,692 KB
WebP, quality 90630 KB2,235 KB
WebP, quality 85435 KB1,799 KB
WebP, quality 70218 KB1,164 KB
PNG, lossless8,925 KB17,445 KB

Read the table by column: each column is a different picture, so the comparison that matters is row by row within a column.

At matched quality, WebP came out 41% smaller on the portrait and 9% smaller on the landscape at quality 85. The gap widens as quality drops: at quality 70 it was 64% and 31%. PNG is not a candidate for photographs at all — the same pixels stored losslessly are 9 to 12 times larger than the JPEG version.

Results: Flat Graphic

EncodingFlat card, 2000×2000
PNG, lossless162 KB
JPEG, quality 92117 KB
JPEG, quality 8597 KB
WebP, quality 9251 KB
WebP, quality 8540 KB

Flat graphics invert the photo result. Lossless PNG is only 162 KB here, because large areas of identical colour compress extremely well — while the same pixel count as a photograph took 8.9 MB.

JPEG is smaller still, but it smears the edges of text, which is exactly why converted screenshots look dirty. WebP at quality 92 gives 51 KB, roughly half the JPEG size, and keeps text readable; very small type still softens slightly compared with PNG.

What the Numbers Mean

1. Format choice sets the range, not the destination. WebP saved between 9% and 64% over JPEG here, but no format choice brings a 12-megapixel photo to 100 KB.

2. Dimensions do more work than the quality slider. Dropping the long edge from 4032 to 1600 pixels cut the portrait from 735 KB to 203 KB at the same quality — 72% smaller — while keeping quality at 85.

3. Content density decides the rest. Two photos with identical resolution differed by 2.7 times at every setting, so a target that is easy for one picture can be hard for another.

When JPEG Is Still the Right Choice

JPEG opens everywhere: every phone, editor, print shop and upload form accepts it, and some content systems only allow .jpg and .png. If a platform rejects WebP, JPEG at quality 85 is a sound fallback.

For text-heavy graphics, PNG stays the correct answer when the file is small. A 162 KB PNG of a card is sharper than a 97 KB JPEG of the same card, and 162 KB costs a website almost nothing.

Use the tool that matches the case: PNG to WebP for screenshots and graphics, JPG to WebP for photographs, and Compress to 200KB when a hard limit is the real requirement.

Related Tools

Related guides