JPG vs PNG vs WebP File Size Test: 20 Images
Which image format made smaller files? Compare JPG, PNG and WebP results from 20 JPG originals, with per-image sizes, settings, limits and CSV data.
Which format produced the smallest files in this test?
WebP had the lowest mean output size at 610,161 B across these 20 JPG originals. WebP was smaller than JPG for 20 files. This does not establish a universal winner for every image.
Output file sizes by format
These statistics use output bytes from the same 20 source images.
| Format | Mean | Median | Minimum | Maximum |
|---|---|---|---|---|
| JPG | 1,021,535 B | 1,110,823 B | 109,287 B | 1,997,039 B |
| PNG | 14,963,790 B | 16,640,362 B | 1,459,750 B | 28,115,151 B |
| WebP | 610,161 B | 481,562 B | 65,932 B | 1,894,810 B |
Measured files
JPG and WebP used quality 80. PNG used the browser’s PNG encoder, which ignores the quality setting. Transparent pixels were filled white for JPG. The conditions therefore do not represent equal visual quality across formats.
| Source file | Original | JPG | PNG | WebP |
|---|---|---|---|---|
| Animal photo.jpg | 103,728 B | 109,287 B-5.4% | 1,459,750 B-1307.3% | 65,932 B36.4% |
| Architecture (14643757805).jpg | 955,737 B | 409,195 B57.2% | 5,327,939 B-457.5% | 248,326 B74.0% |
| Architecture building .jpg | 7,454,329 B | 1,483,220 B80.1% | 22,225,878 B-198.2% | 791,876 B89.4% |
| Beach image.jpg | 139,982 B | 151,323 B-8.1% | 1,473,785 B-952.8% | 120,670 B13.8% |
| Cambridge Public Library - Cambridge, MA - 3.jpg | 4,563,990 B | 1,519,653 B66.7% | 23,612,483 B-417.4% | 749,564 B83.6% |
| City silhouette at night.jpg | 4,568,273 B | 1,893,815 B58.5% | 28,115,151 B-515.4% | 1,289,438 B71.8% |
| Close-up portrait of an old woman.jpg | 1,607,542 B | 761,968 B52.6% | 10,871,796 B-576.3% | 433,354 B73.0% |
| Fruit Salad 1.jpg | 558,525 B | 173,688 B68.9% | 3,974,122 B-611.5% | 66,792 B88.0% |
| Fruit Salad with ice cream.jpg | 344,549 B | 345,026 B-0.1% | 5,169,183 B-1400.3% | 158,506 B54.0% |
| Image of a forest.jpg | 3,384,891 B | 1,437,356 B57.5% | 19,727,708 B-482.8% | 815,374 B75.9% |
| Kolkata City at night (8).jpg | 3,186,309 B | 1,156,025 B63.7% | 17,168,426 B-438.8% | 529,770 B83.4% |
| Long exposure of urban cityscape at night.jpg | 996,324 B | 472,971 B52.5% | 4,548,647 B-356.5% | 379,546 B61.9% |
| Macro Flower Shot.jpg | 6,287,688 B | 1,445,867 B77.0% | 24,342,693 B-287.1% | 706,034 B88.8% |
| On the beach0.jpg | 3,542,360 B | 1,497,275 B57.7% | 21,366,016 B-503.2% | 895,078 B74.7% |
| Perennial Landscape.jpg | 1,888,427 B | 1,997,039 B-5.8% | 20,654,019 B-993.7% | 1,894,810 B-0.3% |
| Photo of building.jpg | 991,887 B | 1,169,500 B-17.9% | 14,386,533 B-1350.4% | 742,966 B25.1% |
| Portrait of an African woman.jpg | 5,022,586 B | 1,899,124 B62.2% | 24,293,014 B-383.7% | 1,242,730 B75.3% |
| Portrait of woman.jpg | 3,996,062 B | 656,432 B83.6% | 11,759,947 B-194.3% | 325,570 B91.9% |
| Random landscape photo I took.jpg | 2,383,594 B | 786,310 B67.0% | 16,112,298 B-576.0% | 359,154 B84.9% |
| Sky clouds.JPG | 2,966,465 B | 1,065,620 B64.1% | 22,686,402 B-664.8% | 387,738 B86.9% |
Why can PNG be larger?
PNG is lossless, and the browser’s PNG encoder did not apply the quality 80 value used for JPG and WebP. Transparency needs and destination compatibility can matter more than the smallest byte count.
Conditions and limitations
All source files in these tests were JPG, and pixel dimensions stayed unchanged. Results for PNG or WebP source files, other browsers or visual quality cannot be inferred from these measurements. Read the full method and limitations.
Image sources and licenses
We used 20 original Wikimedia Commons files. Each was listed as CC0 or Public Domain in the verified source manifest.
| Original file | Category | License | Source |
|---|---|---|---|
| Animal photo.jpg | Nature | CC0 | Commons file page |
| Architecture (14643757805).jpg | Architecture | CC0 | Commons file page |
| Architecture building .jpg | Architecture | CC0 | Commons file page |
| Beach image.jpg | Landscapes | CC0 | Commons file page |
| Cambridge Public Library - Cambridge, MA - 3.jpg | Architecture | Public domain | Commons file page |
| City silhouette at night.jpg | Night scenes | CC0 | Commons file page |
| Close-up portrait of an old woman.jpg | People | CC0 | Commons file page |
| Fruit Salad 1.jpg | Food | CC0 | Commons file page |
| Fruit Salad with ice cream.jpg | Food | CC0 | Commons file page |
| Image of a forest.jpg | Nature | CC0 | Commons file page |
| Kolkata City at night (8).jpg | Night scenes | CC0 | Commons file page |
| Long exposure of urban cityscape at night.jpg | Night scenes | CC0 | Commons file page |
| Macro Flower Shot.jpg | Nature | CC0 | Commons file page |
| On the beach0.jpg | Landscapes | CC0 | Commons file page |
| Perennial Landscape.jpg | Landscapes | Public domain | Commons file page |
| Photo of building.jpg | Architecture | CC0 | Commons file page |
| Portrait of an African woman.jpg | People | CC0 | Commons file page |
| Portrait of woman.jpg | People | CC0 | Commons file page |
| Random landscape photo I took.jpg | Landscapes | CC0 | Commons file page |
| Sky clouds.JPG | Nature | CC0 | Commons file page |