Image SEO: How to Optimise Photos Without Slowing Your Site

A practical routine for preparing website photos: format, size, compression, file names, alt text and loading, so images help your SEO instead of slowing the page.

Quick answer

Good image SEO means photos are the right format, resized to the size shown on screen, compressed, sensibly named and described with honest alt text. Lazy-load images further down the page but never your main hero image, and set width and height so the layout does not jump. Done well, images support rankings without dragging your speed down.

Optimising images means getting them to the right format, size and weight, naming and describing them sensibly, and loading them in the right order. Done properly, photos help you show up in search and make your pages feel quicker. Done badly, one oversized gallery can slow a whole site. Here is a routine you can follow image by image.

1. Choose the right format

For ordinary photos, JPEG is a perfectly good choice. A modern format such as WebP is usually smaller at similar visual quality, and Google supports it, so use it if your website platform can create it automatically. Keep PNG for logos, icons and graphics that need sharp edges or a transparent background.

Format matters less than the next step. A well-handled JPEG will beat a badly handled WebP.

2. Resize to the size on screen

This is the mistake we see most. Phones and cameras produce very large photos, and they get uploaded untouched. The browser still downloads all of it, then shrinks it to fit a column.

Say a Halswell landscaper uploads twenty project photos straight from a phone to a gallery page. Each is displayed as a thumbnail and then in a lightbox. Resize each to the largest size it actually appears at, with a little spare for sharper screens. Check your theme's settings or ask your developer what the real display width is. Many platforms generate several sizes and serve the right one, but you still have to avoid starting with a huge original. Project galleries matter a great deal for these trades, and SEO for builders and landscapers looks at them more closely.

3. Compress before you upload

After resizing, compress. Free tools and many website plugins do this, trading a little detail for a smaller file. Zoom in on the result at the size shown. If it looks clean, stop there. Heavy compression produces visible blockiness and halos around edges, which makes your work look worse. Do not compress the same file repeatedly, since each round loses quality. Keep the untouched original in a separate folder, so you can export a fresh copy later if you need a different size, rather than re-compressing a copy of a copy. A simple habit like this saves a lot of rework when the website is redesigned.

4. Name files and write alt text for people

Rename files before uploading. "halswell-retaining-wall-timber.jpg" is more useful than "IMG_4471.jpg", and separate words with hyphens.

Alt text is a short description of the image for people who cannot see it, such as screen reader users, and for search engines. Write it as you would to a friend on the phone: "Timber retaining wall with garden steps in Halswell". Describe what is in the picture. Do not cram in keywords like "landscaper Christchurch best landscaping". Google's own advice is to be descriptive and useful, not stuffed. Decorative images that add nothing can have empty alt text.

Context counts too. Google uses the text around an image, such as a caption or the heading above it, to understand what it shows. A project photo placed next to a short paragraph about the job tells Google far more than a wall of unlabelled thumbnails. Use real photos of your own work where you can, since stock images say nothing about your business.

Keep important words out of images. Opening hours or prices set inside a graphic cannot be read by Google or screen readers, so put them in real text as well.

5. Lazy-load the gallery, not the hero

Lazy-loading means an image only downloads when the visitor scrolls near it. It is excellent for long galleries and below-the-fold photos, and most platforms offer it as a setting.

Do not lazy-load the large image at the top of the page. It is usually the biggest thing on screen, and Core Web Vitals measures how fast that largest element appears (Largest Contentful Paint, where web.dev recommends 2.5 seconds or less). Delaying it makes that number worse.

6. Set width and height so the page does not jump

Have you ever started reading a page and had it lurch downwards as an image loaded? That is layout shift, measured by Cumulative Layout Shift, where web.dev suggests staying at 0.1 or under. The fix is to give each image a width and height in the page code so the browser reserves the space. Most themes do this automatically, but older or custom themes may not. Ask your developer to check.

7. Test the page and know what to expect

Open the page in PageSpeed Insights and read the image recommendations: oversized images, missing dimensions and next-generation formats are all listed. Then view the page on a phone, since mobile is where heavy images hurt most. That also ties to how Google indexes the mobile version of your pages. An SEO audit covers the same checks across the whole site.

Image work will not rescue a page that has little useful content, and it will not guarantee a better position. Its job is to avoid wasting speed and to give Google clear information. For the broader picture, see how site speed affects your customers and the rest of the technical SEO checklist. If you run a shop, e-commerce SEO adds product-image points on top of these.

If you would like a list of exactly which images are slowing your pages, our SEO audits include a speed and image review, or book a free SEO audit and we will start with your heaviest pages.

Want help with this? I write a one-off audit with a prioritised action plan and talk you through it.

SEO audits   Get a free SEO review

Stu Clark

Written by Stu Clark
Former plumber with 15 years in the trade, 10 of them running his own business in Cheltenham, UK, before founding EightySix Digital. I run every SEO engagement myself. More about me.

Common questions

Does alt text help rankings?

Alt text helps Google understand what an image shows, which matters for image search, and it is essential for people using screen readers. Write it for them first. Stuffing in keywords does not help and can make the page worse to use.

What image format should I use?

JPEG is fine for photos. Modern formats such as WebP are usually smaller at similar quality, and Google supports them, so they are worth using if your platform handles them. Use PNG only where you need transparency or crisp graphics.

Should I lazy-load every image?

No. Lazy-load images further down the page, but not the main image at the top, because that is usually the biggest thing on screen and delaying it makes the page feel slower. The main hero image should load as soon as possible.

How big should my images be?

Roughly the size they are displayed on the page, allowing a little extra for sharper screens. There is no single perfect number, because it depends on your layout. A photo shown in a column about 800 pixels wide does not need to be thousands of pixels wide.