Just like my article on the meta keywords tag, which Google ignores, you hear all sorts of nonsense about image optimization to improve your Google ranking. At the time I wrote that only one thing mattered: filling in the alt attribute. The essentials remain true, but Google's documentation has evolved since then and it is time to add some nuance.
What Google actually reads in an image
Google does not "see" a photo the way you do. According to its documentation for webmasters, it relies on the page content, the alternative text and computer vision algorithms to understand an image's subject. The alt attribute therefore remains the main lever in your hands, and it stays invisible to your visitors as long as the image displays.
To help your page stand out on your keywords, the first thing to do has not changed:
FILL IN THE IMAGE'S ALT ATTRIBUTE
How to write a useful alt attribute
The best way to optimize this attribute is to describe the image, simply, as you would on the phone to someone who cannot see it. If the page's keyword naturally describes the image, it belongs there; otherwise, there is no need to force it. Google explicitly asks you to avoid stuffing alt attributes with keywords, a practice it classes as keyword stuffing and which can hurt the page.
- To avoid: "cheap running shoes sport shoes race shoes". Nobody talks like that, and Google knows it.
- To prefer: "Pair of blue running shoes seen from the side". A short, descriptive sentence where the keyword falls naturally.
- Purely decorative image (divider line, mood icon): an empty alt, written alt="", so that screen readers skip it without naming it.
- Chart or screenshot: describe what the visual shows, not its form ("visits curve rising after the redesign" rather than "chart").
File name and title attribute: what I had underestimated
I claimed that neither the file name nor the title attribute influenced rankings. For the title, I stand by it. For the file name, Google now says it can give very light clues about the image's subject, and recommends short but descriptive names: a file named after its subject is better than a string of digits straight from the camera. The effect is small, but it costs nothing, especially if you rename files before uploading them.
On a multilingual site, the same advice extends to each language: Google's documentation asks you to translate file names when you localize your images. The copy of a photo used on an English page should therefore carry an English name, not the French name of the original upload.
These two elements mostly help you show up on Google Images; in regular web results, they do not weigh as much for SEO as the text surrounding the image.
The title attribute keeps its original use: displaying a tooltip when the mouse hovers over the image. In the past, some browsers displayed the alt content in this tooltip when the title was missing; this is no longer the case, and the title now only adds an optional detail. Leaving it empty has no consequence.
The text around the image matters as much as the alt
Caption, neighboring paragraph, heading: Google reads all of this to place the image. A photo placed in a page about something else will not rank, whatever its alt. Google's image guidelines ask you to place images near relevant text wherever possible, and they name captions and image titles among the sources it uses to understand the subject: a short caption that says what the photo shows is worth writing. The alternative text can also serve as anchor text when the image is itself a link, which makes it the equivalent of a text link's anchor: describe the destination page rather than the image in that case.
To understand why context weighs so much, see how Google search really works and how to choose your keywords well before placing them in the page.
Accessibility: the reason that goes beyond SEO
The alt attribute was created for people who do not display images: screen reader users, slow connections, an image that fails to load. A well-written alt makes your page understandable to them; SEO is only a happy consequence. Writing for these readers first almost always produces the best possible alt for Google.
What I did not cover: weight, format and Google Images
At the time, I wrote that I would come back to Google Images later. Here is what matters, without going into fine settings:
- Weight: compress each image before uploading it and serve it at the dimensions actually displayed, not at its original size. A slow page hurts the experience, and therefore rankings.
- Lazy loading: enable it for images below the fold, never for the main image at the top of the page, which must appear immediately.
- The sitemap: declare your images in a sitemap so they are discovered even when loaded by script; the method is the one described to create a sitemap and submit it to Google.
- The source: place the image in a standard src attribute; an image injected only as a CSS background is not indexed.
- Formats: Google Search supports images referenced in the src attribute of an img element in BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. Any other format may simply be ignored in image results.
- Responsive images: if you use the picture element or the srcset attribute to serve several sizes, Google recommends always keeping a fallback URL in the src attribute.
Alt, title, file name: your questions about images and SEO
Should every image have an alt?
Yes, all of them: a written alt for images that carry meaning, an empty alt for decorative images. An image with no alt attribute at all is the only truly faulty case.
Is an identical alt on several images a problem?
Google does not apply a penalty, but you miss the chance to describe each visual. If two images show the same thing from two angles, say so in the alt.
Which image formats can Google index?
BMP, GIF, JPEG, PNG, WebP, SVG and AVIF, as long as the image is referenced in the src attribute of an img element. A modern format such as WebP or AVIF is accepted, provided the fallback in src remains.
Does an image set as a CSS background appear in Google Images?
No. Google states that it does not index CSS images: a visual that should be found in search belongs in an img element with its alt, and a CSS background suits only decoration.
Must the keyword appear in every alt?
No. It appears where it honestly describes the image, and nowhere else. Repeating it in every alt amounts to the keyword stuffing that Google advises against.




