The answer depends on what’s in the image, so we tested photos, logos and screenshots separately and wrote down every file size and quality score. Nothing here is a rule for every image; each result is for the files we tested, on one machine.
- Photos: in our test (5 files at full size), AVIF at the tool’s default quality 60 made the smallest file in 5 of 5, WebP 80 was smaller than JPG 80 in 4 of 5, and JPG 80 had the highest PSNR in 3 of 5; in those 3 files JPG 80 was also the largest file.
- Logos, icons and transparent images: in our test (3 files), the PNG from Compress PNG was the smallest of PNG, WebP 75 and AVIF 75 in 1 of 3 (the logo); for the icon and the cut-out photo, WebP 75 and AVIF 75 were 2.2 to 3.3 times smaller than the PNG. JPG can’t keep transparency.
- Screenshots: in our test (2 files), AVIF 80 made the smallest file in 2 of 2. The highest PSNR was JPG 90 on the Wikipedia page (439.9 KB, 36.2 dB; AVIF 80: 102.9 KB, 34.7 dB) and AVIF 80 on the browser window (174.2 KB, 39.1 dB; JPG 90: 591.1 KB, 39.0 dB).
| Image type | Files | What we measured |
|---|---|---|
| Photos | 5 + 4 | File size and PSNR: AVIF, WebP, JPG |
| Logos, icons, transparent images | 3 | File size: PNG, WebP, AVIF, JPG; alpha changes; JPG PSNR |
| Screenshots | 2 | File size and PSNR: PNG, JPG, WebP, AVIF |
Using this for your own images:
- Transparency: JPG has no alpha channel, so transparent areas can’t stay transparent in a JPG (MDN).
- WebP and AVIF: both formats can store an alpha channel (Google WebP FAQ, AVIF specification). Convert your own file with PNG to WebP or PNG to AVIF, compare the file sizes, and check the result yourself at the size you’ll show it. The tools show the file size, not a PSNR score; the PSNR values in this guide come from our own measurements.
- WordPress: AVIF uploads need AVIF support in the server’s image library (Make WordPress Core).
Quality numbers are not comparable across formats: AVIF 75 and WebP 75 are not the same quality, so read the size together with the PSNR column. 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes. Conditions are under How we measured.
Photos
We converted five JPG photos at full size with Pixlune’s default settings: JPG to AVIF (quality 60), JPG to WebP (quality 80) and JPG compression with MozJPEG (quality 80).
| Photo (pixels) | AVIF 60 | PSNR | WebP 80 | PSNR | JPG 80 | PSNR |
|---|---|---|---|---|---|---|
| Lake (3024 × 4032) | 1.40 MB | 38.2 dB | 1.74 MB | 37.9 dB | 1.90 MB | 36.4 dB |
| Mug (2950 × 2847) | 72.7 KB | 43.0 dB | 150.8 KB | 43.2 dB | 321.6 KB | 44.9 dB |
| Shoe (3000 × 2254) | 96.9 KB | 41.5 dB | 159.1 KB | 41.7 dB | 270.3 KB | 42.4 dB |
| Vase (4000 × 6000) | 22.2 KB | 43.1 dB | 143.9 KB | 42.8 dB | 357.1 KB | 43.6 dB |
| Lake, web copy (1280 × 1707) | 552.5 KB | 37.7 dB | 608.7 KB | 36.1 dB | 554.2 KB | 29.4 dB |
- AVIF 60 made the smallest file in 5 of 5. Its PSNR was higher than JPG 80’s in 2 of 5 (both lake files) and lower in 3 of 5.
- WebP 80 was smaller than JPG 80 in 4 of 5. On the lake web copy it was larger: 608.7 KB against 554.2 KB.
- The lake web copy was already a JPG made by Wikimedia, so this row shows one more lossy step on top of an earlier one.
We also resized four photos to 1200 pixels wide with Resize image and saved each one as JPG, WebP and AVIF, all at quality 75.
| Photo, 1200 px wide | JPG 75 | PSNR | WebP 75 | PSNR | AVIF 75 | PSNR |
|---|---|---|---|---|---|---|
| Mug | 51.1 KB | 41.5 dB | 28.9 KB | 40.9 dB | 35.0 KB | 42.9 dB |
| Shoe | 33.8 KB | 39.7 dB | 23.4 KB | 40.3 dB | 32.3 KB | 42.6 dB |
| Guidepost | 303.8 KB | 31.0 dB | 329.9 KB | 34.7 dB | 475.7 KB | 39.9 dB |
| Shoe, from AVIF | 33.3 KB | 40.7 dB | 22.9 KB | 41.5 dB | 31.4 KB | 44.7 dB |
- WebP 75 made the smallest file in 3 of 4. On the guidepost photo JPG 75 was the smallest, at 303.8 KB.
- AVIF 75 had the highest PSNR in 4 of 4 and was larger than WebP 75 in 4 of 4.
- The “shoe, from AVIF” row is a copy of the shoe photo that we converted to AVIF first, so the tool started from an AVIF file there.
- PSNR here compares each file with a lossless PNG resized the same way, so it measures compression loss, not the resizing.
A photo saved as PNG is a different case. Our 1104 × 737 photo PNG was 1.02 MB after Compress PNG and 74.2 KB as WebP 80 with PNG to WebP. We didn’t measure PSNR for that pair.
For photos sized for Elementor heroes, backgrounds and galleries, see our Elementor image optimization guide. TIFF isn’t covered here; see TIFF vs JPG.
Logos, icons and transparent images
We tested a logo on a transparent background (4020 × 1601), an icon (1024 × 1024) and a photo cut-out on a transparent background (1028 × 1370). PNG is the file from Compress PNG (oxipng); WebP and AVIF are from the PNG converters at quality 75; JPG 80 is from PNG to JPG, which flattens transparency to white.
| File | Source PNG | PNG (oxipng) | WebP 75 | AVIF 75 | JPG 80, on white | JPG PSNR |
|---|---|---|---|---|---|---|
| Logo (4020 × 1601) | 131.4 KB | 46.2 KB | 63.6 KB | 61.6 KB | 148.8 KB | 41.9 dB |
| Icon (1024 × 1024) | 16.5 KB | 13.2 KB | 5.7 KB | 4.0 KB | 11.6 KB | 50.1 dB |
| Cut-out (1028 × 1370) | 621.5 KB | 301.3 KB | 92.8 KB | 135.9 KB | 80.6 KB | 40.3 dB |
- The PNG was smaller than WebP 75 and AVIF 75 for the logo (46.2 KB against 63.6 KB and 61.6 KB). For the icon and the cut-out, both were smaller than the PNG.
- The logo’s JPG was larger than the source PNG: 148.8 KB against 131.4 KB.
- The JPG files have no transparency: the tool turned transparent pixels white. Their PSNR compares the JPG with the source flattened onto white.
- For PNG, WebP and AVIF we didn’t compute PSNR, because our PSNR method skips images with transparency. We measured the alpha channel and the colour of visible pixels instead.
What happened to transparency:
- Alpha channel, PNG and WebP 75: the alpha values were unchanged in all 3 files.
- Colour of visible pixels in the PNG: after Compress PNG, no visible pixel changed colour in any of the 3 files, fully opaque or semi-transparent. Only fully transparent pixels can get different hidden colour values, which browsers don’t show.
- AVIF 75: the alpha value changed in 96,069 pixels of the logo (by up to 31 out of 255) and in 8,902 pixels of the icon (by up to 24). In the cut-out it was unchanged, but that file only has fully transparent and fully opaque pixels. At AVIF 85 the counts were 63,441 (up to 16) and 5,634 (up to 14).
- Colour of opaque pixels: the largest change in one RGB channel was 106 out of 255 in the logo, both as WebP 75 and as AVIF 75. On average, opaque pixels changed by 0.666 (WebP 75) and 0.706 (AVIF 75) per channel. We didn’t look into why the largest change is that high.
Screenshots and graphics
We tested two screenshots: a Wikipedia page (1776 × 960) and a browser window (2880 × 1628). JPG is from PNG to JPG at quality 80 and 90, WebP from PNG to WebP at 80, AVIF from PNG to AVIF at 80. PSNR compares each file with the source PNG.
| Format | Wikipedia page (1776 × 960) | PSNR | Browser window (2880 × 1628) | PSNR |
|---|---|---|---|---|
| Source PNG | 441.0 KB | – | 1.87 MB | – |
| PNG (oxipng) | 283.0 KB | – | 1.10 MB | – |
| JPG 80 | 262.6 KB | 31.7 dB | 369.1 KB | 35.2 dB |
| JPG 90 | 439.9 KB | 36.2 dB | 591.1 KB | 39.0 dB |
| WebP 80 | 195.4 KB | 34.1 dB | 259.9 KB | 38.2 dB |
| AVIF 80 | 102.9 KB | 34.7 dB | 174.2 KB | 39.1 dB |
- AVIF 80 made the smallest file in 2 of 2.
- The highest PSNR was JPG 90 on the Wikipedia page (439.9 KB, 36.2 dB, against 102.9 KB and 34.7 dB for AVIF 80) and AVIF 80 on the browser window (174.2 KB, 39.1 dB, against 591.1 KB and 39.0 dB for JPG 90).
- On the Wikipedia page, JPG 90 (439.9 KB) was larger than the PNG from Compress PNG (283.0 KB).
Browser and WordPress support
The browser versions below come from release notes and show when support arrived; they aren’t a compatibility table. For current browser support, see the browser compatibility notes in MDN’s image file type guide.
What each format is, according to its specification or documentation:
- PNG is lossless: the specification lists “Losslessness” as a design goal (W3C PNG).
- JPEG is lossy, and “JPEG does not support an alpha channel”, so it can’t store transparency (MDN).
- WebP “is a method of lossy and lossless compression” (Google WebP FAQ). Pixlune’s converters only make lossy WebP.
- AVIF “also supports transparency (alpha)” (AVIF specification).
When browsers added them, according to the browser makers:
- WebP: Safari 14 (Apple) and Firefox 65 (Mozilla).
- AVIF: Chrome 85 added AVIF decoding (Chrome) and Firefox 93 added AVIF (Mozilla). In Safari, AVIF came with iOS 16 and macOS Ventura (WebKit), and with Safari 16.4 on macOS Monterey and Big Sur (WebKit).
WordPress accepts WebP uploads from version 5.8 (Make WordPress Core) and AVIF from version 6.5, but “AVIF in WordPress depends on support in your web server’s image processing library” (Make WordPress Core). To prepare images before they reach the Media Library, see how to compress images for WordPress without a plugin.
How we measured
- When and where: 5 December 2026 for every Compress PNG result and the logo WebP rows; 4 December 2026 for the logo AVIF and JPG rows and the other screenshot rows; 2–3 December 2026 for the photo rows. Chromium 158.0.8127.18 on an Apple M3 (8 cores), on the built site, one run per setting on one machine.
- Files: from Wikimedia Commons, all CC0: lake (and its 1280-pixel copy made by Wikimedia), mug, shoe, vase, guidepost, photo PNG, logo, icon, cut-out, Wikipedia screenshot and browser screenshot. The “shoe, from AVIF” row is the shoe photo converted to AVIF by us.
- Encoders: JPG with MozJPEG, WebP with libwebp, AVIF with libavif (speed 6, 4:2:0, 8 bit), PNG with oxipng, all running in the browser. The converters (to WebP, AVIF and JPG) convert colour to sRGB. Compress PNG keeps the PNG’s colour profile: the photo PNG (Adobe RGB profile) and the two screenshots (a display profile and an sRGB profile) kept theirs, and in our 5 December test no visible pixel changed in any of them. The same quality number means a different thing in each encoder.
- AVIF quality: the tool’s AVIF default is 60. The photo table at full size uses 60; the 1200-pixel table, the logo rows and the screenshot rows use 75 or 80, set in Advanced settings.
- PSNR: compared per RGB channel, in decibels; higher means closer to the reference. The reference is the source file, or a PNG resized the same way (1200-pixel table); both images were decoded in the same browser. For the JPG logos the reference is the source flattened onto white, and both were decoded outside the browser (the JPG with MozJPEG’s decoder). PSNR isn’t a measure of how a picture looks to people.
- Transparency: alpha values compared pixel by pixel in the browser. The colour change per opacity range was measured outside the browser: PNG with our own decoder, WebP with libwebp’s decoder and AVIF with libavif’s decoder. Those decoders differ from the browser’s, so the colour numbers include that difference too.
- Figures: the same crop from each tool output, enlarged with nearest-neighbour scaling, saved as lossless WebP. The byte and PSNR labels are for the whole file.
What we didn’t test
- Lossless WebP: Pixlune’s converters don’t offer it.
- Page load time and Largest Contentful Paint (LCP).
- Other quality scores such as SSIM, and how the images look to people.
- SVG and animated images (GIF, animated WebP).
- Other encoders, such as server plugins or image editing apps, and other machines.
- PSNR for images with transparency.
- More files: 2 to 5 per image type is a small sample.
Questions
Is WebP smaller than PNG?
No. In our test (3 files), WebP 75 was larger than the PNG from Compress PNG for the logo (63.6 KB against 46.2 KB) and smaller for the icon and the cut-out. Try your own file with PNG to WebP and compare the sizes.
Does AVIF keep transparency?
The format supports an alpha channel (AVIF specification). In our test (3 files), the AVIF files kept transparency, but at quality 75 the alpha value changed in 96,069 pixels of the logo and 8,902 pixels of the icon; the cut-out’s alpha was unchanged.