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
- 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. - Let it clean the list. Duplicates,
#fragmentsand tracking parameters (utm_,fbclid,gclid) are removed. - Choose the fields. Include last modified only with real dates. Leave change frequency and priority off: Google says it ignores them.
- Check the warnings. URLs from another domain or lines without
https://are flagged. - Download
sitemap.xml(or a ZIP of several files and an index for more than 50,000 URLs).
Put it on your site
- Upload the file to your site's root, so it opens at
https://www.yourdomain.com/sitemap.xml. - Add this line to your
robots.txt:
Sitemap: https://www.yourdomain.com/sitemap.xml- Open the sitemap URL in your browser to check it loads.
Submit it to Google
- Open Google Search Console and select your property.
- Go to Indexing → Sitemaps.
- Enter
sitemap.xml(or the full path) and click Submit. - 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
| Mistake | Why it matters |
|---|---|
Unescaped & in URLs | Makes the XML invalid; the generator escapes it automatically |
| Redirecting URLs | List the final address, not one that redirects |
| Pages set to noindex | Contradicts the sitemap; leave them out |
| Broken or 404 pages | Wastes crawling; remove them |
| http and https, or www and non-www mixed | List only the version your site uses |
| Every page dated today on every update | Google learns to ignore your dates |
| Over 50,000 URLs or 50 MB in one file | Exceeds 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.
Related tools and guides
- Check an existing sitemap for errors with the Sitemap Validator.
- Make sure robots.txt does not block important pages: read robots.txt mistakes that block Google and test it with the Robots.txt Tester.
- Collect all links from a page with the HTML Link Extractor.
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.



