Web development

Image optimisation

Image optimisation is reducing image file sizes and serving images in the right format and dimensions, without visible quality loss, so pages load faster and images rank in search.

Images are often the heaviest part of a web page. A single unoptimised photo straight from a camera can be larger than the rest of the page combined.

In more detail

Key techniques include compressing images, using modern formats such as WebP and AVIF, serving different sizes for different screens with srcset, setting width and height to prevent layout shift, lazy loading images below the fold and preloading the main hero image. For search, descriptive file names, alt text, relevant surrounding text and image sitemaps help images appear in Google Images and AI answers. Many hosts and frameworks automate much of this.

Why it matters

Optimised images improve LCP and page speed, reduce data costs for mobile users and open another source of search traffic.

Example

An online jewellery store converts product images from 2 MB JPEGs to 120 KB WebP files at the right sizes. Product pages load twice as fast, and mobile conversion rate rises.

FAQ

Image optimisation: quick answers

What is the best image format for the web?

WebP and AVIF usually give the best compression. JPEG and PNG remain useful fallbacks.

Does image file name matter for SEO?

Slightly. Descriptive names help search engines understand images, alongside alt text and context.

Free audit

Find out where you stand in search and AI answers.

Get a free audit of your SEO, AI visibility and email setup. We send a short, specific report with the three changes that would move the needle most.