Image SEO: How to Optimise Images for Google Images, Lens and Discover
A practical image SEO guide: file names, alt text, formats, compression, responsive images, lazy loading, image sitemaps and ranking in Google Images.

On this page
- Image SEO at a glance
- Why image search matters for businesses
- Use original photos wherever you can
- File names, alt text and captions
- Formats, compression and dimensions
- Responsive images
- Lazy loading done right
- Put images on the page the right way
- Image sitemaps and structured data
- Google Lens and product images
- Featured images, Discover and link previews
- Common mistakes, and how to check your results
- Quick check: three image checks
- When to get help
- FAQs
- Original photos with descriptive file names, natural alt text and relevant nearby text are far more likely to appear in Google Images and Lens than stock images.
- Use real image elements in modern formats, compressed and sized responsively with width and height set, and never lazy-load the main image at the top of the page.
- Add images to your sitemap through an SEO plugin, set a strong featured image for Discover and link previews, and track image clicks in Search Console.
Image SEO means helping search engines find, understand and show your images, so they appear in Google Images, Google Lens and image-rich results and bring visitors to your site. It overlaps with speed, because heavy images slow pages down, and that side is covered in our guide to image optimisation for WordPress. This guide covers both halves briefly and focuses on what makes images findable.
Need WebP versions of your images? The free image converter turns PNG and JPG into WebP in batches, right in your browser.
Image SEO at a glance
| Element | What to do | Why it matters |
|---|---|---|
| Photo choice | Use original photos where you can | Unique images have a better chance of being shown |
| File name | A few descriptive words with hyphens | A small clue to what the image shows |
| Alt text | A short, natural description | Accessibility, and a key signal for Google |
| Nearby text | Place images beside related headings and captions | Gives the image context |
| Format and size | WebP or AVIF, compressed, responsive sizes | Faster pages and better Core Web Vitals |
| Markup | Real image tags, width and height set, sensible lazy loading | Google can index them and the layout doesn't jump |
| Discovery | Images in your sitemap, stable URLs | Google finds and keeps your images |
Why image search matters for businesses
People search with pictures more than many business owners realise. A shopper photographs a lamp in a cafe with Google Lens and looks for where to buy it. Someone planning a home browses Google Images for "modular kitchen design" and clicks through to the interior designer whose photos they liked. A patient checks what a clinic looks like before visiting. Image search matters most for visual businesses such as interiors, furniture, fashion, jewellery, food, products, real estate, events and travel, but any business with real photos of its work can benefit.
Use original photos wherever you can
Stock photos appear on thousands of websites, so Google has little reason to show yours, and a Lens search on a stock image usually leads to someone else's page. Original photos of your products, projects, team and premises are unique to you and more convincing to customers. See stock photos vs real photos and our guide to preparing photos for your website.
File names, alt text and captions
File names
Rename files before uploading. teak-dining-table-6-seater.webp tells Google far more than IMG_20260914.jpg. Use a few descriptive words separated by hyphens, and don't stuff your city and every keyword into each name.
Alt text
Alt text is read aloud by screen readers, and Google uses it as an important clue to what an image shows. Describe the image in a short, natural phrase:
- Good: "Rooftop solar panels on a warehouse in Pune"
- Weak: "solar" or "image1"
- Bad: "solar panels solar company Pune best solar installer Pune"
A few more rules that help:
- Don't start with "image of" or "photo of"; screen readers already announce it as an image
- For product variants, describe the difference: "Blue cotton kurta, side view"
- For a linked image, such as a logo linking to the homepage, describe where the link goes
- Purely decorative images, such as background shapes and divider icons, can have empty alt text
In WordPress, alt text is set in the media library and reused wherever the image appears, so check it still makes sense on each page.
Captions and surrounding text
Google also reads the text around an image: the heading above it, the paragraph beside it and any caption. Place images next to the text they relate to, and add captions where they help readers, such as a project name, a product name or what a before-and-after comparison shows.
Formats, compression and dimensions
- Photos: WebP is usually the best balance of quality and file size, and AVIF can be smaller still; JPEG is a safe fallback
- Graphics with transparency: PNG or WebP
- Logos and icons: SVG stays sharp at any size
- Compression: compress every upload, ideally automatically; see image compression plugins compared
- Dimensions: resize to roughly the largest size the image is shown at, rather than uploading straight from a camera or phone
Google can index JPEG, PNG, WebP, GIF, SVG, BMP and AVIF, so format is mostly a speed decision rather than a ranking one. Always set width and height on images (WordPress does this for images inserted normally) so the page doesn't jump as they load; see fixing layout shift.
Responsive images
Responsive images let the browser pick a smaller file on a phone and a larger one on a desktop screen. WordPress creates several sizes of every upload and adds them to the image tag automatically, so a phone doesn't download a 2,000-pixel image to show it 400 pixels wide. Problems usually come from page builders or themes that always load the full-size original, or from images added as CSS backgrounds. Check with your browser's developer tools: if the file downloaded on a phone is much larger than its displayed size, the setup needs fixing.
Lazy loading done right
Lazy loading delays images further down the page until the visitor scrolls near them, which saves data and speeds up the first view. WordPress adds native lazy loading automatically, and that's search-friendly. Two cautions:
- Don't lazy-load the main image at the top of the page. It's often the Largest Contentful Paint element, and delaying it slows your score. Recent WordPress versions try to skip it, but builders and plugins can override that; see fixing LCP
- Avoid script-only galleries that load images only after a click or swipe, because search engines may never see them
A well-marked-up image looks like this:
<img src="teak-dining-table-6-seater.webp" alt="Six-seater teak dining table in a bright dining room" width="1200" height="800" loading="lazy">
Our guide to lazy loading explained goes into more detail.
Put images on the page the right way
- Use real image elements. Google indexes images added with standard HTML image tags, but not images set as CSS backgrounds. Page builders often create banners with background images. That's fine for decoration, but photos you want found should be inserted as normal images.
- Use sharp, good-quality images. Tiny, blurry thumbnails rarely do well. Serve a large enough version and let responsive sizes keep files small on phones.
- Keep image URLs stable. Changing image addresses during a migration or redesign means Google has to rediscover them, so keep file paths where you can and plan redirects where you can't.
Image sitemaps and structured data
An image sitemap lists the images on each page, helping Google discover images it might otherwise miss.
- WordPress's built-in sitemap doesn't list images, but popular SEO plugins can include them in your page and post sitemaps. Check your plugin's settings.
- Google now only uses the image location from image sitemaps. Older tags for captions, titles and licences were deprecated, so there's no benefit in filling them in.
- Submit your sitemap in Search Console and check it for errors. See XML sitemaps explained.
Structured data helps too. Product, article and recipe markup include an image property that can make your image eligible for richer results, and photographers can add licence details through structured data or photo metadata so Google Images can show a "Licensable" label. See schema markup explained.
Google Lens and product images
- Show products clearly: one main product per image, good light and an uncluttered background, plus a few in-use shots
- Photograph products from several angles, because people will photograph them from any angle
- Add Product schema with price and availability to product pages; most WooCommerce SEO setups can generate this
- For online stores, submit products to Google Merchant Center so they can appear in Google's shopping results. See Google Merchant Center for WooCommerce.
Featured images, Discover and link previews
Search results, Google Discover and WhatsApp link previews often show a thumbnail next to your page. Set a relevant featured image and social sharing image on every important page, ideally at least 1,200 pixels wide and not just your logo. Allow large image previews (WordPress does by default, but check your SEO plugin hasn't changed it), and avoid text-heavy graphics as the main image, as they look poor when shrunk. See Google Discover for small business websites.
Common mistakes, and how to check your results
- Thin attachment pages: older WordPress sites can have a nearly empty page for every uploaded image; SEO plugins can redirect them
- Blocking image folders in robots.txt, which stops Google indexing your images
- Blank or copied alt text across whole galleries
- Important text inside images, such as prices or service lists, which screen readers can't read
- Large watermarks across the product; a small corner logo is fine
To see whether your work is paying off, open Search Console's Performance report and switch the search type to Image. Look for pages with plenty of impressions but few clicks, and improve their images, alt text and surrounding content.
Quick check: three image checks
- Run the page through PageSpeed Insights (pagespeed.web.dev) and read the Mobile tab first and look for Improve image delivery or properly sized image suggestions.
- In WordPress, open Media > Library, switch to list view and check that key images have meaningful alt text.
- In Google Search Console, open Performance > Search results, change Search type to Image and see which pages get image impressions.
For the wording itself, see how to write meta titles and descriptions that get clicks.
When to get help
Get help when images slow the site, when hundreds of products lack alt text, or when image search impressions never turn into visits. WordPress SEO services covers this kind of work, with a written scope before anything starts. You can also send the details through the contact form.
FAQs
Does alt text help SEO?
Yes. Google uses alt text, along with the page content and file name, to understand an image. It's also essential for visitors using screen readers, so write it for them first.
How long should alt text be?
There's no fixed limit. A short phrase or one sentence that describes what matters in the image is usually enough. Long keyword lists help nobody.
Is WebP better for SEO than JPEG?
Not directly. Google indexes both. WebP files are usually smaller, which makes pages faster, and that helps visitors and Core Web Vitals.
Does the image title attribute matter?
It has little known value for search. Spend the effort on alt text, file names and the text around the image.
Why aren't my images showing in Google Images?
Common causes are CSS background images, blocked image folders, script-only galleries, stock photos that appear on many other sites, or pages that aren't indexed. Check the page with URL Inspection in Search Console first.
Can Google read text inside images?
Google Lens can often recognise text in images, but don't rely on it for search. Put important words such as product names, prices and services in real text on the page.
Need help with your website?
I'm a freelance WordPress developer building fast, SEO-friendly websites since 2020. Tell me what you need and I'll reply with a plan and a fixed quote, usually within 24 hours.


