XML Sitemaps Explained: Why You Need One and How to Submit It

By the I love SEO editorial team · Published November 17, 2026 · 5 min read

An XML sitemap is a file that lists the important URLs on your website so search engines can find them. It does not replace good internal linking, but it is an easy way to speed up discovery, especially for new sites and large sites.

What goes in a sitemap

Include pages you want people to find in search: your home page, main category pages, articles, products and service pages. Every URL should return a normal 200 response and be the canonical version of the page.

Leave out redirected URLs, pages blocked by robots.txt, pages with a noindex tag, duplicates, and thin or utility pages such as login screens.

What a sitemap looks like

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-11-17</lastmod>
  </url>
</urlset>

Only loc is required. Google ignores priority and changefreq. The lastmod date is useful when it is accurate and reflects a meaningful change, so only update it when the page really changes.

Limits

One sitemap can contain up to 50,000 URLs and be up to 50 MB uncompressed. If you exceed that, split the list across several sitemaps and link them from a sitemap index file.

How to submit it

  1. Create the file with our XML sitemap generator or have your CMS generate it.
  2. Upload it to your site, usually at /sitemap.xml.
  3. Add a Sitemap: line to your robots.txt.
  4. Open Google Search Console, choose your property, go to Sitemaps and enter the sitemap URL.
  5. Check back later. The report shows how many URLs Google discovered and any errors.

Remember

A sitemap is a suggestion, not an instruction. It helps discovery, but it does not guarantee a page will be indexed or ranked. Quality, relevance and links still decide that.