Skip to content
Back to all articles
SEO3 min readNovember 13, 2026

How to Create an XML Sitemap and Submit It to Google

What a sitemap does and does not do, how to build a clean sitemap.xml, the mistakes that make Google reject it, and how to submit it in Search Console.

How to Create an XML Sitemap and Submit It to Google article
In this guide
  1. What a sitemap does (and does not do)
  2. Create a sitemap step by step
  3. Put it on your site
  4. Submit it to Google
  5. Mistakes that make sitemaps fail
  6. Which pages to include
  7. Keep it up to date
  8. Related tools and guides
  9. Common questions

A sitemap is a list of the pages on your site that you want search engines to find. Google can discover pages by following links, but a sitemap speeds that up, especially for new sites, large sites and pages that few other pages link to. This guide shows how to make a clean sitemap with the free XML Sitemap Generator and submit it to Google.

What a sitemap does (and does not do)

  • It does: tell search engines which URLs exist and, if you include it, when each was last changed.
  • It does not: guarantee indexing or rankings. Google still decides which pages are worth indexing.

If you use WordPress or a site builder, a sitemap is usually created automatically (for example at /sitemap.xml or /sitemap_index.xml). Check that first; you may not need to make one by hand.

Create a sitemap step by step

  1. Collect your URLs. Paste a list, a column from a spreadsheet, or even a page's HTML into the XML Sitemap Generator: every full https:// address is picked out.
  2. Let it clean the list. Duplicates, #fragments and tracking parameters (utm_, fbclid, gclid) are removed.
  3. Choose the fields. Include last modified only with real dates. Leave change frequency and priority off: Google says it ignores them.
  4. Check the warnings. URLs from another domain or lines without https:// are flagged.
  5. Download sitemap.xml (or a ZIP of several files and an index for more than 50,000 URLs).

Put it on your site

  1. Upload the file to your site's root, so it opens at https://www.yourdomain.com/sitemap.xml.
  2. Add this line to your robots.txt:
Sitemap: https://www.yourdomain.com/sitemap.xml
  1. Open the sitemap URL in your browser to check it loads.

Submit it to Google

  1. Open Google Search Console and select your property.
  2. Go to Indexing → Sitemaps.
  3. Enter sitemap.xml (or the full path) and click Submit.
  4. Come back after a few days: Search Console shows whether it was read and how many URLs were discovered.

For Bing, submit the same URL in Bing Webmaster Tools.

Mistakes that make sitemaps fail

MistakeWhy it matters
Unescaped & in URLsMakes the XML invalid; the generator escapes it automatically
Redirecting URLsList the final address, not one that redirects
Pages set to noindexContradicts the sitemap; leave them out
Broken or 404 pagesWastes crawling; remove them
http and https, or www and non-www mixedList only the version your site uses
Every page dated today on every updateGoogle learns to ignore your dates
Over 50,000 URLs or 50 MB in one fileExceeds the limit; split it with an index

Which pages to include

Include pages you want people to find in search: your home page, services or product pages, categories, articles and important landing pages. Leave out login pages, cart and checkout pages, thank-you pages, internal search results, and duplicate versions of pages.

Keep it up to date

A sitemap is most useful when it reflects your site. Regenerate it when you add or remove pages, or switch to a CMS plugin that updates it automatically. Then use URL Inspection in Search Console to request indexing for your most important new pages.

Common questions

How long until Google reads my sitemap? Usually within days, but indexing individual pages can take longer.

Do I need changefreq and priority? No. Google ignores both.

Can I have more than one sitemap? Yes. Use a sitemap index that lists them, which the generator creates for large sites.

Was this article helpful?

Found this guide useful?

Share it with someone who is struggling with the same problem.

Free tool · No sign-up

XML Sitemap Generator

Create an XML sitemap from a list of URLs, a spreadsheet column or a page’s HTML. Duplicates removed, addresses escaped, large sites split automatically.

Open tool

Written by

Hemant Adhikari HemantInsights

Senior Software Engineer · Developer of Toolyconvert

I’m a senior software engineer from Dehradun, India, building websites since 2014. I designed and developed Toolyconvert, from the Next.js front end and headless WordPress back end to the tools themselves, and I review every guide before it goes live.