How to Shrink Images for a Faster Website

Images are usually the heaviest part of a web page, and they are also the easiest part to fix. A few minutes spent on each picture before you upload it can make a page load several times faster.

Websites · Updated October 21, 2026

Why image weight matters

A visitor on a phone connection may need several seconds to download a single 4 MB photo. Multiply that by a handful of pictures and the page feels broken. Slow pages lose visitors, and search engines treat loading speed as one signal among many when they rank pages. Lighter images also cost less bandwidth, which matters if your hosting plan has limits.

Step 1: Resize before you compress

The largest saving comes from the pixel size. A photo straight from a phone is often 4000 pixels wide, but a content column on a website is rarely wider than 800 to 1200 pixels. Showing a 4000 pixel picture there makes the visitor download four or five times more data than the screen can display.

As a rule, export images at about the width they are shown, and up to double that for sharp results on high density screens. For a blog column of 800 pixels, an image 1200 to 1600 pixels wide is plenty.

Step 2: Choose the right format

  • Photographs: WebP if your site accepts it, otherwise JPG.
  • Logos, icons and screenshots with text: PNG, or SVG for simple vector logos.
  • Pictures with transparent backgrounds: PNG or WebP.
  • Animations: short video usually beats animated GIF by a wide margin.

Step 3: Compress to a sensible size

Aim for roughly 100 to 200 KB for ordinary article images and up to about 300 KB for a large picture at the top of a page. Many photos reach these sizes with the quality set between 70 and 80, with no difference you could spot at normal viewing size. If a picture is still too heavy, reduce its width a little instead of lowering the quality further.

Step 4: Check the result

  1. View the compressed image at the size it will appear on the page, not zoomed in.
  2. Look at faces, text and edges, where problems show first.
  3. Open the page on your phone and note how fast it loads.
  4. Add up the sizes of all images on the page. A total under 1 MB is a good target for a normal article.

Habits that keep a site fast

Keep the original photos in a separate folder and always compress from the original. Name your files descriptively, such as "blue-ceramic-mug.webp" instead of "IMG_4821.jpg". Write short descriptions in the alt text so that people who use screen readers know what the picture shows. Finally, make compression part of the routine for every image you add, so the site does not slowly get heavier over time.

Special cases

  • Product photos: customers zoom in, so keep a larger version for the product page, and smaller ones for lists and thumbnails.
  • Screenshots in tutorials: PNG keeps text crisp. Crop to the part that matters, because large empty areas add size for no benefit.
  • Background banners: they can use lower quality, because they are often blurred or covered by text.
  • Photos from an iPhone: convert HEIC to JPG or WebP first, because many website builders and browsers will not show HEIC.

Also think about how many images a page really needs. Removing one unnecessary picture saves more than perfecting five others.

Try the tools

More guides