XML Sitemap Generator
Paste your URLs and get a valid, properly escaped sitemap.xml ready to upload and submit to Google Search Console.
Blank lines and lines starting with # are ignored.
What an XML sitemap is for
An XML sitemap is a file that lists the URLs you want search engines to know about. It does not guarantee indexing, but it helps crawlers discover pages that are new, deep in the site or poorly linked, and an accurate lastmod tells them which pages changed. Most CMSs and frameworks generate one automatically; this tool is for the cases where yours does not — a static site, a hand-built landing page collection, a migration where you need a sitemap of the new URLs, or a quick fix while the real generator is broken.
How to use it
- Paste your URLs into URLs (one per line), or press Load example to see how it works.
- If some lines are paths like
/contact, fill in Base URL for relative paths (e.g.https://example.com). - Optionally choose a lastmod date (today, or a specific day) and, if you really want them, changefreq and priority.
- Check the counters: valid URLs, duplicates removed, invalid lines skipped. Open Show skipped lines to see why a line was rejected.
- Press Download sitemap.xml (or Copy XML), upload it to your site root, and submit it.
Worked example
The built-in example contains eight lines, with the base URL set to https://example.com:
https://example.com/ https://example.com/about https://example.com/blog/ https://example.com/blog/first-post?ref=home&lang=en /contact https://example.com/about https://example.com/pricing#plans ftp://example.com/file
The result has 6 URLs: the duplicate /about is removed, /contact becomes https://example.com/contact, the #plans fragment is stripped and the ftp line is skipped. The query string is escaped:
<url>
<loc>https://example.com/blog/first-post?ref=home&lang=en</loc>
</url>The options explained
- lastmod — the date the page content last changed meaningfully, in W3C date format (
2026-11-09). Google uses it when it is consistently accurate; stamping every URL with today's date on every build teaches it to ignore the value. One date applies to all URLs here, so use it when you are listing pages that really changed together. - changefreq and priority — part of the protocol but ignored by Google. They are omitted unless you choose a value.
- Base URL — only used to resolve relative lines. Absolute URLs are kept as they are, normalised (e.g. spaces and non-ASCII characters percent-encoded, host lower-cased).
Limitations
- It does not crawl or check your URLs. A URL that returns 404, redirects or carries a noindex tag will still be listed — keep only canonical, indexable pages.
- Image, video, news and hreflang sitemap extensions are not generated.
- Above 50,000 URLs the list is split into
sitemap-1.xml,sitemap-2.xml… and an index that assumes they live at the root of the first URL's origin. Rename the entries if you host them elsewhere.
Tips and common mistakes
- A sitemap may only contain URLs from its own host and protocol. The tool warns you when the list mixes origins (for example http and https, or www and non-www).
- Add
Sitemap: https://example.com/sitemap.xmlto robots.txt so every search engine can find it. - Use the same URL form as your canonical tags: trailing slash or not, www or not.
- Check that listed pages return 200 with the HTTP Headers Checker, and preview their titles and descriptions with the Meta Tag & SERP Preview.
Frequently Asked Questions
Does this tool crawl my website?
No. You paste the list of URLs (one per line) and it turns them into a valid XML sitemap. It does not visit your site, so it works for staging sites and pages that are not linked yet.
Should I set changefreq and priority?
Google has said it ignores both values, and other search engines treat them as weak hints at most. They are optional here and omitted by default; an accurate lastmod is the only optional field Google uses.
How many URLs can one sitemap contain?
The sitemap protocol allows at most 50,000 URLs and 50 MB (uncompressed) per file. If you paste more than 50,000 valid URLs, the tool splits them into several files and generates a sitemap index that points to them.
Why are some of my lines skipped?
Only absolute http:// or https:// URLs are accepted. Relative paths are resolved only when you set a base URL, other schemes like ftp:// are rejected, duplicates are removed, and #fragments are stripped because search engines ignore them.
Why are & characters turned into &?
A sitemap is XML, where a bare & is a syntax error. The tool escapes &, <, >, quotes and apostrophes in every URL, so a query string like ?a=1&b=2 is written as ?a=1&b=2 — which is exactly what the protocol requires.
Are my URLs uploaded anywhere?
No. The sitemap is built entirely in your browser; the URL list never leaves your device.