What is an XML sitemap?
An XML sitemap is a structured file that lists a website's important URLs, helping search engines discover, crawl, and understand the pages a site wants indexed.
What an XML sitemap does
An XML sitemap provides search engines with a machine-readable list of the URLs a site considers important, along with optional metadata like the last modified date. It acts as a roadmap that supplements the crawler's normal link-following discovery.
Sitemaps are especially valuable for large sites, new sites with few external links, and pages that are deeply buried or not well linked internally. They make it more likely that important pages are found and crawled promptly.
What goes in a sitemap
A sitemap should contain canonical, indexable URLs that return a successful status and that you genuinely want in search results. Including redirected, blocked, or duplicate URLs sends mixed signals and wastes the value of the file.
Each entry can carry optional hints such as a last-modified timestamp, which helps search engines prioritize recrawling changed pages. Very large sites split their URLs across multiple sitemaps referenced by a sitemap index file.
Submitting and maintaining sitemaps
Sites typically reference their sitemap in robots.txt and submit it through a search engine's webmaster tools to speed discovery. Keeping the sitemap automatically updated ensures new and removed pages are reflected without manual effort.
A clean, accurate sitemap that only lists live, canonical URLs builds trust with crawlers. Regularly auditing it for errors keeps crawl efficiency high and prevents search engines from wasting resources on dead links.
Frequently asked questions
Do I need an XML sitemap for SEO?
A sitemap is not strictly required, but it strongly helps large, new, or poorly linked sites get their pages discovered and crawled efficiently by search engines.
What URLs should be in my XML sitemap?
Include only canonical, indexable URLs that return a successful status and that you want in search results, and exclude redirected, blocked, or duplicate pages.
Keep reading
Want this machine pointed at your site?
This page is one of a swarm we generated for ourselves. We build the same for you.
Get Started - $10,000