XML Sitemap Generator - Turn a URL List Into a Valid sitemap.xml
You have the URL list; the XML wrapping is the tedious part. Paste the list, set defaults once, and download a sitemap search engines accept.
How to use the XML Sitemap Generator
- Paste your URLs, one per line, or load them from a .txt file.
- Set default lastmod, changefreq and priority if you want them on every entry.
- Click Generate sitemap.xml.
- Download the file, place it at your site root, and submit it in Search Console and Bing Webmaster Tools.
How it works
The generator follows the sitemaps.org protocol: a urlset in the official namespace, one url element per address, and loc values that are both URL-safe (spaces become %20) and XML-escaped (an & in a query string becomes &, which is required - a raw & makes the file invalid XML). The protocol caps one sitemap at 50,000 URLs and 50 MB; this tool enforces the URL cap and tells you when you hit it, at which point the correct move is several sitemaps joined by a sitemap index file. Note that Google largely ignores changefreq and priority, but lastmod is used when it is accurate - so only set a lastmod that reflects a real change.
Frequently Asked Questions
Is this generator free?
Yes - completely free, no sign-up.
How many URLs can one sitemap hold?
50,000 at most, per the sitemap protocol - and 50 MB uncompressed. Larger sites use a sitemap index pointing to several sitemaps.
Does Google use priority and changefreq?
Google has said it largely ignores both. lastmod is used when it consistently reflects real changes.
Why must & become & in URLs?
Because sitemap.xml is XML: a raw ampersand starts an entity reference and makes the document invalid, so it must be escaped.
Is anything uploaded?
No. The sitemap is built in your browser.
Related Developer Tools
Meta Tag Generator
Generate a ready-to-paste HTML meta block - title, description, robots, canonical - with a SERP-style preview.
Open Graph & Twitter Card Generator
Build Open Graph and Twitter Card tags with a card preview, so shared links look right everywhere.
Robots.txt Generator
Build a valid robots.txt with per-agent allow and disallow rules and a sitemap line.