XML Sitemap Generator

Turn a list of URLs into a valid sitemap.xml, generated and downloaded in your browser.

How to use

  1. Paste your URLs, one per line — absolute addresses starting with http:// or https://.
  2. Optionally turn on lastmod, changefreq and priority; the date you choose is applied to every URL.
  3. Download sitemap.xml, upload it to the root of your site and submit it in Google Search Console.

About this tool

A sitemap is an XML file that lists the pages you want search engines to know about. It follows the Sitemaps 0.9 protocol: a urlset element carrying the official namespace, and inside it one url block per address, each with a mandatory loc and the optional lastmod, changefreq and priority. It is not a ranking factor and it does not force anything to be indexed — it is a discovery aid, and it matters most for large sites, for pages that few internal links point to, and for new sites that have almost no inbound links yet.

This generator takes your list of addresses, discards anything that is not an absolute http or https URL, removes repeated entries and escapes the five XML characters that would otherwise break the file — ampersand, less-than, greater-than, quote and apostrophe. That escaping matters more than it sounds: a single raw ampersand in a query string is enough to make the whole sitemap unparseable. The optional fields are written exactly as the protocol expects, with lastmod in W3C date format. Be aware that Google has said for years that it ignores priority entirely and mostly ignores changefreq, using lastmod only when it is consistently accurate — so leaving all three off is a perfectly good default. The tool also warns when the list goes past 50,000 URLs, the per-file limit of the protocol.

In practice you use this when you have a list of URLs from a crawl, a CMS export, a spreadsheet or your own database, and you need a valid file rather than a hand-typed one. It also works well for a partial sitemap of a specific section, such as new blog posts you want discovered quickly. Everything happens in your browser: the URLs are never uploaded, the file is assembled in JavaScript and the download is created locally from memory. If your site is large, split the list into several files of up to 50,000 URLs each and reference them from a sitemap index — and remember to point to the final file from your robots.txt.

Frequently asked questions

Where should I put the sitemap file?

In the root of your domain, as https://yoursite.com/sitemap.xml. Then add a "Sitemap:" line to your robots.txt and submit the address in Google Search Console so it is picked up faster.

Does Google use changefreq and priority?

Largely no. Google has stated that it ignores priority and mostly ignores changefreq, treating lastmod as a weak hint only when it is reliably accurate. They are part of the protocol, so the tool can write them, but omitting them costs you nothing.

What is the 50,000 URL limit?

A single sitemap file may contain at most 50,000 URLs and weigh at most 50 MB uncompressed. Above that you split the list into several files and list those files in a sitemap index.

Which pages should I include?

Only canonical URLs that return 200 and that you want indexed. Leave out redirects, pages blocked by robots.txt, noindex pages and duplicate parameter variations — a sitemap full of those makes the file less trustworthy.

Do my URLs leave my browser?

No. The list you paste is processed entirely in JavaScript on your device, and the downloaded file is built locally. Nothing is sent to any server.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.