Loona Automation logoLoona Developer Tools
Home › Developer Tools › XML Sitemap Generator

XML Sitemap Generator - Turn a URL List Into a Valid sitemap.xml

In short: the XML Sitemap Generator takes a plain list of URLs - one per line - and emits a valid sitemap.xml with optional lastmod, changefreq and priority defaults, escaping URLs correctly for 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.

Private by design: everything in this tool happens 100% in your browser with JavaScript. Your input is never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How to use the XML Sitemap Generator

  1. Paste your URLs, one per line, or load them from a .txt file.
  2. Set default lastmod, changefreq and priority if you want them on every entry.
  3. Click Generate sitemap.xml.
  4. 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

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.