Estimated reading time : 5 min · Published
Choose an image that represents the page
Connect the main photo to the actual subject and avoid recycling it across a list of different pages. A card should visually anticipate its destination. Check the subject survives mobile and sharing crops.
For a product or case study, show several useful views instead of one generic image. The image preparation guide covers rights, placements and variants.
- Subject matches the page.
- Distinct visuals within a list.
- Mobile and sharing crops checked.
Provide accessible context
Use an HTML image with a stable URL, descriptive name and alternative text suited to its role. Fictional example: a restored door photo is cropped to show only its handle; that variant’s alternative should describe the remaining visible detail. Nearby text and captions provide context and provenance. Keep empty alt text for decoration without information and avoid unrelated keywords.
Google image guidance gives alt text and page context a central role. Stuffing keywords into alt text makes reading worse and does not explain the photo.
Separate file discovery, page context and thumbnail preference. Google can discover an image through img and its src attribute; an image placed only in CSS background styling is not indexed as an image through that mechanism. With picture and srcset, retain an img with a fallback src URL. Nearby text and the alternative should explain the subject actually visible.
To express a preferred image, Google documents primaryImageOfPage and og:image among other options. Choose a representative visual rather than systematically naming the site’s generic logo. max-image-preview:large permits a large preview but guarantees neither selection of that file nor appearance in results. Check crawler access, served file, metadata and preview rules separately before attributing a mismatch to missing keywords.
- Image present in HTML.
- Alt text fits its purpose.
- Nearby text describes without artificial repetition.
Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.
| Layer checked | Useful question | What the check does not prove |
|---|---|---|
| HTML embedding | Is the file referenced by img and src with a usable fallback? | The right subject or guaranteed indexing. |
| File access | Can the crawler retrieve the real image in a supported format? | Accurate captions or usage rights. |
| Preferred image | Does primaryImageOfPage or og:image represent this page? | That Google must select this thumbnail. |
| Preview permission | Does max-image-preview match the publishing intention? | That allowing a large preview forces it to appear. |
- Google Search Central : Image best practices
Consulted on 22 October 2026; HTML discovery, preferred images and page context.
- Google Search Central : Robots and preview rules
Consulted on 22 October 2026; scope of max-image-preview and crawler access to the rules.
Serve the right file
Prepare display-sized images, responsive variants and declared dimensions to reduce layout shifts. Compress without removing useful detail. Check that the first visible image actually loads on a slow connection.
Do not lock essential information inside the image: embedded text, photographed tables or unexplained screenshots. Embedded metadata can document a genuine credit or licence, but it cannot replace a clear page.
Fictional exercise: within a 1,200 CSS-pixel viewport, an image occupies a 480 CSS-pixel column. For a target density of 2, the indicative file width is 960 pixels, not 2,400. With srcset width descriptors, sizes states the intended display width. A 100vw hint would describe the whole viewport here and could overestimate the actual need.
The 960w descriptor must match the file’s actual width; do not mix w and x descriptors within one srcset. The browser retains discretion according to conditions and available resources. Compare computed width, density and currentSrc with a documented cache state. Use lazy loading where appropriate, without accidentally delaying the essential first-screen image.
- Weight and dimensions checked.
- Variants fit different screens.
- Important information available as text.
Scroll the table horizontally to read every column. With a keyboard, focus the table area and use the arrow keys.
| Viewport in CSS pixels | Slot × target density | Indicative file width |
|---|---|---|
| 360 | 328 × 2 | 656 px; viewport width alone does not give this result |
| 1,200 | 480 × 2 | 960 px; the image occupies only one column |
| 1,920 | 720 × 1.5 | 1,080 px; then check the selected file |
Check the published result
Check the page, image variants and rights information after publication. Fictional example: a project photograph is replaced with an illustration; also update captions, alternatives, sharing previews and translations identifying it as real work. Check file access and intended indexing. An old cached preview may differ; distinguish its refresh from updating the page itself.
Review impressions and clicks by page in available search tools without crediting one field for every change. Fix missing, unloaded or context-free images first.
- Sources and variants accessible.
- Rights and credits accurate.
- Result checked after publication.
Reference documents
- Google image guidance · Source consulted
- W3C WAI : Images Tutorial
- MDN : Responsive images · Source consulted
Content updated on
