SEO

How do I submit a sitemap (sitemap.xml) to Google?

Short answer

In Search Console, go to the “Sitemaps” section, enter your sitemap.xml address and submit it; it’s also good practice to add a “Sitemap:” line to your robots.txt file. A sitemap doesn’t guarantee indexing; it only makes it easier for Google to discover your pages.

Step by step

  1. Open your sitemap.xml address in a browser and check that it works.
  2. In Search Console, go to “Sitemaps”.
  3. Enter the file address and click “Submit”.
  4. Add the line “Sitemap: https://yourdomain.com/sitemap.xml” to your robots.txt file.

In detail

What does a good sitemap look like?

A sitemap should contain only the canonical addresses you want indexed that return a 200 response. Don’t include redirected, blocked or duplicate pages. On large sites, multiple sitemaps and an index file are used so as not to exceed the limit.

After you submit it

The “Sitemaps” report in Search Console shows whether the file was read and how many addresses were found. Submitting a sitemap doesn’t guarantee indexing; page quality and crawlability are what decide. Adding a “Sitemap:” line to your robots.txt file lets other search engines find the file too.

Follow-up questions

Should a sitemap include date information?
An accurate and up-to-date “lastmod” value helps guide crawling; but it should be updated only when the content has actually changed.
Why weren’t the pages in my sitemap indexed?
The page may be low quality, a duplicate or blocked. The “Pages” report in Search Console shows the reason for each page.

Platform interfaces change over time; check the platform’s official help pages for current steps.