Technical

What Is a Sitemap.xml File, and Why Does It Matter?

A simple list of your pages that helps search engines find everything on a new or growing site.

What it is

A sitemap.xml file is a structured list, written in a machine-readable format, of every page on your website that you'd like search engines to know about. Instead of relying entirely on a search engine following links from page to page to eventually discover everything, a sitemap hands over a direct, complete list up front β€” like handing a visitor a table of contents instead of asking them to find every chapter by flipping through the whole book.

It's not something a visitor ever sees or interacts with directly; it exists purely for search engine crawlers, usually referenced from your robots.txt file and submitted directly to tools like Google Search Console.

Why it matters

A sitemap is most valuable for exactly the situations where discovery is hardest: a brand-new site with no other pages linking to it yet, a large site with pages that are more than a few clicks deep from the homepage, or a site that's updated frequently and wants changes noticed quickly. Without one, a search engine has to rely purely on following links, which can mean it takes considerably longer to find and index everything, or it may miss pages that aren't well linked internally.

It's a low-effort, one-time (or automatically regenerated) addition with no real downside β€” even a small, simple site benefits from making its full list of pages explicit rather than implied.

How to fix it

  1. If you're using a website builder or CMS (Squarespace, Wix, Webflow, WordPress with an SEO plugin), a sitemap is usually generated and kept up to date automatically β€” check your SEO settings for a sitemap URL rather than building one by hand.
  2. If not, use a free sitemap generator tool, or have your developer generate one, listing the URL of every page you want search engines to find.
  3. Save the result as sitemap.xml and upload it to your site's root folder so it's reachable at yourdomain.com/sitemap.xml.
  4. Reference it from your robots.txt file with a line like Sitemap: https://yourdomain.com/sitemap.xml.
  5. Submit the sitemap URL directly in Google Search Console and Bing Webmaster Tools to prompt faster discovery.
  6. Re-run your Launch Readiness check to confirm the sitemap is detected.

Check whether your own site has this problem

Launch Readiness scans your site for this and ~50 other pre-launch issues in seconds β€” free, no signup.

Run a free check