JPG vs PNG vs WebP

We measured it instead of guessing

Every number on this page came out of the same encoder BravoConvert runs in your browser

Published · Updated

Quick answer: use JPG for photographs headed somewhere that has to accept them, PNG when you need transparency or exact pixels, and WebP when you control the destination and want the smallest file. The measurements below show where that advice holds and where it breaks down.

How these numbers were produced

Most format comparisons quote ratios without saying where they came from. These came from a script in this project that draws three deterministic 900×600 test images, encodes each one through the Canvas toBlob API at four quality settings, and records the exact byte count of every result.

That matters because it is the same code path the Image Converter uses. When this page says a photo lands at 62 KB as WebP, that is what BravoConvert would actually hand you, not a figure borrowed from another tool with a different encoder.

Measured on Chromium 151.0.7922.34 on 2026-09-02. Encoder output can shift slightly between browser versions, so treat these as representative rather than permanent constants. The test images are synthetic and drawn from a fixed random seed, which keeps the run reproducible — but it also means your own photos will land on different absolute numbers. The relationships between formats are what transfer.

Why the three formats behave differently

PNG compresses losslessly. It looks for patterns it can describe more compactly — runs of identical pixels, rows that resemble the row above — and rebuilds the original exactly. Nothing is thrown away, so re-saving a PNG a hundred times leaves it identical. The catch is that photographic noise has no pattern to exploit, so PNG ends up storing it nearly verbatim.

JPG compresses lossily. It splits the image into blocks, converts each into frequency components, and rounds off the high-frequency ones your eye weights least. The quality slider controls how aggressively it rounds. This works beautifully on smooth gradients and poorly on hard edges, which is why text and line art picked up halos in the flat graphic test.

WebP offers both modes and generally makes smarter decisions than JPG at the same nominal quality — but “generally” is doing real work in that sentence, as the fine-detail measurements show.

The measurements

Photographic

Soft gradients and grain, the way a camera photo behaves

Photographic test image: soft gradients and grain, the way a camera photo behaves
QualityJPGWebPSmaller format
0.416 KB9 KBWebP by 45%
0.631 KB23 KBWebP by 25%
0.864 KB62 KBWebP by 2%
0.95202 KB175 KBWebP by 13%
PNG (lossless)941 KB

Flat graphic

Solid fills, sharp edges and text, the way a logo or UI screenshot behaves

Flat graphic test image: solid fills, sharp edges and text, the way a logo or ui screenshot behaves
QualityJPGWebPSmaller format
0.415 KB6 KBWebP by 60%
0.617 KB7 KBWebP by 61%
0.821 KB8 KBWebP by 63%
0.9531 KB11 KBWebP by 63%
PNG (lossless)24 KB

Fine detail

Dense high-frequency texture, the hardest case for any codec

Fine detail test image: dense high-frequency texture, the hardest case for any codec
QualityJPGWebPSmaller format
0.4149 KB184 KBJPG by 19%
0.6193 KB218 KBJPG by 12%
0.8278 KB280 KBJPG by 1%
0.95494 KB422 KBWebP by 14%
PNG (lossless)589 KB

What the numbers actually tell you

1Saving a photograph as PNG costs about 15× the bytes

The photographic sample is 941 KB as a PNG and 64 KB as a JPG at quality 0.8 — roughly 15× larger for a difference most viewers will not notice at normal size. PNG has to record every grain of sensor noise exactly; JPG is allowed to approximate it.

2For flat graphics, JPG is close to pointless

On the dashboard-style sample, PNG is 24 KB and JPG quality 0.8 is 21 KB. You give up lossless accuracy and gain only about 12% — while introducing ringing around the text and chart edges. WebP at the same quality is 8 KB, which is the setting worth reaching for.

3WebP is not always smaller — this is the part most guides skip

On the dense high-frequency sample at quality 0.4, JPG produced 149 KB and WebP produced 184 KB. WebP was about 24% larger. At quality 0.8 the two are within a percent of each other. WebP's advantage is real on smooth and flat content, and it narrows or reverses on noisy texture.

4The top of the quality slider is expensive

Moving the photographic sample from quality 0.8 to 0.95 takes it from 64 KB to 202 KB — about 3.2× the file for the last sliver of the scale. Most of those bytes go toward preserving grain and noise rather than detail you would miss.

What JPG quality actually looks like

Quality settings are easier to judge by eye than by number. Below is the same crop of the photographic sample encoded at each quality level and magnified 2× so the difference is visible at reading size.

The same photo crop encoded at JPG quality 0.4, 0.6, 0.8 and 0.95, magnified two times, with the file size of each

The visible change is not blockiness — it is grain. At quality 0.4 the encoder smooths the sensor noise away and the crop lands near 3 KB. At 0.95 that noise is faithfully preserved and the same crop costs roughly seven times as much. If your source is a noisy photo, a high quality setting is largely spending bytes on the noise.

Transparency support

JPG

No alpha channel at all. Transparent pixels have to be filled with a background color on export, which is why a logo saved as JPG arrives on a solid rectangle.

PNG

Full 8-bit alpha, so edges stay smooth against any background. The safe default for logos, icons, and screenshots with transparency.

WebP

Alpha in both its lossy and lossless modes — the reason a transparent WebP is usually far smaller than the equivalent PNG.

Choosing a format

If your image is…ChooseBecause
A photo for a website you controlWebP, quality 0.8Smallest file at a quality difference you will not see
A photo for upload, email, or printJPG, quality 0.8Universally accepted; near-identical size to WebP here
A logo, icon, or screenshot with transparencyPNGLossless alpha and no artifacts around text or edges
A flat graphic or UI capture for the webWebP8 KB against 24 KB for PNG on our sample
Dense texture at an aggressive compression levelTest bothJPG can beat WebP here; the usual assumption fails

Compatibility

JPG and PNG are accepted essentially everywhere. WebP is supported by every current browser, but older software, some printers, and certain upload forms still reject it. If a destination refuses a WebP file, converting it to JPG or PNG in the Image Converter resolves it — and since the conversion runs in your browser, the file never leaves your device.

Check the numbers yourself

The uncompressed PNG originals used for every measurement above are published here. Drop one into the converter, try the settings this page describes, and compare the byte count your browser produces against ours.

Ready to convert? Use the Image Converter to switch between JPG, PNG, and WebP, or read how to reduce file size for more control over quality settings.