Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

XML Sitemap Generator

Paste your URLs and get a valid sitemap.xml with escaped URLs, optional lastmod dates, and per-line warnings — split into a sitemap index past 50,000 URLs.

Processed locally in your browser — nothing is uploaded.

XML Sitemap Generator

0 characters

Applied to every URL. Only set it if the pages really changed on that date — Google stops trusting a lastmod that is always today.

sitemap.xml

Output appears here…

About XML Sitemap Generator

Paste the URLs you want search engines to find, one per line, and get a sitemap.xml that follows the sitemaps.org protocol: an <urlset> with one <url> per page and every <loc> XML-escaped, so a query string like ?a=1&b=2 becomes valid XML instead of breaking the file. Download it, put it at your site root, and submit it in Google Search Console or reference it from robots.txt.

URLs are normalised before they go in — lowercase scheme and host, no default port, no #fragment, non-ASCII paths percent-encoded and international domains converted to punycode — and then deduplicated, so the same page pasted twice with different casing appears once. Every line that can't go in a sitemap is listed with its line number and the reason: relative paths, non-http(s) schemes, URLs of 2,048 characters or more, and URLs on a different protocol or host than the first one, which the protocol forbids.

A single sitemap may hold 50,000 URLs and 50 MB uncompressed. Paste more than that and the tool splits them into sitemap-1.xml, sitemap-2.xml, and so on, each under both limits, plus a sitemap-index.xml that lists them — submit just the index.

Common uses

  • Create a sitemap for a static site, landing pages, or a site builder that doesn't generate one
  • Turn a crawl export or a CMS URL list into a clean, deduplicated sitemap
  • Split a large URL list into sitemap files and an index Google accepts

Example

Input

https://example.com/
https://example.com/search?q=shoes&page=2

Output

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
  </url>
  <url>
    <loc>https://example.com/search?q=shoes&amp;page=2</loc>
  </url>
</urlset>

The & in the second URL is written as & — a raw ampersand would make the whole file invalid XML.

Limitations

  • Every URL gets the same lastmod, changefreq, and priority; per-URL values need a sitemap generated by your CMS or build
  • Google ignores changefreq and priority completely, and uses lastmod only when it is consistently accurate — so leave a date out rather than stamping today on pages that didn't change
  • Image, video, news, and hreflang sitemap extensions aren't generated; use the Hreflang Generator for language alternates in the page head
  • The tool can't check that a URL returns 200, isn't redirected, or isn't blocked by robots.txt or noindex — list only canonical, indexable pages

Frequently asked questions

How do I create an XML sitemap for my website?

Paste every page URL you want indexed, one per line, and the sitemap.xml is generated as you type. Download it, upload it to the root of your site so it loads at https://example.com/sitemap.xml, then submit that URL in Google Search Console and Bing Webmaster Tools, or add a Sitemap: line to your robots.txt.

Does Google use changefreq and priority in sitemaps?

No. Google has said it ignores both <changefreq> and <priority>. It does use <lastmod>, but only if the dates are consistently accurate — a lastmod that changes on every regeneration teaches Google to ignore it. That's why this tool leaves all three out unless you set them.

How many URLs can a sitemap contain?

Up to 50,000 URLs and 50 MB uncompressed per file. Past either limit you need several sitemap files and a sitemap index that lists them. This tool splits automatically, keeping each file under both limits, and gives you the index to submit.

Can a sitemap include URLs from another domain or subdomain?

Not by default. The sitemaps.org protocol requires every URL to share the sitemap's protocol and host, so https://www.example.com/ and https://example.com/ can't be mixed. This tool takes the host from the first valid URL and lists any other host on its own line as a warning. Listing URLs from other hosts needs extra proof of ownership, such as a Sitemap: line in each of those hosts' robots.txt.

Why does the & in my URL become &amp;?

A sitemap is XML, and in XML a raw &, <, >, ' or " inside text must be written as an entity. Without escaping, a URL with two query parameters makes the whole file unparseable. Search engines decode &amp; back to & when they read the URL.

Are the URLs I paste uploaded anywhere?

No. Normalising, checking, and building the sitemap all happen in your browser, so unreleased pages and staging URLs never leave your machine.