Skip to content
SEO & AI Search

Image SEO: How to Optimise Images for Google, Step by Step

Image SEO step by step: file names, alt text examples, WebP and AVIF, compression, lazy loading, captions and image sitemaps, based on Google's advice.

ParvesFounder and Creative DirectorUpdated 6 min read
Image SEO: How to Optimise Images for Google, Step by Step

Quick answer

Image SEO means making images easy for Google to find, understand and load. Use original images with descriptive file names, write alt text that describes the image in plain words, serve WebP or AVIF at the size they are shown, lazy load images below the fold, place them near relevant text with captions, and list important ones in your sitemap.

Images are usually the heaviest part of a web page, and often the least looked after. Done badly, they slow your site down and tell Google nothing. Done well, image SEO helps your pages rank, earns traffic from Google Images and makes your site faster for every visitor.

This guide follows Google's own image SEO best practices and turns them into steps you can apply to any website, from WordPress to Shopify to a custom build.

Step 1: Use original images wherever you can

The most valuable images are ones nobody else has: your products, your work, your premises, your team. Google can only show one copy of a stock photo in image results, and thousands of sites use the same ones.

For service businesses, photograph real projects. For e-commerce, shoot every product properly. Our guide to product photography for e-commerce covers the basics, and product photography lighting setups shows how to get clean results with simple equipment.

Step 2: Name the file before you upload it

Rename files on your computer before uploading. Google says a descriptive file name gives it light clues about what an image shows.

Avoid Use instead
IMG_20261103_4821.jpg gold-foil-rice-packaging-5kg.webp
final-final-2.png dental-clinic-reception-chennai.webp
banner.jpg cnc-laser-cutting-acrylic-signboard.webp

Use lowercase, separate words with hyphens, keep it short and accurate. Do not stuff keywords into file names.

Step 3: Write alt text that describes the image

Alt text is the text a screen reader speaks aloud and the text Google reads to understand an image. Google calls it the most important attribute for image information.

Good alt text describes what is actually in the picture, in a short sentence, with the context that matters on that page.

Three 5 kg bags of Naga's Gold Premium Ponni Rice, one gold and two maroon
Packaging we designed for Naga's Gold. Alt text for this image: Three 5 kg bags of Naga's Gold Premium Ponni Rice, one gold and two maroon. Photo: The Coral Flow.

For the image above, here is how different alt text compares:

Quality Alt text
Missing (no alt attribute)
Too vague rice
Keyword stuffed rice packaging design rice bag design best rice packaging chennai
Good Three 5 kg bags of Naga's Gold Premium Ponni Rice, one gold and two maroon

A few rules:

  • Describe, do not sell. "Black office chair with mesh back" beats "best ergonomic chair buy now".
  • Keep it under about 125 characters so screen readers do not cut it off.
  • Skip "image of" or "photo of". The screen reader already says it is an image.
  • Use empty alt (alt="") for purely decorative images like background shapes, so screen readers skip them.
  • Do not repeat the caption word for word if there is one right below.

Step 4: Choose the right format

Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF images. For most websites today:

Format Use it for
AVIF Photos, when your site or CDN can produce it. Usually the smallest files.
WebP Photos and graphics. Small files and very wide browser support.
SVG Logos, icons and simple illustrations. Sharp at any size.
PNG Screenshots or graphics that need exact transparency, when WebP is not possible
JPEG A fallback for very old systems

On this website, our images are stored as WebP and served as AVIF or WebP automatically, depending on what each visitor's browser supports. Most modern platforms can do something similar with the right settings or plugin.

Step 5: Resize and compress

The most common mistake we see: a 5,000 pixel photo straight from a phone, uploaded to show at 600 pixels wide.

  1. Resize to the largest size it is actually shown. A blog image shown 800 pixels wide rarely needs to be more than 1,600 pixels wide (twice the size, for sharp screens).
  2. Compress. Tools like Squoosh, TinyPNG, or your platform's built-in optimiser can cut file size by more than half with no visible loss.
  3. Use responsive images. The srcset attribute lets the browser download a small file on phones and a larger one on desktops. WordPress and most modern frameworks add it automatically.

As a rough target, keep most content images under 200 KB and hero images under 400 KB.

Step 6: Load images the right way

  • Lazy load images below the first screen with loading="lazy", so the page appears faster.
  • Never lazy load the main hero image. It is often the Largest Contentful Paint element, and delaying it hurts your Core Web Vitals.
  • Set width and height (or an aspect ratio) on every image so the page does not jump while images load. That jumping is counted as layout shift.

Our Core Web Vitals guide explains these scores, and how to speed up a WordPress website covers the platform most of our readers use.

Step 7: Put images next to the text they belong to

Google uses the text around an image, including headings and captions, to understand it. An image of a kitchen renovation placed in a paragraph about kitchen renovations is far easier to understand than the same image in a generic gallery.

  • Place images close to the paragraph they illustrate.
  • Add a caption when it helps the reader. Captions are among the most read text on any page.
  • Use the image's main subject in the nearby heading or paragraph, naturally.

Step 8: Help Google find your images

  • Use standard <img> tags with a src attribute. Images loaded only through CSS backgrounds are not indexed as images.
  • Do not block image folders in robots.txt.
  • List important images in your sitemap. Google supports image entries in sitemaps, which helps it discover images it might otherwise miss.
  • Add structured data where it applies, such as product, recipe or article images. Our schema markup guide shows how.

Step 9: Check your work

Once a month:

  1. Open Google Search Console, go to Performance, and change Search type to Image to see which images bring traffic.
  2. Run your key pages through PageSpeed Insights and look for image warnings such as "Properly size images" or "Serve images in next-gen formats".
  3. Browse your site with images turned off, or use a screen reader, and check that every meaningful image still makes sense through its alt text.

A quick image SEO checklist

  • Original image where possible
  • Descriptive, hyphenated file name
  • Accurate alt text, under about 125 characters
  • WebP or AVIF, resized to its display size
  • Compressed, with responsive sizes
  • Width and height set
  • Lazy loaded if below the first screen, not if it is the hero
  • Placed near related text, with a caption where useful
  • Included in the sitemap if it matters for search

Images are one part of on-page SEO. For the rest, from titles to headings to links, see our on-page SEO checklist. And if you would like your whole site's images, speed and on-page signals fixed in one go, our SEO services team can audit and optimise them for you.

Work with us

SEO Services from The Coral Flow

Get a free SEO health check. Share your website. We send a recorded walkthrough of your top technical issues and the keywords you are closest to winning.

Check my SEO

Frequently asked questions

Does alt text help SEO?

Yes. Google calls alt text the most important attribute for giving it information about an image, and it also helps people using screen readers. Describe the image accurately instead of repeating keywords.

Should I use WebP or AVIF?

Both are supported by Google Search and modern browsers. AVIF is usually smaller at the same quality, WebP is faster to encode and very widely supported. Many sites serve AVIF first with WebP as the fallback.

Do image file names matter?

A little. Google says file names give it light clues about the subject, so a name like red-silk-saree-front.webp is better than IMG_4821.jpg. Alt text and the text around the image matter more.

Should every image be lazy loaded?

No. Lazy load images below the first screen. The main image at the top of a page, often the largest element, should load immediately, or it will slow down your Largest Contentful Paint score.

Can stock photos hurt SEO?

They do not cause a penalty, but they add little. The same stock photo appears on thousands of sites, so it gives Google no unique information and earns no image search traffic. Original photos of your work, team and products are worth more.

Written by

Parves, Founder and Creative Director

Leads strategy and creative direction at The Coral Flow in Chennai, across web, search and content for brands in India and abroad.

About the author

Share this guide

Let's talk

Want us to do this for you?

Tell us what you are working on. We reply within one working day with honest advice and next steps.