Creative agency glossarySEO and Analytics

Image Sitemap

An image sitemap is an XML file, or a set of image entries inside a regular sitemap, that tells search engines which images a site wants indexed and which pages they belong to.

What is an image sitemap?

An image sitemap is a sitemap for pictures. A standard XML sitemap lists a site's pages; an image sitemap adds, for each page, the images on it that the site wants Google to find. It uses an image extension to the sitemap format, so each page entry can carry one or many image entries, and it can be a separate file or folded into the main sitemap. Older versions of the format also allowed a caption, a title and a geographic location per image; Google now reads only the image location.

Its purpose is discovery. Google finds most images by crawling pages, but images that are loaded by script, delivered through a gallery or served from a separate domain can be missed, and the sitemap is how a site points at them directly.

Why it matters

Why an image sitemap matters

It matters for sites where images are the content. A photographer's portfolio, a product catalog, a lookbook, a stock library or a music video archive has thousands of images that each deserve to be found in image search, and image search is a real source of traffic for exactly those businesses. For a brand whose pictures get copied, it also helps establish that the original lives on the brand's own site.

For an ordinary site it matters less. A company site with a few hundred images in plain HTML will be crawled fine without one, and the sitemap adds nothing except a tidier Search Console report.

In practice

How an image sitemap works in practice

  1. 01

    Most content management systems generate it. WordPress with an SEO plugin, Shopify and the major e-commerce platforms all produce image entries in their sitemaps automatically, and the job is to check that they are enabled and that the images they list are the real ones rather than thumbnails or placeholders. For custom sites the sitemap is generated from the database: a list of pages, and for each page the full-size URL of each image that matters. The file is submitted in Search Console and referenced in robots.txt.

  2. 02

    The sitemap works alongside the rest of image SEO rather than replacing it. Each listed image still needs a descriptive filename, alt text on the page where it appears, and a page that is itself indexable. A sitemap pointing at images on noindexed pages or behind a login achieves nothing.

Watch out

What people get wrong about image sitemaps

Expecting it to rank images. A sitemap helps Google find pictures; it does not make them rank, and an image on a weak page stays on a weak page. The other mistake is listing everything, including icons, decorative backgrounds and the twelve generated sizes of each photograph, which buries the images that matter under noise. The third is blocking the image directory in robots.txt while listing it in the sitemap, which happens more often than it should and makes the sitemap pointless. Check the two against each other whenever either one changes.

Questions

People also ask

Do I need a separate image sitemap?

Not necessarily. Image entries can be added to the pages in your regular XML sitemap, which is what most platforms do. A separate file makes sense on very large sites where the combined sitemap would exceed the size limits.

Does an image sitemap improve rankings?

It improves discovery, not ranking. Images that Google could not otherwise find become eligible for image search, which is valuable for photography-heavy sites. The ranking of those images still depends on the page, the alt text and the usual signals.

Can I include images hosted on another domain?

Yes. Image URLs in a sitemap can point to a CDN or another domain you control, as long as Google is allowed to crawl them there. This is one of the main reasons image sitemaps exist.

Next to it in the glossary

  1. Holistic SEOHolistic SEO is an approach to search that treats the whole site as the thing being ranked: content, technical health, user experience, authority and brand, worked on together rather than as separate tricks.
  2. HreflangHreflang is an HTML attribute that tells search engines which language and region each version of a page is meant for, so the right version is shown to the right searcher.
  3. Image OptimizationImage optimization is the work of making the pictures on a website as small, fast and well described as they can be without losing the quality the brand needs.
  4. Inbound LinksAn inbound link is a link from another website to yours, and the number and quality of them is one of the strongest signals search engines use to judge a site's authority.
  5. IndexThe index is the database in which a search engine stores the pages it has crawled and understood, and only pages in the index can appear in search results.
  6. Index BloatIndex bloat is what happens when a search engine indexes far more pages from a site than have any value, so the pages that matter are diluted by pages that do not.

Every SEO and Analytics term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage