What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

Images embedded via the CSS 'background-image' attribute are generally not detected for Google Images. Google focuses on the img tag with its src attribute, the picture element, or direct links to image files. To be indexed, an image must use these standard methods.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 22/03/2022 ✂ 15 statements
Watch on YouTube →
Other statements from this video 14
  1. Google choisit-il vraiment les titres de page indépendamment de la requête de l'utilisateur ?
  2. Changer un nom de ville suffit-il à créer des doorway pages condamnables par Google ?
  3. Faut-il vraiment centraliser son contenu compétitif plutôt que le dupliquer ?
  4. Découvert mais non indexé : Google n'a-t-il vraiment jamais crawlé ces pages ?
  5. Pourquoi Google refuse-t-il d'indexer un site techniquement parfait ?
  6. Faut-il vraiment faire confiance aux recommandations de vos outils SEO ?
  7. Faut-il encore corriger les redirections cassées longtemps après une migration ?
  8. Passer d'un ccTLD à un gTLD suffit-il pour conquérir de nouveaux marchés internationaux ?
  9. Sous-domaine ou sous-répertoire : Google a-t-il vraiment une préférence ?
  10. Pourquoi les clics par page et par requête diffèrent-ils dans Search Console ?
  11. Les erreurs de données structurées bloquent-elles vraiment l'indexation de vos pages ?
  12. Le maillage interne révèle-t-il vraiment l'importance de vos pages à Google ?
  13. L'attribut target des liens a-t-il un impact sur le référencement Google ?
  14. Faut-il vraiment supprimer tous les breadcrumbs schema sauf un pour éviter la confusion ?
📅
Official statement from (4 years ago)
TL;DR

Google does not index images embedded via CSS background-image for Google Images. Only <img> tags, <picture> elements, and direct links to image files are detected and considered. If you want an image to appear in image search results, it must use a standard HTML method.

What you need to understand

What is the technical difference between an img tag and a CSS background-image?

The tag is a semantic HTML element designed to display visual content. It has a src attribute that points to the image file, an alt attribute for text description, and can be enriched with structured data. Google considers it as content in its own right.

The CSS background-image, on the other hand, falls under graphical presentation. It's a style property applied to an element to modify its visual appearance. No alt tag, no clear semantics — just decoration from the engine's perspective.

Does Google really crawl CSS to detect images?

Yes, Google analyzes CSS files and can technically detect image URLs within them. But — and this is where it gets tricky — this technical capability doesn't mean indexing for Google Images.

The crawler identifies these resources for rendering reasons (particularly for PageSpeed Insights or mobile evaluation), but they are not processed as image content eligible for visual indexing.

Why this distinction between content images and presentation images?

Google seeks to index images that carry information, not decorative elements. A product photo in an e-commerce listing? Content. A gradient background or graphical pattern in the background? Pure presentation.

The tag sends a clear signal: "this is an important image with context and description". The background-image says: "this decorates the page". And Google respects this logic.

  • CSS background-image images are not indexed for Google Images
  • Only standard HTML methods (, , direct links) are considered
  • Google can crawl CSS but does not treat these images as content
  • The distinction is based on semantics: content vs. presentation
  • The absence of an alt attribute on background-images makes them ineligible for indexing

SEO Expert opinion

Is this rule absolute or are there exceptions observed in practice?

In the field, this rule is verified almost systematically. Crawl audits show that images in background-image never appear in Google Images, even on massively crawled sites with significant crawl budgets.

However, note: this limitation concerns only Google Images. For the visual rendering of the page (Core Web Vitals, mobile evaluation), Google loads and analyzes these CSS images perfectly. They therefore impact LCP if they are large, even if they are not indexed.

What nuances should be added to this Mueller statement?

Mueller speaks of images "generally" not detected — which leaves room for interpretation. Let's be honest: in practice, we've never observed a reliable exception. The "generally" is probably a legal precaution rather than a hint at special cases.

A rarely mentioned point: direct links to image files are mentioned as a valid method. Concretely? A simple link in content can be enough to get an image indexed, even without an img tag. Useful for lightweight galleries or downloads.

Does this limitation impact other SEO aspects beyond Google Images?

Indirectly, yes. An image in background-image cannot carry structured data (schema.org ImageObject type, for example). It also cannot benefit from an alt attribute, which weakens accessibility and deprives Google of a valuable contextual text signal.

For e-commerce sites or portfolios, this is a potential blind spot: if your product visuals are in CSS, you lose a non-negligible source of qualified traffic. [To be verified]: some SEO professionals argue that Google could one day analyze the visual context around a background-image via AI — but no official confirmation to date.

Practical impact and recommendations

What should you do concretely on your existing pages?

Audit your templates and identify all important images displayed via background-image. Useful tools: DOM inspection in DevTools, Screaming Frog crawl in "JavaScript Rendering" mode, or manual CSS analysis.

For each image you want indexed in Google Images, replace the background-image with an or tag with a relevant descriptive alt attribute. If the image is purely decorative and has no SEO value, leave it in CSS — no problem.

How to handle design constraints that impose a background-image?

Common case: a full-width hero visual with overlaid text. Pragmatic solution: use an tag in absolute position or with object-fit: cover, then position the text on top in relative/absolute.

More modern alternative: the element with multiple responsive sources. You keep visual control while remaining semantically sound. And bonus: you can add an alt attribute and structured data.

What errors should you avoid when migrating to img tags?

Don't duplicate the image by keeping both the background-image and a hidden tag (display:none or opacity:0). Google detects this type of manipulation and could ignore the image, or even apply a penalty for deceptive content.

Another trap: forgetting to fill in the alt attribute after migration. An img tag without alt is technically indexable, but you lose a valuable contextual signal. Write concise, descriptive alt text, not keyword stuffing.

  • Identify all images in background-image with SEO value (products, portfolios, editorial content)
  • Replace them with or tags with src and alt attributes properly set
  • Verify that the visual rendering remains identical after migration (object-fit, position, z-index)
  • Add ImageObject structured data if relevant (products, recipes, articles)
  • Check in Google Search Console that new images are properly detected ("Images" report)
  • Never hide an tag in CSS just to work around the rule — Google detects it
  • Optimize image weight (WebP, lazy loading) to not degrade Core Web Vitals
If your images have SEO value — products, editorial visuals, portfolios — they must absolutely use or . CSS background-image remains acceptable for purely decorative elements with no interest to Google Images. This migration may seem technical, especially on complex sites or advanced JavaScript frameworks. If you identify many blocking points or want assistance restructuring your templates without breaking design, consulting a specialized SEO agency can save you time and secure implementation.

❓ Frequently Asked Questions

Une image en background-image CSS impacte-t-elle le positionnement général de ma page ?
Non, elle n'impacte pas directement le SEO textuel ou le positionnement global. En revanche, elle ne sera pas indexée dans Google Images, ce qui vous fait perdre une source de trafic potentiel. Et si elle est lourde, elle peut affecter le LCP et donc les Core Web Vitals.
Peut-on utiliser un lazy loading sur des images en background-image ?
Oui, techniquement via JavaScript (Intersection Observer). Mais comme ces images ne sont de toute façon pas indexées, privilégiez plutôt des balises <img> avec l'attribut loading="lazy" natif, qui combine performance et indexabilité.
Les images en background-image sont-elles prises en compte pour l'accessibilité ?
Non, elles ne peuvent pas porter d'attribut alt et sont invisibles pour les lecteurs d'écran. Si l'image porte une information essentielle, elle doit absolument être en <img> avec un alt descriptif.
Un lien direct vers une image (balise <a>) suffit-il pour l'indexer dans Google Images ?
Oui, Mueller mentionne explicitement que les liens directs vers des fichiers image sont une méthode valide. C'est moins optimal qu'une balise <img> (pas d'alt, pas de contexte visuel immédiat), mais ça fonctionne.
Faut-il supprimer tous les background-image de mon site pour le SEO ?
Absolument pas. Si une image est purement décorative (motifs, dégradés, effets visuels) et n'a aucune valeur pour Google Images, elle peut rester en background-image sans problème. Seules les images à valeur SEO doivent migrer vers <img>.
🏷 Related Topics
Domain Age & History Crawl & Indexing AI & SEO Images & Videos Links & Backlinks PDF & Files

🎥 From the same video 14

Other SEO insights extracted from this same Google Search Central video · published on 22/03/2022

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.