XML Sitemap Generator
Paste a list of canonical URLs from one website and generate an XML sitemap entirely in your browser.
FreeNo sign-upRuns in your browser: your data is not uploaded
How to build and submit a sitemap from URLs
Start with a list from your CMS, an existing sitemap or a page inventory. Keep the public destinations you want search engines to discover.
- Check each destination. Use the final URL that returns
200and matches the page's preferred canonical. Leave out login screens, errors, redirects and pages you marknoindex. - Paste one full URL per line in Canonical page URLs. Use the same hostname for every row and preserve the protocol and trailing slash that the live canonical uses.
- Click Generate XML. Compare the unique URL count with your list, then inspect the
locentries. Use Download XML after confirming that the contents match your intended pages. - Publish the file where crawlers can reach it, commonly
/sitemap.xml. Open it on your domain, then submit its public URL in the Sitemaps report in Google Search Console.
Worked example for a small site
A site has a homepage, a service overview and a bike care guide. Enter these three canonical URLs. The repeated guide line represents a duplicate from the page inventory.
https://example.com/ https://example.com/services/ https://example.com/guides/bike-care/ https://example.com/guides/bike-care/
The tool should report three unique URLs and create three loc entries. Open those three destinations to confirm they are the pages you intended. If the CMS already maintains a live sitemap, check that the pages are included there before publishing a separate file.
Common mistakes
- Mixing URL variants. Use the exact preferred hostname, protocol and slash pattern. If a URL redirects, list the final destination after verifying its canonical.
- Listing tracking or session URLs. Keep the clean canonical when parameters duplicate the same page. Review query parameters individually when they identify distinct pages.
- Publishing a partial list over a live sitemap. Compare the new entries against the existing file. Preserve other published URLs or maintain separate files and submit them individually.
- Treating the generated file as proof of indexing. Use the Sitemaps report to check that Google can fetch the file. Use URL Inspection to verify a page's index status.
FAQ
Where do the URLs in the output come from?
How many URLs can I paste?
Can I include both www and non-www URLs?
Does the generator add lastmod dates?
How do I check whether a submitted page was indexed?
Link to this tool
Found it useful? Put a link in your docs, README or forum answer so others can use it too:
<a href="https://headsntail.com/tools/xml-sitemap-generator">XML Sitemap Generator</a> (free, by HeadsNTail)
[XML Sitemap Generator](https://headsntail.com/tools/xml-sitemap-generator)
Share: X LinkedIn Reddit WhatsApp
Need a website, HR or business system? HeadsNTail builds websites, HR and payroll apps and business tools. See services or ask a question.