Your pages can be listed in a sitemap and still leave search engines guessing about the media on them. A standard sitemap entry names a page URL and, optionally, how often it changes and how important it is. It says nothing about the product photograph that carries the page, or the demonstration video visitors come for. Image and video sitemap extensions exist to close that gap: they attach media detail to a page entry inside the same file.

This guide explains what those extensions are, when a site needs them, and how to build the base sitemap with Ovatly's free XML Sitemap Generator, which runs in your browser. One boundary stated up front: the generator builds the standard URL sitemap only. Media extension entries come from a CMS that supports them, or are added by hand.

Contents

  • Quick answer
  • What a standard sitemap actually contains
  • What image and video extensions add
  • When a site needs media extensions, and when it does not
  • How to build the base sitemap, step by step
  • Worked example: a two-page sitemap
  • Limitations and honest boundaries
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

A standard sitemap lists the canonical, indexable pages you want search engines to find, one absolute URL per entry. Build that file first with the XML Sitemap Generator: paste your URLs, optionally apply a change frequency, priority and last-modified date, then upload the result to your domain root. Image and video extensions are a second layer: extra entries, declared under their own namespaces, that describe the important images and videos on a page. Add that layer only where media is a real part of the offer, such as product images or a page built around a video.

What a standard sitemap actually contains

The generator turns a plain list of URLs into a correctly formatted sitemap.xml. The output is a <urlset> holding one <url> block per page. Each block carries the page address in a <loc> element, plus the optional values you chose: a <changefreq>, a <priority> and a <lastmod> date, applied across the whole list, not per page.

Three behaviours of the tool matter here. Entries must be full absolute URLs: a line such as example.com/about, without the protocol, is reported and skipped instead of silently corrupting the file. Special characters in URLs are XML-escaped automatically, so an ampersand becomes &amp;. And the file has size limits: the protocol allows up to 50,000 URLs and 50 MB uncompressed per file, while this tool caps one build at 2,000 URLs and tells you when it trims the list. Larger sites split into several files joined by a sitemap index.

What image and video extensions add

A media extension does not create a separate list of files. It enriches an existing page entry. Alongside the <loc> for a page, an image extension entry records that the page contains specific images worth indexing in their own right, and a video extension entry records that the page contains a specific video and descriptive detail about it. Each extension lives under its own XML namespace declared on the <urlset>, which is why they are called namespaced entries.

That structure has a practical consequence: the media is always described in the context of the page that hosts it. Search engines use the page to judge the media, so an extension entry cannot rescue a thin page or make a decorative banner meaningful. It gives the engine accurate raw material for image and video results, instead of leaving it to guess which images matter.

The Ovatly generator does not write these entries; its output is the standard fields described above. Sites that need media detail usually get it from a CMS or plugin that generates sitemaps with extensions included, or add the entries by hand, keeping the XML well-formed.

When a site needs media extensions, and when it does not

A media extension earns its complexity in two situations. The first is a page whose images are part of the offer: a product page where the photograph is what a shopper is searching for, a gallery, a portfolio. If people plausibly search for the image itself, describing it in the sitemap gives it a fair chance to be found as an image result. The second is a page built around a video: a tutorial, a demonstration, a review. There the video is the content, and the extension tells search engines it exists and what it covers.

The opposite cases are just as common. A blog post with a stock photo, a logo repeated in the header, icons and decorative banners: none of these gain from extension entries. Listing them adds bulk and maintenance without adding discovery value, because nobody is searching for them. A useful test: if the image or video disappeared, would the page lose real value? If not, leave it out.

How to build the base sitemap, step by step

  1. Collect the canonical, indexable page URLs you want found, one per line, including https://. Leave out redirects, noindexed pages and duplicates.
  2. Open the XML Sitemap Generator and paste the list.
  3. Optionally choose a change frequency, a priority and a last-modified date for every URL. Keep the date honest: lastmod counts only when it is consistently accurate.
  4. Check the skipped-lines report and fix any rejected line rather than forcing it in.
  5. Copy or download the generated sitemap.xml, upload it to your domain root, then reference it in robots.txt with a Sitemap: line and in your search console accounts.
  6. If some pages need media detail, add the extension entries through your CMS or by hand, then re-check that the XML still parses before uploading.

Worked example: a two-page sitemap

The tool's own example builds a two-page sitemap from the lines https://example.com/ and https://example.com/about, with change frequency weekly and priority 0.8 selected. The output is a <urlset> where each page appears as a <url> block with its <loc> plus the chosen <changefreq> and <priority> values. A third line, example.com/about without the protocol, would be reported and skipped.

Notice what is not in that output: any mention of images or video. If the about page carried one important photograph, the generator's file would still describe the page only. The photograph's extension entry would be a separate addition, made in the CMS or by hand. That split is normal, and recognising it prevents a common false assumption.

Limitations and honest boundaries

  • The generator produces standard URL entries only: <loc> plus optional <changefreq>, <priority> and <lastmod>, applied across the list, with no per-page settings and no media extension fields.
  • One build holds at most 2,000 URLs; the protocol ceiling is 50,000 URLs and 50 MB uncompressed per file. Beyond that, split the site into several files joined by a sitemap index.
  • Google largely ignores priority and changefreq values, and uses lastmod only when it is consistently accurate, so treat them as hints, not levers.
  • A sitemap is a discovery hint, not a guarantee of indexing, and it does not improve rankings. What happens after discovery depends on the pages themselves.
  • Extension entries describe media. They cannot make a weak page strong or a decorative image worth indexing.

Common mistakes

  • Assuming the generator added media entries. It builds the standard file. Check the output before relying on it.
  • Listing everything. Redirects, noindexed pages and duplicates do not belong in a sitemap, and decorative images do not belong in extension entries.
  • Pasting bare domains. Lines without http:// or https:// are skipped, so a rushed paste quietly drops pages.
  • Setting lastmod carelessly. A date changed on every rebuild regardless of content teaches engines to ignore the field.
  • Breaking the XML while hand editing. One unescaped ampersand or unclosed tag can invalidate the file; the tool escapes characters automatically, your hand edits must too.

FAQs

Where do I put the sitemap file? At the root of the domain it describes, for example https://example.com/sitemap.xml, and reference it in robots.txt with a Sitemap line and in your search console accounts.

Should every page be in the sitemap? List the canonical, indexable pages you want search engines to find. Leave out redirects, noindexed pages and duplicates; the sitemap is a discovery hint, not a guarantee of indexing.

Why was one of my URLs skipped? Entries must be complete absolute URLs starting with http:// or https://. Relative paths and bare domains are reported and excluded so the file stays valid.

Does a sitemap improve rankings? No, it helps discovery and crawling of new or deep pages. Rankings depend on the pages themselves.

How many URLs can one sitemap file hold? The protocol allows up to 50,000 URLs and 50 MB uncompressed per file. This tool enforces a practical cap of 2,000 URLs per build and tells you when it trims the list; split larger sites into several files joined by a sitemap index.

Conclusion

Build the base file cleanly first: absolute URLs, canonical pages only, within the size limits, at the root of the domain. Then judge media honestly. Where an image or a video genuinely carries a page, the extension layer is worth adding through your CMS or by hand. Everywhere else, a tidy standard sitemap is the complete job. For the maintenance question, read Dynamic vs Static Sitemaps: Which Does Your Site Need?, and browse the rest of the SEO Tools guides.

References