Image SEO

On this page 7

Image SEO is the discipline within technical SEO that makes images discoverable, crawlable, indexable and fast, so that search engines understand what each image shows and can rank it in image search, visual search and the main results. It covers the file itself, the HTML that embeds it and the page context that surrounds it.

Well-optimized images serve two goals at once. They earn traffic from image search and visual discovery features, and they improve page experience because properly sized and compressed files load faster, which affects Largest Contentful Paint on image-heavy pages.

How search engines discover and interpret images

Search engines find images by crawling the HTML of a page and following image references, mainly the src and srcset attributes of the img element. Images referenced only through CSS background properties are generally not indexed as standalone images, so any image that carries meaning should be a real img element.

Once an image is fetched, the engine combines several signals to interpret it. Computer vision models analyze the pixels, but the strongest textual evidence still comes from the alt attribute, the file name, the caption, nearby text and the title and topic of the hosting page. An image is ranked largely through the relevance and authority of the page that contains it.

The table below summarizes the main signals and how strongly each one influences image understanding.

SignalWhere it livesRelative influence
Alt textalt attribute of the img elementHigh
Surrounding textParagraphs and headings near the imageHigh
Page title and topicTitle element and main contentHigh
Captionfigcaption or visible text belowMedium
File nameImage URL pathLow to medium
Structured dataJSON-LD on the pageFeature-dependent
Signals used to interpret an image

Images can also be discovered through an image sitemap, which lists image URLs under each page entry. This helps when images are loaded by JavaScript or hosted on a content delivery network with a different hostname, situations in which plain crawling may miss them.

Image formats, compression and file size

The choice of format determines file size, visual quality and browser support, and it is the single largest lever for image performance. Modern formats such as WebP and AVIF typically produce files 25 to 50 percent smaller than an equivalent JPEG at similar perceived quality, although the exact saving depends on the content and the encoder settings.

FormatBest forCompressionNotes
JPEGPhotographsLossyUniversal support, no transparency
PNGScreenshots, flat graphicsLosslessLarge for photos
WebPPhotos and graphicsLossy or losslessBroad support, transparency
AVIFPhotos at small sizesLossy or losslessSmallest files, slower encoding
SVGLogos, icons, diagramsVectorScales without loss
Common web image formats compared

Compression level should be set by visual inspection rather than a fixed rule. A quality setting between about 70 and 85 usually gives a good balance for lossy photographs. Serving the image at its actual display dimensions matters as much as the format: a 4000-pixel original scaled down in the browser wastes bandwidth and slows rendering.

Responsive images solve this by offering several widths through srcset and sizes, so the browser downloads the smallest file that still looks sharp on the device. The picture element adds format negotiation, delivering AVIF or WebP to browsers that support them and a JPEG fallback to the rest.

Markup and on-page elements for image SEO

Correct markup tells search engines what an image depicts and tells browsers how to load it without layout problems. The essential elements are well established and inexpensive to implement.

  • Descriptive alt text that states what the image shows in roughly 5 to 15 words, written for screen reader users first, with keywords only where they describe the image naturally.
  • Explicit width and height attributes, which let the browser reserve space and prevent Cumulative Layout Shift.
  • Native lazy loading with loading="lazy" for images below the fold, never for the main hero image.
  • Fetch priority with fetchpriority="high" on the image most likely to be the Largest Contentful Paint element.
  • Descriptive file names with hyphens, such as red-trail-running-shoe.webp, instead of camera defaults.

Structured data extends image visibility into rich results. Product, Recipe, Article and VideoObject markup all accept an image property, and images supplied there may appear in rich results and merchant listings. License metadata, either through IPTC fields or structured data, can add a licensable badge in image search.

Image SEO overlaps with several neighboring practices in technical SEO but has a distinct scope: the visibility of images as search assets. The comparison below clarifies the boundaries.

PracticePrimary goalOverlap with image SEO
Image SEORank and index imagesNot applicable
Video SEORank and index videoThumbnails and sitemaps
Page experienceFast, stable pagesImage weight and layout shift
JavaScript SEORender client-side contentLazy-loaded image discovery
Site migrationPreserve rankings on changeRedirecting image URLs
How image SEO relates to neighboring practices

A frequent oversight occurs during site migrations, when image URLs change without redirects. The images then lose their accumulated image search rankings and backlinks, even when the page redirects are handled correctly with a 301 redirect.

Common image SEO mistakes and how to fix them

Most image problems are systematic rather than isolated, because templates and content management systems apply the same behavior to thousands of files. The table lists typical failures found in technical audits.

SymptomLikely causeFix
Images missing from image searchBlocked by robots.txt or CSS backgroundsAllow crawling, use img elements
Slow Largest Contentful PaintOversized or lazy-loaded hero imageResize, preload, remove lazy loading
High layout shiftMissing width and heightDeclare dimensions or aspect ratio
Empty or generic alt textTemplate default valuesWrite image-specific descriptions
Lost image rankings after redesignChanged URLs without redirectsRedirect old image URLs
Typical problems, causes and fixes

Keyword stuffing in alt text is a persistent misconception. It harms accessibility, offers little ranking benefit and can be treated as spam. Another risk is relying on lazy-loading scripts that hide the real image URL in a data attribute, which can prevent indexing if rendering fails.

The simple explanation

Search engines cannot look at a picture the way a person does, so they rely on clues. Image SEO means giving them clear clues and making the picture quick to load.

The clues are a short written description of the image, a sensible file name and relevant text around it. Speed comes from saving the picture in a modern format at the size it is actually shown. Clear description plus small file is the essence: people can then find the picture in search, and the page opens faster for everyone.

How it is used in practice

An online retailer selling outdoor equipment notices that its product pages load slowly on mobile and that its products rarely appear in image search. An audit finds 3000-pixel JPEG photos averaging 1.8 MB each, file names such as IMG_4471.jpg and alt text copied from the product name for every gallery image.

The team converts the catalog to AVIF with WebP and JPEG fallbacks, serves four widths through srcset, adds width and height attributes and writes distinct alt text for each angle, such as front view, sole detail and side profile. The main product photo receives high fetch priority, and gallery images below it are lazy-loaded. An image sitemap is generated for the CDN hostname.

Average image weight falls to about 180 KB, Largest Contentful Paint moves into the good range of under 2.5 seconds for most product pages, and over the following months impressions from image search grow steadily as the new files are crawled and indexed.