Why modern image formats speed up a website

When a website is slow, the cause is usually the images, not the code. On most pages, photos and graphics weigh more than the HTML, CSS, and JavaScript combined. They are still served as JPG and PNG, formats more than 25 years old, even though WebP and the newer AVIF compress much better at the same visual quality.

What WebP and AVIF actually are

WebP was created by Google in 2010 to replace JPG and PNG on the web. It can compress lossy, like JPG, or lossless, like PNG, and every modern browser supports it.

AVIF is newer (2019) and takes its compression from the AV1 video codec. On complex photographs it can beat WebP by another 10-20%, but it takes much longer to encode. Support is already wide, with a few gaps left on older Safari versions and in apps that render images with their own engines (some RSS readers, certain in-app WebViews).

For most sites we'd start with WebP. It gives nearly all of AVIF's benefit without the compatibility problems or the encoding time.

Why image weight matters for speed

A browser has to download every byte of a page before it can show it. If images make up 60-80% of a page's total weight, which is common, they also take 60-80% of the download time. That shows up in LCP (Largest Contentful Paint), the Core Web Vitals metric that measures how long the largest visible element takes to appear, and that element is almost always an image. Google uses LCP as a ranking signal, and it is also the factor that correlates most with visitors leaving before the page finishes loading.

Cutting image weight is the performance fix with the best return for the least work. You don't touch code or design, and every kilobyte you remove is one less to download. To try it, convert your JPG and PNG files to WebP in the browser, with nothing uploaded to a server.

The test: the same batch of images, before and after

To check this with real numbers, we converted a batch of 5 images at sizes a typical website uses: a homepage hero, a blog photo, two product shots, and a thumbnail. We used the same ImageMagick and PowerShell process from the previous article, at quality 82.

ImageTypical useJPG (before)WebP (after)Reduction
HeroHomepage, 1600×900145.2 KB68.1 KB-53%
Blog photoPost, 1200×800138.3 KB70.4 KB-49%
Product 1Listing, 800×60074.6 KB41.4 KB-45%
Product 2Listing, 800×60071.7 KB38.7 KB-46%
ThumbnailGrid item, 400×30022.3 KB14.0 KB-37%
Total—452.0 KB232.6 KB-48.5%
-48.5% total weight 452 KB Before (JPG) 233 KB After (WebP)
Total weight of the same 5-image batch (hero, blog photo, 2 product shots, thumbnail) before and after converting to WebP at quality 82.

What that means in real download time

Here is what that weight difference means at realistic connection speeds. The figures cover transfer time for these images only, without HTML, CSS, JS, or connection latency, which vary by site.

ConnectionBefore (452 KB)After (233 KB)Savings
Congested/slow mobile (15 Mbps)0.25 s0.13 s0.12 s less
Average 5G/LTE+ (150 Mbps)25 ms13 ms12 ms less
Home broadband (500 Mbps)7 ms4 ms3 ms less

On today's connections the difference in download time comes down to milliseconds. The saving is still noticeable with degraded mobile coverage (rural areas, indoors, a congested cell tower at peak hours). It matters most in what the table doesn't measure: a real page has 20 to 50 images, not 5. There the same 48.5% saving adds up, and it also improves LCP and cuts mobile data use and the battery spent on decoding.

How to apply this to your own site

Have WebP images you need as JPG (or the other way around)?
Convert them right in the browser, nothing gets uploaded to any server.
Convert WebP to JPG now

FAQ

WebP or AVIF, which should I use?

For most sites, WebP: it compresses nearly as well as AVIF, every modern browser has supported it for years, and it encodes far faster. AVIF can shave another 10-20% off complex photographs, but it takes longer to encode and some older Safari versions and embedded renderers still have gaps in support.

Do I need a fallback to JPG or PNG?

For a general audience, barely. WebP support is above 97% of browsers in active use. If your site gets traffic from very old systems or specific embedded apps, use a picture tag with JPG as a fallback; for the vast majority of sites it isn't necessary.

Does image weight affect SEO?

Yes, indirectly but really: image weight is usually the biggest driver of a slow LCP, one of the Core Web Vitals Google uses as a ranking signal, and it also correlates directly with bounce rate.

How much smaller can WebP make my images?

In the test in this article, a batch of 5 typical website images went from 452 KB to 233 KB, a 48.5% reduction, at quality 82 with no visible loss. That's a normal range: 25% to 50% depending on the image content.

How do I convert my website's images to WebP?

For large batches, on your own computer with ImageMagick and PowerShell, without spending your host's CPU. For one-off conversions, this site's WebP to JPG converter does the reverse process right in the browser, nothing to install.

← Back to the blog · Batch-convert images to WebP