Free auditStart free
GuideNext.js · Images

Next.js image SEO

Use the Next.js Image component without losing useful alt text, image URLs, or page context that helps Google discover and understand images.

3 min
read
5
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Use next/image to serve responsive, optimized images, and write alt text that describes the image’s purpose in the page. Google can discover images through HTML <img> elements, but not CSS background images; keep a usable image URL and place it near relevant text. Optimization helps delivery, but it does not make an image relevant or guarantee image search visibility.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Checklist

Describe the image for the page

alt is a required prop of the Next.js Image component, and Next.js documents it as describing the image for screen readers and search engines. Describe what a meaningful image shows in context; Google warns that stuffing alt with keywords gives a poor user experience and may be seen as spam. For decorative images, Next.js says to use an empty string (alt=""). Google also considers the surrounding page content and captions when interpreting an image.
First1
Name important assets descriptively, for example blue-trail-jacket-front.jpg instead of IMG_0042.jpg.
Next1
Put an image near the text that explains it; a product image should sit with the product details it illustrates.
Then1
Use an HTML image, not only a CSS background, when the image carries information or should be discoverable.
Product image with contextual alt text
import Image from 'next/image'

export function ProductPhoto() {
  return (
    <figure>
      <Image
        src="/products/blue-trail-jacket-front.jpg"
        alt="Front view of the blue trail jacket with two chest pockets"
        width={1200}
        height={1500}
        sizes="(max-width: 640px) 100vw, 50vw"
      />
      <figcaption>Blue trail jacket, front view</figcaption>
    </figure>
  )
}
02Image checks for a Next.js page

Keep responsive delivery and image URLs predictable

Next.js Image can produce responsive variants and optimize supported local or remote sources. Set intrinsic dimensions or a supported sizing mode so the browser can reserve space, and provide sizes when the rendered width changes across breakpoints. Without sizes, the browser assumes the image is as wide as the viewport (100vw), which can download an unnecessarily large file. For remote images, configure narrow allowed host patterns in next.config.js. If migrating an existing image implementation, check the rendered src and srcset; changing URLs can trigger new crawls or break external links.
Check

Rendered <img> exists

Why it matters
Google can discover the image URL in HTML image markup
How to verify
Inspect rendered HTML or the browser DOM
Check

Useful alt value

Why it matters
Helps describe the image to screen readers and search systems
How to verify
Read it without the image; does it convey the visual information?
Check

Correct responsive size

Why it matters
Avoids downloading a needlessly large file on small screens
How to verify
Inspect srcset, sizes, and network requests
Check

Stable source URL

Why it matters
Google advises referencing an image with the same URL consistently so it can cache and reuse it
How to verify
Compare old and new src values after deployment

Treat the source image and the optimized response as separate checks. Confirm the Next.js image route returns an image with a successful status, and test remote host allowlists in production where the optimizer runs. If a third-party CDN already resizes images, compare output size and quality before optimizing twice.

03Good to know

Help Google discover images

Google recommends standard HTML image elements and a fallback src when using responsive image markup. If important images are otherwise hard to discover, an image sitemap can expose their URLs; it is an additional discovery path, not an indexing guarantee. In app/sitemap.ts, Next.js sitemap entries accept an images array of URLs for this. Google supports the formats listed in its current image documentation, including AVIF, WebP, JPEG, PNG, GIF, SVG, and BMP.

For related work, see Next.js SEO, alt text, and image SEO.

Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Does next/image improve image SEO automatically?

It can improve image delivery with responsive sizing and optimization, but it does not automatically write meaningful alt text or make an image relevant to a query.

02What should I put in the alt prop?

Describe the meaningful visual information and purpose in context. Keep decorative images empty (alt="") and avoid keyword lists.

03Can Google index CSS background images in Next.js?

Google documents image discovery through HTML image elements and says it does not index CSS images. Use an <img> element for images that matter to the page or image search.

Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  • nextjs.org
  1. 01Image SEO best practices | Google Search Centraldevelopers.google.com · checked 2026-10-24
  2. 02Image component | Next.js Docsnextjs.org · checked 2026-10-24
  3. 03Image optimization | Next.js Docsnextjs.org · checked 2026-10-24
  4. 04Image sitemaps | Google Search Centraldevelopers.google.com · checked 2026-10-24
  5. 05Metadata Files: sitemap.xml | Next.js Docsnextjs.org · checked 2026-10-24
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane