Skip to content
Passieon

Image SEO: how Google finds and ranks your pictures

Pictures reach people through Google Images and through the image previews that sit beside regular results. Most of the work is ordinary HTML and clear writing. A few steps are specific to images, and they are easy to skip.

Short answer: Google finds images through ordinary HTML img tags, reads their alt text and the text around them, and chooses which picture from a page to show in results. Use an img tag with a src attribute, write short descriptive alt text, name files plainly, and put each picture near the text it supports. Add an image sitemap when Google cannot find your pictures on its own, and set a preferred image for each page you want shared or shown.

Written by Hamza Rivera. Last reviewed

Hamza works in SEO and GEO/AEO. He writes the Passieon guides and checklists and does the SEO work for the businesses Passieon serves.

Use plain HTML image tags

Google finds images in the src attribute of an img element, including an img inside a picture element. Google does not index images that are set as CSS backgrounds, so a photo placed with a background-image rule may never appear in image search. Compare a plain img tag with an alt attribute to a div that uses a background image and holds the description as text. The first gives Google the file and the meaning. The second gives it very little. Google supports images in BMP, GIF, JPEG, PNG, WebP, SVG and AVIF formats, and the file extension should match the real file type. Inline data URIs are possible, but they can make a page much larger, so use them with care.

Use responsive images with a fallback

Responsive images help people on phones and large screens, and Google can read them, with one condition. Some browsers and crawlers do not understand the srcset attribute or the picture element, so always give the image a fallback src. Google's guidance shows the srcset attribute listing several widths, with a sizes attribute and a src value pointing to one fallback file. When you use the picture element, include an img with a src inside it, so every client has something to load. Test the page after each change, because a broken fallback can hide a picture from both people and crawlers.

Send Google a list with an image sitemap

An image sitemap tells Google about pictures it might not otherwise find, such as images that a script loads on the page. You can add image tags to your existing sitemap or create a separate image sitemap, and Google treats both approaches as equally fine. Each url entry can hold up to 1,000 image tags. Image sitemaps can list images hosted on another domain, which means a content delivery network works as long as you list its image addresses. If you use a CDN, verify the CDN domain in Search Console, so Google can report crawl problems it finds there. In our view, a small site whose pictures sit in plain img tags on crawlable pages does not need an image sitemap. The general rules for sitemaps still apply, and the sitemap guide on this site covers them.

Write alt text that describes the picture

Alt text is the most important extra detail you can give an image. It helps screen reader users and people on slow connections, and Google uses it together with the page content to understand what the picture shows. It is also used as anchor text when an image is a link. Write alt text the way you would describe the picture to someone who cannot see it. Google's own examples show the range. An img with no alt text gives Google nothing. An alt value packed with repeated keywords, such as puppy dog pup puppies cheap dogfood, hurts the reader and can look like spam. A short, accurate alt value such as "Dalmatian puppy playing fetch" does the job. For an inline SVG, use a title element inside the svg, and link it to the element with aria-labelledby. Audit the page with an accessibility checker to check alt text and other accessibility issues across the site.

Name files, captions and titles plainly

Google reads the subject of an image from the page around it, including captions and image titles. The file name gives a light clue as well. Short, descriptive names help, so a file called black-kitten-on-sofa.jpg says more than IMG00023.JPG, and a file called image1.jpg says nothing at all. If your site has thousands of images, automate the naming, and make sure the names stay readable. When you translate a page, translate the file names too, and keep the URL encoding guidelines in mind for non-Latin characters. Place each picture close to the text it illustrates. A picture of a boiler placed beside a paragraph about boiler repair gives Google a clearer signal than the same picture in a footer gallery.

Choose the preferred image for each page

Google picks the image that appears with a result on its own, using several signals. You can steer that choice in three ways: a primaryImageOfPage property in structured data, an image property attached to the main entity of the page, or an og:image meta tag. Google asks for a few things from the chosen image. It should be relevant and representative of the page. Avoid a generic image such as your logo, and avoid an image that carries text inside it, because the text may not read well at thumbnail size. Keep the aspect ratio moderate, since very narrow or very wide images crop badly, and use a high resolution where you can. In our view, set og:image on every page you want shared on social media, because one image tag serves both purposes.

Add image metadata to structured data

Some structured data types can make your pages eligible for a badge in Google Images and a richer result. In each of these types, the image property is required before a page can qualify. Follow Google's general structured data rules as well as the rules for the specific type. If the image property is missing, the page may not qualify, however good the picture is. In our view, test the markup on a live page before you rely on it, and see the structured data guide on this site for the wider rules.

Keep the title and description clear

Google writes the title link and snippet for each result from the page itself, and it uses the title and meta tags as part of that input. Pictures do not replace those signals. A clear title that names the subject of the page helps the picture and the text work together in the result. The titles and snippets guide on this site explains the wider rules for writing those fields.

Make the pictures fast and sharp

Google notes that sharp, high-quality photos appeal to users more than blurry images, and that a sharp picture can stand out in a result thumbnail. Images are often the largest part of a page, so a slow picture can slow the whole page. Compress each file to the size it needs, serve smaller files to small screens with srcset, and in our view, set width and height so the layout does not jump while the page loads. Run PageSpeed Insights on the pages with the most pictures, and treat the image files it flags as a list of work. The Core Web Vitals guide on this site covers the measures that matter most for loading.

Keep one address for each image

If the same image appears on several pages, reference it with the same URL each time. Google can then cache the file and reuse it, without requesting it again for every page. This also helps when you think about crawl budget on a large site, because each extra address for the same file is one more request for Google to make.

Decide whether to allow inline linking

Google Images can show a full-size image on its results page, and sites can opt out of that. To opt out, check the HTTP referrer header on each request for the image. When the request comes from a Google domain, reply with a 200 status and no content, or with a 204 status. Google will still crawl the page and see the image, but it will show a thumbnail made at crawl time. Google says this opt-out is not treated as image cloaking and does not lead to a manual action. You can also block an image from search results altogether. In our view, most sites gain from image search traffic and should leave inline linking on, and the opt-out is for sites that have a specific reason to limit it.

Check image traffic in Search Console

The Performance report in Search Console records data for each search type separately, and image search is one of them. Set the search type filter to image to see clicks and impressions for pictures alone. Watch the image results after a change to alt text, file names or sitemaps, and compare the same period in the previous year, as you would with any drop. In our view, image changes can take a while to show, so review the data over several weeks before you judge a change. The traffic drop guide on this site explains how to read these numbers when something falls.

A short check for every page with pictures

Before you publish a page with pictures, check that each img tag has a src attribute and a short, accurate alt value. Check that the file name is readable and that the picture sits near its supporting text. Confirm that a preferred image is set, that the file is compressed, and that the picture loads at phone width. If the pictures are added by a script, confirm that they appear in an image sitemap. Then check the image search numbers a few weeks later, and record anything you changed, so the next review has a clear trail.

Related help

Sources for technical rules

Google's documentation is the authority for its own search systems. This guide explains the work in our words.

Book a call with us

A 30-minute call in your working hours. Tell us what you sell and where, and we will tell you what we would do first and what it involves. Prefer email? Send your website through the form and the Passieon Team will reply by email.

Book a call

Message us

Message us

Ask anything about your site or where your inquiries are going. It goes straight to a person, not a bot. Leave an email and you get a reply.