Click the button to start speaking...

Optimising images for websites: complete guide

Updated 27th November 2026

Images play a crucial role in website design, enhancing user experience and engagement. However, unoptimised images can slow down your site, negatively impacting SEO and usability.

Properly optimising images ensures your website loads quickly, improves accessibility, and ranks better in search engines.

Why is image optimisation important?

The case for optimising images starts with speed: large, uncompressed files slow your website down, and slow pages mean poor user experiences and higher bounce rates. Speed feeds straight into SEO too - optimised images contribute to good Core Web Vitals, and search engines prioritise fast-loading websites.

It's not only about machines, though. Visitors expect smooth browsing, and fast-loading images are a quiet but constant part of that experience. And properly written alt text makes your images accessible to visually impaired users, keeping your website on the right side of accessibility guidelines at the same time.

Guide to optimising images for websites

1. Image dimensions

Choosing the right dimensions keeps your site lean without sacrificing quality. As a rule of thumb, full-width banner images need no more than 1920 pixels across, standard inline images do their job at a maximum width of around 800 pixels, and thumbnails only need 150-300 pixels depending on how they're used. Uploading anything much larger just makes every visitor download bulk they'll never see.

2. Choose the right file format

Selecting the correct file format helps balance quality and file size:

  • JPEG - best for photographs, thanks to high-quality compression.
  • PNG - use for graphics, logos, or images requiring transparency.
  • WebP - ideal for modern browsers, offering better compression without losing quality.
  • SVG - best for vector graphics like icons and logos, scaling to any size without losing quality.

3. Resize images

Resizing before upload ensures images are never larger than they need to be. Photoshop's 'Export As' gives you precise control over size and quality, while free online tools like ResizeImage.net or PicResize handle quick, easy resizing when you don't have design software to hand.

4. Compress images

Compression shrinks file size without noticeable quality loss, and there's no shortage of good tools. For one-off jobs, online compressors like TinyPNG, Squoosh and Optimizilla take seconds. If your site runs on WordPress, plugins such as Smush, ShortPixel and EWWW Image Optimizer will compress automatically on upload - set one up once and every future image is handled for you.

5. Optimise file naming

A clear, keyword-rich file name improves SEO. Instead of 'IMG1234.jpg', use 'beach-sunset-holiday.jpg' - it tells search engines what the image shows and makes it far more discoverable in image search.

6. Add alt text

Alt text improves SEO by describing the image content, and it's read aloud by screen readers, making your images accessible to visually impaired visitors. Keep it descriptive and natural - 'A sunset over a beach with palm trees' does the job for both audiences at once.

7. Test image optimisation

Once your images are optimised, check the results. Google PageSpeed Insights flags oversized images and wider performance issues, while GTmetrix identifies uncompressed images affecting your site speed. A quick test after any batch of uploads keeps standards from slipping.

FAQs for optimising images

What's the best image format for websites?

JPEG is ideal for photos, PNG for graphics, WebP for modern browsers, and SVG for scalable vector graphics.

How do I reduce image size without losing quality?

Use compression tools like TinyPNG or Squoosh to shrink file size while preserving image clarity.

Does image size affect SEO?

Yes, large images slow down your website, which can negatively impact search rankings.

What is alt text, and why is it important?

Alt text describes an image for screen readers and search engines, improving accessibility and SEO.

How often should I test my website's images?

Regularly check images using Google PageSpeed Insights or GTmetrix to ensure they are properly optimised.

Rather someone else handled it?

Image optimisation is part of our website support, alongside updates, security and performance work.

Share article

Written by
Jess Davis

Atelier Studios senior team member portrait

Part of Atelier Digital