1. Home
  2. Blog
  3. PNG vs JPG vs WebP: what we measured on photos, screenshots, text and charts
Guide

PNG vs JPG vs WebP: what we measured on photos, screenshots, text and charts

Format advice usually sounds like "use JPG for photos and PNG for everything else". That is a decent rule of thumb, and it hides some surprising results. So we measured it.

We took five kinds of image, saved each as a lossless PNG, and ran every one through ConvertPicto's PNG compressor, its PNG to JPG converter and its PNG to WebP converter. Then we scored each output against the original with SSIM (1.000 means identical).

How we tested

  • Photos: five freely licensed sample photographs, 0.14 to 0.87 megapixels.
  • Screenshots: two real 1440 x 900 screenshots of ConvertPicto itself (the homepage and a tool page).
  • Text-heavy page: a 1100 x 1500 screenshot of a blog article.
  • Chart: a 1200 x 700 bar chart exported from a plotting library.
  • Settings: the PNG compressor at its defaults (256 colours, dithering on), JPG and WebP both at 85% quality. The tools ran in headless Chromium.

The results

Each cell shows the file size, with the SSIM score in brackets. The PNG column is the original lossless file. Remember that the "compressed PNG" here is palette PNG: it reduces the image to at most 256 colours, which is lossy even though the format is still PNG.

ImageOriginal PNGCompressed PNG (256 colours)JPG 85%WebP 85%
Photos (average of 5)599 KB187 KB (0.874)73 KB (0.927)64 KB (0.939)
Home-page screenshot292 KB154 KB (0.972)115 KB (0.982)58 KB (0.987)
Tool-page screenshot124 KB85 KB (0.990)77 KB (0.989)40 KB (0.994)
Text-heavy page234 KB117 KB (0.999)199 KB (0.977)121 KB (0.988)
Chart21 KB15 KB (0.999)47 KB (0.976)12 KB (0.982)

What each result tells you

Photos: do not use palette PNG. It cut the files by about 69%, but similarity dropped to 0.87, which is visible banding in skies and skin. JPG and WebP at 85% were smaller and scored higher (0.93 and 0.94). Photographs belong in a lossy photo format.

Screenshots: WebP wins clearly. On the homepage screenshot WebP was 80% smaller than the PNG, against 61% for JPG and 47% for palette PNG. On the tool page the figures were 68%, 38% and 32%.

Text pages: JPG is the wrong tool. JPG saved only 15% and scored the lowest (0.977), because it smears the sharp edges around letters. Palette PNG halved the file (50% smaller) with a score of 0.9988, which is effectively identical. WebP matched it on size and scored 0.988.

Charts: JPG made the file bigger. The chart's PNG was 21 KB. The JPG came out at 47 KB, about 2.2 times larger, and it looked worse. Flat colours and hard edges are exactly what PNG is good at and JPG is bad at. Palette PNG saved 31% with a score of 0.9994; WebP saved 45%.

A note on palette size

Fewer colours is not always smaller. On the chart, dropping the palette from 256 to 64 colours produced a larger file (17 KB against 15 KB), because dithering a smaller palette adds noise that compresses badly. For photos, 64 colours saved more bytes but pushed the similarity score down to 0.78. The default of 256 is a sensible starting point. If you want to see how the palette encoder works, we wrote up how a PNG compressor works in plain JavaScript.

What this does not tell you

Every image type here was tested at one setting per format, JPG and WebP at 85%, so the table is a snapshot, not a ranking for all settings. If you want to see how the two lossy formats behave across the whole quality slider, our JPG vs WebP quality measurements cover that. We also did not test AVIF, which is often smaller still but is not yet supported everywhere. And SSIM is a good proxy for how similar two images look, not a verdict on how they look to you, so always check the output at full size before you replace an original.

A last practical point: the ordering of formats changed with the image type, not with the size of the file. The photos favoured WebP and JPG, the text page favoured palette PNG, and the chart ruled JPG out entirely. If you process a folder with mixed content, sort it by what each image shows rather than choosing one format for the whole batch.

A simple rule from these numbers

Your imageTry firstWhy
PhotoWebP or JPG at 80% to 85%Smallest, and a high similarity score
Screenshot or interfaceWebP at 85%About 60% to 80% smaller than PNG
Text, diagram or chartCompressed PNG (256 colours)Near-identical to the original, about 30% to 50% smaller
Anything with transparencyPNG or WebPJPG has no transparency

For picking between JPG, PNG, WebP and AVIF in general, see our image format guide.

Compress a PNGReduce PNG file size — free, no upload
Convert PNG to WebPConvert Portable Network Graphics to WebP — free, no upload
Convert PNG to JPGConvert Portable Network Graphics to JPG — free, no upload

Tools mentioned in this article

More from the blog

We checked all 28 image conversions pixel by pixel
28 conversions, each run in headless Chromium and compared against an independent decoder. What is identical, what is lossy, and why.
4 min read
How big will your image PDF be? We measured it
Page size does not change the file size, but quality does, a lot. Measured PDF sizes from JPG and PNG sources.
4 min read
JPG vs WebP quality settings: what each level really costs in file size
Nine quality settings, two formats, five photos, measured. Where the file-size curve is gentle, and where it falls off a cliff.
4 min read
Resize or compress first? Measuring what actually shrinks an image
Image size scales with pixel count, so resizing beats lowering quality. Here are the measured numbers, and the order that works best.
4 min read
Writing a real PNG compressor in vanilla JavaScript (no WASM, no libraries)
Median-cut quantization, Floyd–Steinberg dithering, hand-built PNG chunks, and the four browser traps that cost me an evening each.
6 min read
Are online image converters safe? What actually happens to your files
Most converters upload your file to a server you know nothing about. Here's how to tell which ones do, and when it actually matters.
6 min read
JPG vs PNG vs WebP vs AVIF: which image format should you use?
Five formats, one decision. Here's what each one is actually good at, with a rule of thumb you can apply in ten seconds.
6 min read
How to combine multiple images into one PDF
Every method, on every device — plus the page-size and quality settings that decide whether your PDF is 200 KB or 20 MB.
5 min read
How to make a favicon: every size and format you actually need
Which sizes you actually need, the exact HTML to paste, and the three reasons a favicon usually fails to appear.
5 min read
How to reduce image file size without losing quality
Do these three things in the right order and a 4 MB photo becomes 80 KB with no visible difference. The order matters more than the tools.
6 min read
What is a WebP file, and how do you open one?
Why the internet keeps giving you files you can't open, how to open them anyway, and when WebP is actually the right choice.
5 min read