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.

  1. Check each destination. Use the final URL that returns 200 and matches the page's preferred canonical. Leave out login screens, errors, redirects and pages you mark noindex.
  2. 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.
  3. Click Generate XML. Compare the unique URL count with your list, then inspect the loc entries. Use Download XML after confirming that the contents match your intended pages.
  4. 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?
The tool formats the list you paste in your browser. Verify the URLs and collect new pages from your CMS or page inventory.
How many URLs can I paste?
Use up to 500 lines per batch in this tool. For a larger inventory, generate separate sitemap files or use the sitemap your CMS maintains.
Can I include both www and non-www URLs?
Use one hostname per generated file. Follow the canonical host used by the live pages you want indexed.
Does the generator add lastmod dates?
It outputs the URL locations. If you maintain lastmod separately, use the actual date of the last significant change to each page.
How do I check whether a submitted page was indexed?
Paste the page URL into URL Inspection in Search Console. Sitemap submission helps discovery. Google decides which URLs to index.

Found it useful? Put a link in your docs, README or forum answer so others can use it too:

HTML
<a href="https://headsntail.com/tools/xml-sitemap-generator">XML Sitemap Generator</a> (free, by HeadsNTail)
Markdown (GitHub, Stack Overflow, dev.to)
[XML Sitemap Generator](https://headsntail.com/tools/xml-sitemap-generator)

Need a website, HR or business system? HeadsNTail builds websites, HR and payroll apps and business tools. See services or ask a question.