← Blog · Updated November 3, 2026

What Is an XML Sitemap and How to Create One

Quick answer: An XML sitemap is a file that lists the URLs you want search engines to know about. It helps Google and Bing discover pages faster, especially on new or large sites. Create one by listing your important canonical URLs, generate valid XML, upload it to your site root, and submit the URL in Search Console.

An XML sitemap is a simple, standardised file that tells search engines which pages exist on your website and which ones you consider important. In 2026 it remains one of the most practical technical SEO steps a site owner can take, whether you run a small business site, a blog, or a content-heavy resource. This guide explains what a sitemap does, why it still matters alongside modern AI search, and exactly how to create and submit one.

What an XML sitemap actually does

When a crawler visits your domain it can follow links from page to page. That works well for many sites, but it is not perfect. Pages that are new, deep in the site structure, or linked from few places can be discovered slowly or missed. An XML sitemap removes some of that guesswork by giving the crawler a direct list of URLs.

The format is defined at sitemaps.org. A basic file looks like this:

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

Each <url> block contains a required <loc> (the full page URL) and optional tags for last modified date, change frequency, and priority.

Why sitemaps still matter for SEO and GEO

Google has said for years that a sitemap does not guarantee indexing. That remains true. What has not changed is the value of clear discovery signals:

  • Faster discovery of new content. After you publish a page, adding it to the sitemap and resubmitting helps crawlers find it without waiting for a link from somewhere else.
  • Better use of crawl budget on larger sites. Crawlers have limited time. A clean sitemap points them toward the pages you care about.
  • Support for AI answer engines. Systems that power ChatGPT, Perplexity, Google AI Overviews and similar tools still rely on traditional crawling to build their knowledge. A sitemap improves the chance that your best pages are seen and can later be cited.
  • Clear communication with Bing and other engines. Not every crawler is as sophisticated as Googlebot. A sitemap levels the field.

Sitemaps work best together with other basics: a sensible robots.txt, strong internal links, unique content, and proper canonical tags. They are not a substitute for those.

What to include (and what to leave out)

Include only canonical, indexable URLs that you want in search results. Good candidates are your homepage, main service or product pages, important blog posts, and category pages that provide real value.

Leave out:

  • Pages with a noindex meta tag or HTTP header.
  • Thank-you pages, login pages, and internal search results.
  • Staging or development URLs.
  • Parameterised duplicates of the same content.
  • Thin or low-value pages you do not want ranking.

One sitemap file can hold up to 50,000 URLs or 50 MB uncompressed. Most small and medium sites fit comfortably in a single file. Larger sites split the list and create a sitemap index that points to the individual files.

How to create a valid sitemap.xml

You have several options:

  1. Use a free browser tool. Our XML Sitemap Generator lets you paste URLs, set optional lastmod/priority/changefreq values, and download a ready-to-use file. Everything stays in your browser.
  2. Let your CMS generate it. WordPress (with Rank Math or Yoast), Shopify, and most modern platforms create and update sitemaps automatically.
  3. Write it by hand for very small sites. A text editor is enough when you only have a handful of pages.

Whatever method you choose, open the finished file in a browser to confirm it returns valid XML and that every URL is correct and fully qualified (starts with https://).

How to submit and maintain your sitemap

After you upload sitemap.xml to your site root:

  1. Confirm it is publicly reachable at https://yoursite.com/sitemap.xml.
  2. In Google Search Console go to Sitemaps, paste the full URL, and submit.
  3. Do the same in Bing Webmaster Tools.
  4. Optionally add a line to your robots.txt: Sitemap: https://yoursite.com/sitemap.xml. You can build that file with our Robots.txt Generator.
  5. Resubmit after major content changes or on a regular schedule (monthly is fine for most sites).

Search Console will show how many URLs were discovered and any errors. Fix problems such as non-canonical URLs, blocked pages, or redirects before they accumulate.

Common mistakes

  • Including non-indexable or duplicate URLs that waste crawl budget.
  • Using relative URLs instead of absolute ones.
  • Forgetting to update the sitemap after adding new important pages.
  • Leaving the file in a subfolder instead of the root.
  • Expecting the sitemap alone to fix thin content or technical issues.

Tips for better results

  • Keep lastmod dates accurate when you know them; they help crawlers prioritise fresh pages.
  • Pair the sitemap with clean internal linking so users and crawlers can navigate naturally.
  • Use schema markup on key pages so both search engines and AI systems understand the content better. Our Schema Markup Generator makes this straightforward.
  • Check the sitemap report in Search Console regularly for coverage issues.

Frequently asked questions

Does submitting a sitemap guarantee indexing?

No. A sitemap helps search engines discover URLs but does not force them to crawl or index every page. Content quality, technical health and internal linking still decide what gets indexed.

How often should I update my sitemap?

Update it whenever you add, remove or significantly change important pages. For active sites, regenerating and resubmitting monthly or after major content updates is a practical habit.

Can I include every URL on my site?

Include only canonical, indexable URLs you want in search results. Leave out noindex pages, thank-you pages, staging URLs and parameter duplicates.

Where does the sitemap file go?

Upload sitemap.xml to the root of your domain so it is available at https://yoursite.com/sitemap.xml. Then submit that full URL in Google Search Console.

Conclusion

An XML sitemap is a low-effort, high-clarity way to help search engines and AI systems find your important pages. Create a clean list of canonical URLs, generate valid XML with the free XML Sitemap Generator, upload it to your site root, and submit it in Search Console. Keep it updated and combine it with solid on-page SEO, and you give crawlers the clearest possible map of what matters on your site.

New to the bigger picture? Start with What Is SEO and How Does It Work or the On-Page SEO Checklist for Beginners.

We use cookies to run the site and show ads. See our Privacy Policy.