--- title: "Image and video sitemap extensions" category: seo status: optional url: https://webspecification.com/spec/seo/image-sitemaps/ updated: "2026-05-29T09:13:20.000Z" sources: - title: "Image sitemaps" url: "https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps" publisher: "Google Search Central" - title: "Video sitemaps and alternatives" url: "https://developers.google.com/search/docs/crawling-indexing/sitemaps/video-sitemaps" publisher: "Google Search Central" - title: "Sitemaps XML format" url: "https://www.sitemaps.org/protocol.html" publisher: "sitemaps.org" source_repo: undefined licence: CC-BY-4.0 --- # Image and video sitemap extensions > Optional XML extensions that add image and video metadata to sitemap entries. Useful when media is loaded by JavaScript or hosted on a CDN that crawlers cannot reach by following links. ## What it is Sitemaps support extensions for declaring images and videos associated with each page. They use additional XML namespaces alongside the standard `urlset`. ```xml https://example.com/articles/csp https://cdn.example.com/csp-hero.jpg https://cdn.example.com/csp-diagram.png ``` The video extension is similar (`xmlns:video`) and supports more metadata: `title`, `description`, `thumbnail_loc`, `content_loc`, and `player_loc`. ## Why it matters Crawlers normally find images by parsing the HTML of pages they fetch. That is usually enough. The extensions only earn their keep when: - **Media is loaded by JavaScript** and not in the initial HTML. - **Media lives on a different host** (a CDN or media subdomain) that crawlers do not visit independently. - **You publish a lot of original photography or video** and want crawlers to discover updates quickly. For most marketing sites, plain `` and `