Skip to content
Free website migration on every plan, done by our team.Learn more ›
Performance

Image optimisation: the quickest speed win for most sites

How to optimise website images: choose WebP or AVIF, resize to the display size, compress, lazy-load below the fold and always set width and height.

Short answer: Resize images to the size they're displayed at, save them as WebP or AVIF, compress them, lazy-load anything below the first screen and always set width and height. On most sites this cuts page weight more than any other single change.

Why images matter

Images are usually the heaviest part of a page. A single unedited phone photo can weigh more than the rest of the page combined, and it slows the main content (LCP) on mobile networks. See Core Web Vitals.

The five rules

  1. Resize first. If an image shows at 800 pixels wide, don't upload a 4000-pixel original.
  2. Use modern formats. WebP is widely supported and much smaller than JPEG for the same quality; AVIF is smaller still.
  3. Compress. A quality setting around 70 to 80 is usually invisible to the eye.
  4. Lazy-load below the fold. Images further down the page load only when needed. Never lazy-load the main hero image.
  5. Set width and height. It reserves space so the layout doesn't jump.

Responsive images

Serve smaller files to phones and larger ones to desktops using srcset. WordPress creates several sizes automatically when you upload.

Tools

  • Image optimisation plugins for WordPress that convert to WebP automatically.
  • Free web tools to compress images before upload.
  • Your theme's settings to control image sizes.

A quick audit

Run PageSpeed Insights and look for "Properly size images" and "Serve images in next-gen formats". Fix the biggest files first.

Frequently asked questions

Will compression make my images look bad?

Not at sensible settings. Compare before and after at actual display size.

Is PNG ever better?

For simple graphics with sharp edges or transparency, PNG or SVG can be best. Use WebP for photos.

Should I use a CDN for images?

If your visitors are far from your server, yes. See what a CDN is.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.