Images make pages more engaging and can bring extra traffic from Google Images and visual search. They also affect accessibility and page speed, which influence rankings and conversions. Optimising images well takes a few minutes per page. This guide covers the image SEO steps I apply on every site.
Why image SEO matters
Search engines cannot see images the way people do, so they rely on file names, alt text, surrounding text and structured data to understand them. Well-described images can appear in Google Images, image packs within normal results and visual search tools such as Google Lens.
Images also affect page experience. Large, unoptimised images are a leading cause of slow pages, and slow pages rank and convert worse.
Use original images where possible
Original photos of your work, team, products and premises are more useful and trustworthy than stock images used on thousands of sites. They help your pages stand out and show real experience, which supports E-E-A-T.
Stock photos have their place, but use them sparingly. Diagrams, charts and screenshots that explain your content are especially valuable.
- Original imagesReal work and products
- File namesDescriptive, hyphenated
- Alt textDescribe, do not stuff
- CompressedResized, WebP or AVIF
- ResponsiveSrcset and dimensions
- Social image1200 by 630
Descriptive file names
Rename images before uploading with descriptive, hyphenated file names, such as oak-dining-table-six-seater.jpg instead of IMG_4832.jpg. File names give search engines a small extra clue and make your media library easier to manage.
Keep names concise and accurate. Avoid stuffing keywords into file names.
Write useful alt text
Alt text describes the image for people using screen readers and for search engines. Describe what the image shows in a short sentence or phrase, including relevant context. For a product, include key attributes; for a team photo, who is shown and what they are doing.
Do not start with ‘image of’. Do not stuff keywords. Decorative images, such as background patterns, can have empty alt attributes so screen readers skip them.
Surrounding text and captions
Search engines also use the text near an image to understand it. Place images close to the content they illustrate, and use captions where they help readers. Captions are often read more than body text.
Headings and paragraphs around an image should be relevant to it. An image of a WooCommerce dashboard in an article about WooCommerce settings is well placed.
Compress and resize
Resize images to the largest size they are displayed at, and compress them to reduce file size without visible quality loss. Image optimisation plugins and tools automate this. See image optimization for WooCommerce.
Large images slow pages and hurt Core Web Vitals, especially LCP. A hero image should be optimised carefully, as it is often the largest element.
Use modern formats
WebP and AVIF produce smaller files than JPEG and PNG at similar quality. Most optimisation plugins and Shopify’s CDN serve these formats automatically to supporting browsers. Use SVG for logos and icons. See WebP vs AVIF vs JPEG.
Keep JPEG or PNG versions for social sharing images and email, where support for modern formats varies.
Responsive images and lazy loading
Use srcset so browsers download appropriately sized images for each screen. WordPress and Shopify themes do this automatically for most images. Lazy-load images below the fold, but not the main image at the top of the page. See lazy loading images.
Set width and height attributes to prevent layout shift as images load.
Structured data and image sitemaps
Structured data such as Product, Article and Recipe can include images, which helps them appear in rich results. SEO plugins include images in your XML sitemap, helping search engines discover them.
For product images, make sure Product schema includes high-quality images in supported formats. See schema markup in WordPress.
Open Graph images
Open Graph images are shown when pages are shared on social media and messaging apps. Set a relevant, attractive image for important pages using your SEO plugin’s social settings. A recommended size is around 1200 by 630 pixels.
A good social image increases clicks from shared links and makes your brand look professional.
Image search and Google Lens
Google Images can bring traffic for products, designs, recipes, travel and how-to content. High-quality, original images with good context have the best chance. Visual search tools let people search with photos, which benefits products with distinctive appearances.
Check Search Console’s Performance report filtered by Image search type to see how your images perform.
Accessibility and legal considerations
Alt text is not only an SEO tactic; it is an accessibility requirement under many laws and standards for public websites. Images that contain text, such as banners with offers, should include that text in the alt attribute or, better, in real HTML text so everyone can read it and search engines can index it.
Make sure you have the right to use every image. Using photos found online without a licence can lead to copyright claims. Keep records of licences for stock images and permissions for customer photos, and credit photographers where your licence requires it.
Getting help
Image optimisation is part of my speed optimization service and on-page work in my SEO services. For a full page checklist, see my on-page SEO checklist.
For e-commerce, also read e-commerce SEO.
Key takeaways
- Use original images with descriptive file names and alt text.
- Compress, resize and serve modern formats like WebP.
- Place images near relevant text and use captions where helpful.
- Do not lazy-load the main image; set dimensions on all images.
Frequently asked questions
How long should alt text be?
Usually a short phrase or sentence, enough to describe the image clearly.
Do decorative images need alt text?
They should have empty alt attributes so screen readers skip them.
Does image file name affect SEO?
Slightly. Descriptive names give search engines a small extra clue.
Are stock photos bad for SEO?
Not harmful, but original images are more useful and distinctive.
What size should images be?
The largest size they are displayed at, compressed and in modern formats.
How do I see image search traffic?
In Search Console's Performance report, filter search type to Image.
