Skip to content

JPG vs PNG vs WebP vs AVIF: File Sizes Measured on 24 Photos

The same 24 photos converted to all four formats with this site’s converter, with the file sizes, a similarity score for each, and when to use which.

By jpg-to.io ·

The short version

  • Lossless PNG was by far the largest: a median of 848 KB per photo, about 10 times the JPG.
  • At the converter’s starting settings the median photo was 81.8 KB as JPG (85%), 66.3 KB as WebP (85%) and 40.7 KB as AVIF (60%).
  • At the same measured similarity as a JPG at 85%, WebP was 28% smaller and AVIF 38% smaller (medians). Both were smaller on all 24 photos.
  • AVIF took the longest to make: a median of 263 ms per photo, against 6 ms for JPG, on the test machine.
  • Choose by where the file is going: JPG when anything must be able to open it, WebP or AVIF for web pages, PNG for screenshots, line art and transparency.

What we measured

We took the 24 photos of the Kodak Lossless True Color Image Suite (each 768 × 512 or 512 × 768 pixels, lossless PNG) and converted every one to JPG, WebP, AVIF and PNG with the converter on this site, running in Chromium 141 on November 11, 2026.

That made 576 files. For each one we recorded the size in bytes and a similarity score (SSIM) against the original pixels, where 1.000 means identical. The converter was not changed for the test, and no setting was tuned per photo.

One thing to know before the numbers: this site uses your browser’s own encoder where it has one. In this run JPG, PNG and WebP came from Chromium’s encoders and AVIF from the site’s WebAssembly codec, so another browser can produce somewhat different sizes. The limits of the test and the full method are further down.

File size at the starting settings

These are the sizes you get when you add a photo and change nothing. The quality slider starts at 85% for JPG, 85% for WebP and 60% for AVIF on pages that set no value of their own. PNG has no quality setting, because it is lossless.

Median file size of the 24 test photos at jpg-to.io’s starting settings (Chromium 141, November 11, 2026)
FormatSettingMedian sizeSmallest to largestAgainst JPGSimilarity (SSIM)
PNGlossless848 KB677 KB to 1 MB10× the size1.000
JPG85%81.8 KB57 KB to 148 KBbaseline0.968
WebP85%66.3 KB36.6 KB to 144 KB19% smaller0.974
AVIF60%40.7 KB20 KB to 110 KB50% smaller0.962
Sizes use 1 KB = 1,024 bytes, as the converter does. The three lossy rows are not at equal quality: compare the similarity column, then read the next section.

WebP at 85% was 19% smaller than JPG at 85% and scored slightly higher on similarity. AVIF at 60% was 50% smaller and scored slightly lower.

File size at equal measured quality

A fair comparison holds quality still. For each photo we took the similarity score of the JPG at 85% and worked out the size at which WebP and AVIF reach the same score, by interpolating between the two nearest settings we measured.

Size needed to reach the similarity score of a JPG at 85%, relative to that JPG (24 photos)
FormatMedianRange across the photosPhotos where it was smaller
WebP28% smaller13% to 34% smaller24 of 24
AVIF38% smaller31% to 49% smaller24 of 24
Every photo could be matched inside the range of settings we measured.

At the median that is 28% saved with WebP and 38% with AVIF. Our WebP median of 28% sits inside the range MDN’s format guide gives for lossy WebP, “on average 25–35% smaller than JPEG images”.

How the quality setting changes the size

The slider trades bytes for detail. These are the medians at every setting we measured.

JPG and WebP: median size and mean similarity at each quality setting (24 photos)
QualityJPG sizeJPG similarityWebP sizeWebP similarity
50%37.9 KB0.92629.8 KB0.930
60%43.7 KB0.93634.3 KB0.940
70%52.9 KB0.94739.5 KB0.948
75%58.9 KB0.95342.4 KB0.952
80%68.4 KB0.96152.5 KB0.964
85%81.8 KB0.96866.3 KB0.974
90%105 KB0.97891.6 KB0.983
95%152 KB0.988136 KB0.991
AVIF: median size and mean similarity at each quality setting (24 photos)
QualityAVIF sizeAVIF similarity
30%10.2 KB0.865
40%16.2 KB0.909
50%25.8 KB0.939
60%40.7 KB0.962
70%53 KB0.972
80%70.6 KB0.981
90%121 KB0.992

The numbers on the three sliders are not one scale. AVIF at 60% scored closest to JPG at 80% (0.962 against 0.961), at 60% of that JPG’s size.

Each step up costs more than the one before. Going from 85% to 95% made the median JPG 86% bigger for a similarity gain of 0.020.

PNG: exact pixels, large files

PNG keeps every pixel, which is why its similarity score is exactly 1. For photos that costs a lot: the median PNG was 10 times the size of the JPG at 85%.

PNG size also depends on the encoder. The browser’s encoder favours speed: its files were 27% to 59% larger than the same photos as distributed in the test set (a median of 848 KB against 605 KB), with identical pixels. If you need a small PNG, Compress PNG shrinks one by reducing its colours, which is no longer lossless; for a photo, JPG or WebP is usually the better answer.

PNG earns its place for screenshots, diagrams, line art and anything that needs a transparent background. MDN’s format guide gives the same advice: PNG is “better for screenshots, diagrams, and line art”, while JPEG “is particularly useful for photographs”. We did not measure screenshots or graphics here; this test is photos only.

Speed: AVIF takes longer

Converting one test photo took a median of 6 ms to JPG, 24 ms to WebP and 263 ms to AVIF on the test machine (Apple M5 Pro). These photos are small, 0.4 megapixels each; a 12-megapixel phone photo has about 31 times as many pixels, so expect AVIF to take correspondingly longer. We did not time large photos in this run.

For photos above 4 megapixels the converter switches its AVIF codec to a faster preset. This test did not exercise it, so AVIF files made from large photos may come out somewhat larger than these ratios suggest.

Which format to use

  • A form, an email, a printer or an older program has to open it: use JPG. MDN lists it as supported by every version of Chrome, Edge, Firefox, Opera and Safari. PNG to JPG, WebP to JPG, AVIF to JPG.
  • Photos on a website: WebP. At the same score it was smaller than JPG on all 24 photos here, and MDN lists Chrome, Edge, Firefox, Opera and Safari as supporting it (on a Mac, Safari 14 or later on macOS Big Sur or later). JPG to WebP, PNG to WebP.
  • The smallest photos, where you control how they are shown: AVIF. It was the smallest in this test, the slowest to make, and the newest: MDN gives Chrome 85, Edge 121, Firefox 93, Opera 71 and Safari 16.1 as the first versions with support and advises providing a fallback. JPG to AVIF, PNG to AVIF.
  • Screenshots, logos, line art or a transparent background: PNG, or WebP, which also keeps transparency. JPG to PNG.
  • You only need the file smaller, in the format it already has: Compress JPG, Compress PNG or Compress Image.
  • You already have a JPG: converting it to WebP or AVIF saves space but cannot bring back detail the JPG has lost, and converting it to PNG only makes the file bigger.

Limits of this test

  • 24 photos, all 768 × 512 or 512 × 768 pixels. Your photos will give different numbers, and a photo straight from a phone is many times larger.
  • One browser. The converter uses the browser’s encoder when it has one, so JPG, WebP and PNG sizes can differ in Firefox or Safari. Where a browser cannot encode WebP or AVIF itself, the site’s WebAssembly codec does it.
  • One similarity score. SSIM on brightness does not measure colour, and it is no substitute for looking at the picture.
  • The converter’s standard encoder settings only. We did not test lossless WebP or AVIF, full-resolution colour (4:4:4) JPG, or animated images.
  • Photos only: no screenshots, text or flat graphics, which behave differently.

Method in full

  • Test set: Kodak Lossless True Color Image Suite, 24 files, 768 × 512 or 512 × 768 pixels, from r0k.us. The page that hosts them says that, to its maintainer’s understanding, the images “have been released by the Eastman Kodak Company for unrestricted usage”. We do not host the photos.
  • Browser: Chromium (Playwright, headless), version 141.0.7390.37, on November 11, 2026.
  • Converter: this site’s engine, unmodified, with its standard options: no resize, metadata removed, and only the quality changed between runs.
  • Encoders in this browser: JPG, PNG, WebP from the browser; AVIF from the site’s WebAssembly codec (@jsquash/avif 2.1.1).
  • Settings measured: JPG and WebP at 50, 60, 70, 75, 80, 85, 90, 95%; AVIF at 30, 40, 50, 60, 70, 80, 90%; PNG lossless.
  • Similarity: SSIM on luma (BT.601), 8 × 8 windows every 4 px, mean over windows; decoded by the same browser.
  • Equal-quality sizes: for each photo, a straight line between the two measured settings whose scores bracket the target score.
  • Sizes are the bytes of the output file, shown with 1 KB = 1,024 bytes. Times are decode plus encode for one photo.
Sizes of all 24 photos at the starting settings
Each test photo at the starting settings (Chromium 141, November 11, 2026)
PhotoAs distributed (PNG)PNG from the converterJPG 85%WebP 85%AVIF 60%
kodim01719 KB952 KB121 KB110 KB79.9 KB
kodim02604 KB817 KB74.5 KB55.4 KB33.6 KB
kodim03491 KB755 KB60.3 KB40.5 KB23.7 KB
kodim04622 KB827 KB77.1 KB60.4 KB35.6 KB
kodim05767 KB994 KB129 KB111 KB79.8 KB
kodim06604 KB910 KB96.4 KB85 KB57.4 KB
kodim07553 KB810 KB70.8 KB47 KB31 KB
kodim08770 KB995 KB130 KB119 KB79.6 KB
kodim09569 KB799 KB63.9 KB44 KB24.3 KB
kodim10580 KB813 KB70.4 KB50.2 KB27.6 KB
kodim11606 KB863 KB90.7 KB76.6 KB50.7 KB
kodim12519 KB789 KB66.2 KB48 KB27.5 KB
kodim13803 KB1 MB148 KB144 KB110 KB
kodim14676 KB942 KB111 KB98.6 KB68.2 KB
kodim15598 KB793 KB70.2 KB53.3 KB31.9 KB
kodim16522 KB832 KB75.3 KB60.1 KB38.3 KB
kodim17588 KB822 KB75.4 KB55 KB35.1 KB
kodim18763 KB970 KB109 KB102 KB64.9 KB
kodim19656 KB880 KB86.5 KB72.3 KB43.2 KB
kodim20481 KB677 KB60 KB44.9 KB28.4 KB
kodim21622 KB899 KB88.2 KB73.2 KB49.3 KB
kodim22686 KB901 KB90.9 KB80.6 KB49.5 KB
kodim23545 KB765 KB57 KB36.6 KB20 KB
kodim24690 KB881 KB105 KB91.5 KB64.3 KB

Questions and answers

Is WebP always smaller than JPG?

In this test, at the same slider value, WebP was the smaller file on 24 of 24 photos at 80%, 24 of 24 photos at 85% and 23 of 24 photos at 90%, and at equal similarity to a JPG at 85% it was smaller on all 24 photos. That is a result on these photos, not a rule.

Does converting a JPG to WebP or AVIF improve its quality?

No. A JPG has already discarded detail, and no later conversion can bring it back. Converting to WebP or AVIF can make the file smaller; it re-compresses the picture, so use a high quality setting if you care about how it looks.

Why is a PNG of a photo so much larger than the JPG?

PNG stores every pixel exactly, and photos are full of fine variation that cannot be squeezed without loss. In this test the median PNG was 10 times the size of the JPG at 85%.

Which browsers can show WebP and AVIF?

According to MDN’s image format guide (read on November 11, 2026): WebP is supported by Chrome, Edge, Firefox, Opera and Safari, with Safari on a Mac needing version 14 or later on macOS Big Sur or later. AVIF is supported from Chrome 85, Edge 121, Firefox 93, Opera 71 and Safari 16.1.

Will my photos give the same numbers?

No. These are medians over 24 small test photos in one browser. Detailed, noisy photos compress less than smooth ones, larger photos behave differently, and other browsers use other encoders. Convert one of your own photos to see its real sizes.

Sources

  1. Kodak Lossless True Color Image Suite (r0k.us) (read November 11, 2026)
  2. MDN Web Docs: Image file type and format guide (read November 11, 2026)