Is it Worth Updating Images from PNG to WebP for Website Performance?

Spend any time building online brands and you will undoubtedly stumble on the need to optimize the performance of your website. One of the things that will drive you bananas is Web Core Vitals. This was the case while working on Trunc (a log management platform) this week, Web Core Vitals was throwing a fit about the PNG images not being in the next-gen formats.

Being the skeptic that I am, I tend to believe most of what we see, and guidance that is pushed, is designed to better serve only one person – the platform pushing it. And at first, this is what I experienced with PNG to WEBP conversions and was all too excited to write an article saying – IT’S A USELESS OPTIMIZATION!!!

But, after diving a bit deeper I was surprised to find that it is not and on average you should expect 81% improvement in image size reduction, and a 70% improvement in network speed. I was a bit shocked by this, so decided to share some of the data in this article.

TLDR; Update Images to Next-Gen formats like WebP

Part 1: Skepticism with Next-Gen Image Formats

I was going through my “lighthouse” tests on a few pages and noticed I was getting dinged for a background image in one of the CTA’s I pushed. It looked like this:

PerezBox | Next Gen | Web Core Vitals Alert

I decided to do a test run focusing on /images/network-bg.png and converting it to a “next-gen” format using webp.

You can see what happened here:

You can see in the image that doing the PNG -> WEBP conversion seemed to have the opposite effect. It increased the size of the image. Not only was the size 5 KB’s bigger, but the speed to download was greater as well:

curl -D - https://trunc.org/images/network-bg.png > /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 85405  100 85405    0     0   304k      0 --:--:-- --:--:-- --:--:--  312k

$ curl -D - https://trunc.org/images/network-bg.webp > /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 89588  100 89588    0     0   474k      0 --:--:-- --:--:-- --:--:--  491k

You can see that the network-bg.webp file took 491 KiB / second to transfer vs the network-bg.png which took 312k. That is 57.3% worse performance. I expected to see Web Core Vitals highlight this difference and get dinged even worse.

That’s not what happened though. You can see in the image below, the notice on network-bg.webp disappeared and it moved onto the next image.

What the heck!!! That’s not supposed to be right. The image is bigger, and it’s slower to download. Why is it now an improvement in terms of “next-gen formats”?

Had to better understand, and thankfully I had a lot of images to test with.

Part 2: Correcting my Skepticism With More Testing

Before going nuts I decided to take a grown approach, a new tactic I’m trying, and decided to test it a bit more. Having so many images loaded it was all about the time to go through the process than anything technical.


This is by no means statistically significant but does show some interesting stats confirming to me that it’s worth converting old formats to next-gen formats like WebP.

I analyzed 41 images and averaged a 81.85% savings in image size (measured in KiB).

ImagePNGWebPImprovement
trunc-logo24387.50%
trunc-google-like-search27774.07%
trunc-dashboard-utilization27581.48%
trunc-dashboard-search4551081.82%
trunc-dashboard-search146882.61%
trunc-category-selection24483.33%
trunc-alertpane811087.65%
trunc-alertpane-customalerts42685.71%
trunc-2fa711283.10%
trunc-results-per-category28871.43%
Trunc-Search-Example11111586.49%
Trunc-Search-Example2991386.87%
Trunc-Search-Example31131685.84%
Trunc-Search-Example41131685.84%
Trunc-Search1191686.55%
Trunc-UserManagement-AddUser42685.71%
Trunc-UserManagement-i65887.69%
Trunc-UserManagement-NewUser31487.10%
TRUNC-BruteForce-WindowsRDP611181.97%
Trunc-SyslogConfiguration842570.24%
trunc-api-creation1091388.07%
trunc-apipage59984.75%
Trunc-Azure-AppPermissions-O365APIs-ii1542683.12%
Trunc-Azure-AppPermissions-O365APIs-iv1703181.76%
Trunc-Azure-AppPermissions-O365APIs2213882.81%
Trunc-Azure-AppPermissions1292282.95%
Trunc-Azure-AppRegistration-NewKeys791383.54%
Trunc-Azure-AppRegistration-NewRegistration811482.72%
Trunc-Azure-AppRegistration-NewSecretAdded1402582.14%
Trunc-Azure-AppRegistration-Registration1553080.65%
Trunc-Azure-AppRegistration-SecretRegistration15473.33%
Trunc-Azure-AppRegistration-Secrets1522881.58%
Trunc-Azure-AppRegistration1863481.72%
Trunc-LinodeEvents32971.88%
Trunc-LinodeIntegration26676.92%
Trunc-LinodeLogs1063269.81%
Trunc-O365-CompliancePage2214679.19%
Trunc-O365-EnableOption-ii631182.54%
Trunc-O365-StartLogging871385.06%
Trunc-O365Integration1031486.41%
Trunc-Search-Example51744971.84%

I then analyzed the download speed of 10 of those images using curl://, similar to the commands I shared in Part I. And was pleasantly surprised when I saw a 71.66% improvement in speed (measured in KiB) after converting to WebP.

ImagePNGWebPImprovement
trunc-logo98,12514,53185.19%
trunc-google-like-search97,32736,46762.53%
trunc-dashboard-utilization84,14526,29068.76%
trunc-dashboard-search4140,00054,48361.08%
trunc-dashboard-search1168,00051,20269.52%
trunc-category-selection100,00025,55174.45%
trunc-alertpane277,00055,15480.09%
trunc-alertpane-customalerts201,00073,40063.48%
trunc-2fa278,00052,93380.96%
trunc-results-per-category174,00051,20270.57%

Yes, Convert to Next-Gen Image Formats

Take the time to convert your images. I still don’t know why the first image created the issue that it did. Testing again continues to yield the same results, so I am not sure. Maybe it has to do with the size of the original, compared to the others?

What I can say is next-gen formats are heavily weighted. Here is the output of converting all the images on the page I was testing (Noticed the Performance measure)

It jumped from an 83 (pictured earlier in the article) to an 89. That was specifically focused on image optimization, converting to WebP for all images loaded on the page.