XML sitemap
<image:image>
An image carried by a page, declared inside its <url> — the extension that survived while its siblings were cut back.
<image:image> wraps a single required child, <image:loc>, naming the image's URL. Google removed support for the caption, title, licence and geo_location children in 2022; the extension still parses with them and they do nothing.
A <url> may carry up to 1,000 images. They belong inside the <url> whose page shows them, not at the top of the sitemap.
- Format
- XML sitemap
- Namespace
- Google image sitemap extension
- Parent
- <url>
- How many
- Up to 1,000 per <url>.
What our validator does
Extension elements are not inspected: our checks read <url>, <loc> and <lastmod>, so an image block missing its own <loc> passes.
We do not catch this one
The image block has a caption and no <image:loc>, so it names no image at all — and because our checks read only the sitemaps.org elements, it passes exactly like the corrected version below.Broken and fixed
Both documents below are well-formed XML — that is the point of this corpus — and both are run through the validator on every test run. The verdicts here are what it returned, not what we expect it to.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-08-10</lastmod>
<image:image><image:caption>A hen</image:caption></image:image>
</url>
</urlset><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-08-10</lastmod>
<image:image><image:loc>https://example.com/hen.jpg</image:loc></image:image>
</url>
</urlset>Where it reaches
- NamespacesGoogle image sitemap extensionThe namespace URI, and which children still carry meaning.
- ToolsXPath explorerLists every path in the file with its namespace, which is how you check an extension arrived intact.
Related elements
- <url>One entry in a sitemap: a required <loc> plus the optional metadata a crawler may or may not use.
- <video:video>A video on a page: thumbnail, title, description and a location, with the strictest required-child list of any sitemap extension.
- <news:news>The Google News extension: a publication block and a publication date, on URLs from the last two days only.
Get started
Bring order to the XML your team can't afford to ignore.
Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.