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.
| Signal | Where it lives | Relative influence |
|---|---|---|
| Alt text | alt attribute of the img element | High |
| Surrounding text | Paragraphs and headings near the image | High |
| Page title and topic | Title element and main content | High |
| Caption | figcaption or visible text below | Medium |
| File name | Image URL path | Low to medium |
| Structured data | JSON-LD on the page | Feature-dependent |
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.
| Format | Best for | Compression | Notes |
|---|---|---|---|
| JPEG | Photographs | Lossy | Universal support, no transparency |
| PNG | Screenshots, flat graphics | Lossless | Large for photos |
| WebP | Photos and graphics | Lossy or lossless | Broad support, transparency |
| AVIF | Photos at small sizes | Lossy or lossless | Smallest files, slower encoding |
| SVG | Logos, icons, diagrams | Vector | Scales without loss |
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 compared with related technical practices
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.
| Practice | Primary goal | Overlap with image SEO |
|---|---|---|
| Image SEO | Rank and index images | Not applicable |
| Video SEO | Rank and index video | Thumbnails and sitemaps |
| Page experience | Fast, stable pages | Image weight and layout shift |
| JavaScript SEO | Render client-side content | Lazy-loaded image discovery |
| Site migration | Preserve rankings on change | Redirecting image URLs |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Images missing from image search | Blocked by robots.txt or CSS backgrounds | Allow crawling, use img elements |
| Slow Largest Contentful Paint | Oversized or lazy-loaded hero image | Resize, preload, remove lazy loading |
| High layout shift | Missing width and height | Declare dimensions or aspect ratio |
| Empty or generic alt text | Template default values | Write image-specific descriptions |
| Lost image rankings after redesign | Changed URLs without redirects | Redirect old image URLs |
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.