Skip to content
Wololo
Menu
Language:English

Guides

How to compress images for the web

Images are usually the heaviest part of a web page, and heavy pages load slowly, especially on mobile. Compressing them properly is one of the easiest and most effective improvements you can make to your website or online shop.

Published

Why image weight matters

A photo straight off a phone weighs between 3 and 10 MB. If you upload it as it is, every visitor has to download all of it, even if it’s shown in an 800-pixel slot. Multiply that by ten photos on a page and you get a site that takes seconds to appear on mobile data.

Speed affects the experience of the people visiting your site and also how search engines rate it: Google measures loading speed as part of its assessment of page experience.

Step 1: reduce the dimensions

This saves the most, by far. A 4000-pixel-wide photo shown on a 1920-pixel screen wastes more than half its pixels, and on an 800-pixel product page, the vast majority. Since the number of pixels grows with the square of the side, halving the width leaves a quarter of the image.

As a guide: 1920 px on the long side for full-screen images, 1200 px for images within an article, and 800 px or less for thumbnails and product pages. If your site shows images on high-density screens, you can go a bit higher.

Step 2: choose the format

For photos on the web, WebP is today’s practical choice: every current browser displays it, and it’s considerably smaller than JPG at similar quality. AVIF compresses even further, at the cost of slower encoding. For logos, icons and screenshots with text, use PNG or, better still, SVG if you have the logo in vector format.

Step 3: adjust the quality

In lossy formats, the quality setting decides how much detail is discarded. Between 70 and 80% the difference from the original is very hard to see on screen and the file is a fraction of the size. Below 50%, blocks and halos start to appear, especially in skies and gradients.

At 70% quality without resizing, savings of 50% to 80% are typical. If you also reduce the dimensions, savings can exceed 90%.

How to do it with Wololo

Wololo’s compress image tool does all three steps at once and in batches, inside your browser, without uploading your photos.

  • Add all the images you want to slim down.
  • Choose the output format (WebP, JPG or AVIF) and the quality, which defaults to 70%.
  • In the options, cap the size, for example at 1920 px on the long side.
  • Convert, compare the new weight and download them all together in a ZIP.

Common mistakes

  • Compressing the original and losing it: always keep an uncompressed copy of important photos. Lost quality can’t be recovered.
  • Recompressing an already compressed image: each pass degrades it a little more. Always start from the original.
  • Using PNG for photos: they weigh far more without looking any better.
  • Forgetting metadata: phone photos can carry the GPS location. Wololo removes it by default, which also saves a few kilobytes per image.

Check the result

Before replacing the images on your site, open one of the compressed ones at 100% and look at it next to the original. Pay attention to the tricky areas: skies, gradients, skin and small text. If you see no difference there, you can try a slightly lower quality; if blocks or halos appear, raise the quality a few points. A couple of tests will find the sweet spot for your kind of photos.

If you only want to change the size

Sometimes the image is already well compressed and the only thing to spare is pixels. In that case, the “Resize image” tool changes the dimensions without touching the format. It’s also useful when a platform demands an exact size, such as a profile picture or a product thumbnail.

Tools in this guide

Related guides