Skip to content

XML Sitemap Generator

Turn a list of URLs into a valid XML sitemap with priority, change frequency and last-modified dates.

Built in your browser — your URL list is never uploaded.

One URL per line. Optionally add a priority and change frequency: https://example.com/about | 0.6 | monthly

How do you create an XML sitemap?

List every canonical URL inside <url><loc> elements, wrapped in a <urlset> declaring the sitemaps.org 0.9 namespace. Save it as sitemap.xml in your site root, reference it from robots.txt with a Sitemap: line, then submit it in Google Search Console. One file holds up to 50,000 URLs.

Understanding your result

A sitemap is a discovery aid, not a ranking factor: it tells crawlers which URLs exist, but it does not guarantee they will be indexed. The priority and changefreq values are hints that Google has said it largely ignores, so do not agonise over them — an accurate lastmod is far more useful, and only if you keep it honest. One file holds up to 50,000 URLs and 50 MB uncompressed; beyond that you split the list and reference the parts from a sitemap index. Always list canonical URLs only, and never include pages blocked by robots.txt or carrying a noindex tag, because those send crawlers contradictory signals.

Formula and method

Each URL becomes a <url> element containing a required <loc> plus the optional <lastmod>, <changefreq> and <priority> children, all wrapped in a <urlset> that declares the sitemaps.org 0.9 namespace.

Assumptions and limitations

Builds a single sitemap file, not a sitemap index, so lists beyond 50,000 URLs must be split manually. It cannot crawl your site to discover URLs — you supply the list — and it does not verify that each URL returns 200 or is free of a noindex tag.

Worked example

Four URLs — the homepage, an about page at priority 0.6, a blog at 0.8 weekly and a contact page — produce a 4-entry sitemap of roughly 700 bytes, ready to upload as sitemap.xml.

How to use this tool

  1. Paste your URLs, one per line.
  2. Optionally add a priority and change frequency after a pipe character.
  3. Pick the defaults for any URL you did not annotate.
  4. Download sitemap.xml, upload it to your site root and submit it in Search Console.

Common mistakes to avoid

  • Including URLs that redirect, 404 or carry a noindex tag.
  • Listing both http and https or www and non-www versions of the same page.
  • Setting every page to priority 1.0, which conveys no information at all.
  • Forgetting to reference the sitemap from robots.txt after uploading it.

About the XML Sitemap Generator

The XML Sitemap Generator turns a plain list of URLs into a valid sitemap.xml following the sitemaps.org 0.9 protocol. It removes duplicates, adds the https:// prefix to bare domains, escapes special characters properly and lets you set a priority and change frequency either globally or per URL.

Who should use this tool

Owners of small and static sites, developers and anyone whose CMS does not generate a sitemap automatically.

Benefits

  • Produces standards-compliant XML that validates against the sitemaps.org schema.
  • Removes duplicate URLs and skips malformed lines automatically.
  • Per-URL priority and change frequency, not just one global setting.
  • Escapes ampersands and quotes so query-string URLs do not break the file.

Practical use cases

  • Creating a sitemap for a hand-built or static HTML site.
  • Submitting a fresh list of URLs to Google Search Console after a migration.
  • Building a supplementary sitemap for pages your CMS leaves out.
  • Giving a crawler a clean list of canonical URLs.

Explore all SEO and Website Tools tools

Frequently asked questions

Where should I upload sitemap.xml?

The site root, so it lives at https://yourdomain.com/sitemap.xml. Then add the line “Sitemap: https://yourdomain.com/sitemap.xml” to robots.txt so crawlers discover it automatically.

How many URLs can one sitemap hold?

Up to 50,000 URLs and 50 MB uncompressed. Larger sites split the list into several files and link them from a sitemap index file.

Do priority and changefreq actually matter?

Very little. Google has stated it largely ignores both. They remain part of the standard and other crawlers may read them, so they are included as optional fields.

Will a sitemap get my pages indexed?

It helps them get discovered, which is a separate thing from being indexed. Pages still need to be crawlable, useful and distinct enough to earn a place in the index.

How often should I update it?

Whenever you add or remove pages. If your site changes often, generating it automatically from your CMS beats maintaining it by hand.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: