5 Tips on How to Optimise Your Images and Why It's Important
Mar 2, 2022
4 min read
Updated: Nov 4
Image optimisation means making every image as small as it can be without looking worse, then serving it in a suitable format, at a suitable size, with a clear description. It helps pages load faster and helps search engines work out what your pictures show. The five tips below cover the changes that matter most, and the section after them explains why they are worth the effort.

1. Compress Images Before You Upload Them
Compression shrinks a file by removing data. Lossy compression discards detail the eye is unlikely to miss, which is how a JPEG ends up far smaller than the photo it came from, while lossless compression keeps every pixel intact but saves less space. The aim is the smallest file that still looks right at the size visitors will see, so judge the result at that size rather than zoomed in.
For photographs, quality settings of roughly 75 to 85 per cent are usually hard to tell apart from the original on screen, though it is worth checking each image. A free browser tool such as ImageCompressor lets you move a quality slider and compare before and after, and it processes files in your browser rather than uploading them anywhere. Keep an untouched original and compress a copy, because each time a lossy file is re-saved it loses a little more quality.
2. Choose the Right File Format
No single format suits every image, so match the format to what the picture shows:
JPEG suits photographs and works everywhere.
WebP handles photographs and graphics, supports transparency and animation, and is typically 25 to 35 per cent smaller than JPEG at similar visual quality.
AVIF is the newest widely used format, introduced in 2019, and is built for strong compression.
PNG keeps sharp edges and transparency for logos and icons, but its files are usually much larger than the same picture saved as a JPEG or WebP.
SVG is drawn from shapes rather than pixels, so it stays small and sharp at any size, which makes it the usual choice for logos, icons and simple diagrams.
Google Search can index BMP, GIF, JPEG, PNG, WebP, SVG and AVIF images, and it recommends that the file extension matches the format. If you want to serve WebP or AVIF, the HTML picture element lets you list those first and fall back to a JPEG or PNG for any browser that cannot show them, as Google's image guidance explains.
3. Resize Images and Match the Size to the Screen
Check the width an image is displayed at, then upload it at that width, or up to twice that width if you want it to stay sharp on high-density phone and laptop screens. A 4,000-pixel-wide photo in an 800-pixel slot makes every visitor download pixels the browser then throws away.
Different screens need different sizes. The srcset and sizes attributes let you offer several versions of the same image, so a phone downloads a small file and a large monitor gets a bigger one. Google advises always including a standard src as a fallback, because some browsers and crawlers do not read srcset. Export web images in the RGB colour space (sRGB is the web standard), since CMYK is meant for print and CMYK files can show the wrong colours in a browser.
4. Load Images in the Right Order
Two small habits stop a page from feeling slow. First, add loading="lazy" to images further down the page, so the browser only fetches them when the visitor scrolls near, but leave it off the main image at the top. That image is often the one that decides the page's Largest Contentful Paint (LCP), which measures how long the largest image, text block or video in view takes to appear. web.dev counts 2.5 seconds or less as good, measured at the 75th percentile of page loads. Lazy-loading the main image only delays the moment you are being measured on, so load it straight away and add fetchpriority="high".
Second, set width and height attributes on every image. The browser then reserves the space before the file arrives, and the text does not jump down the page as pictures load.
5. Describe Every Image: File Names, Alt Text and Context
Search engines read the clues around an image as well as the image itself. Google's guidance points to three of them:
File name. Keep it short and descriptive, such as my-new-black-kitten.jpg rather than IMG00023.JPG. Generic names like image1.jpg tell nobody anything.
Alt text. Google calls it the most important attribute for giving an image metadata. Describe what the picture shows in plain language, for example "Dalmatian puppy playing fetch", and avoid stuffing it with keywords. It also tells people using screen readers, or on slow connections, what the image contains. Purely decorative images can carry empty alt text so screen readers skip them.
Nearby text. Place the image beside copy that relates to it. Google does not index CSS background images, so use a standard HTML image element for any picture you want found.
The same basics help your pictures turn up in other image search engines too.
Why Is Image Optimisation Important?
Images are usually the heaviest thing on a page. In HTTP Archive's Web Almanac 2025, the median mobile home page carried 911 KB of images and the median desktop home page 1,058 KB, more than any other file type. Inner pages were lighter, at 354 KB on mobile and 442 KB on desktop.
Heavy pages load more slowly, especially on phones and weaker connections, and a slow main image is what pushes a page past the 2.5-second LCP mark. Google's own guidance says images are often the largest contributor to page size, and it tells site owners to apply current image optimisation and responsive image techniques.
Optimised images also work harder in search. Google says sharp images look better as thumbnails in results and can increase the likelihood of traffic, and well-labelled images are easier for Google Images and Discover to find. Alt text and sensible file sizes help visitors too, particularly anyone using a screen reader or a slow mobile connection.
Google reads the text around an image to understand it, so the copy beside your pictures matters as much as the files themselves. If you would like that copy written with search in mind, our content writing service can help.
Other Great Articles



