LaunchRanked

XML sitemap generator

Paste a list of URLs. We check each one, escape it properly and build a sitemap.xml that follows the sitemaps.org protocol, split into files if needed.

Paste from a spreadsheet or crawl export. A CSV with url,lastmod (or a tab between them) sets a date per URL.

Default lastmod

Dates from your CSV win over this default. Only set “today” if every page really changed today: Google uses lastmod only when it’s consistently accurate.

changefreq and priority (off by default)

Google says it ignores both. Other search engines may read them. Leave them off unless you have a reason.

Folder URL for the files. Needed for the sitemap index when we split (over 50,000 URLs or 50 MB). Defaults to the site root of your first URL.

Paste URLs to build a sitemap.xml. We check each one, remove duplicates and fragments, escape & and other special characters, and split into several files with a sitemap index if you go over the limits.

What goes in a sitemap

Only the URLs you want in search results: canonical, indexable pages that return 200. Leave out redirects, noindexed pages, parameter duplicates and anything blocked in robots.txt. Every URL must be absolute and, per the sitemaps.org protocol, use the same protocol and host as the sitemap itself. That’s why the tool warns about http and https mixed together, www next to non-www, and hosts that differ from the rest of the list.

Limits and escaping

  • 50,000 URLs and 50 MB (52,428,800 bytes) uncompressed per file. We split on whichever you hit first and write a sitemap index for the parts.
  • Fewer than 2,048 characters per URL. Longer URLs are skipped and listed.
  • UTF-8 and entity escaping. The five characters & ’ " < > are escaped, so a query string like ?a=1&b=2 is written as ?a=1&amp;b=2. Pasting raw ampersands into a hand-written sitemap is the most common reason a file fails to parse.

lastmod: be accurate or leave it out

Google’s sitemap guide says it ignores <priority> and <changefreq>, and uses <lastmod> only if it’s consistently and verifiably accurate. So don’t stamp today’s date on every URL each time you rebuild. Export real modification dates from your CMS as url,lastmod and paste them in; we validate the W3C Datetime format (YYYY-MM-DD, or a full timestamp with a time zone) and flag future dates.

After you download

Upload the files to your site, add the Sitemap: line to robots.txt (build one with the robots.txt generator) and submit the sitemap or index in Search Console. Then run the live file through the sitemap checker to confirm it loads and parses. If you already have several sitemaps, the sitemap splitter and merger combines or splits them, and the sitemap index generator lists existing files.

A sitemap full of thin pages won’t help; we learned that the hard way. Read programmatic SEO without deindexing before you submit thousands of new URLs at once.

Questions

Should I add changefreq and priority?

For Google, no. Google's sitemap docs say it ignores both values. Other search engines may read them, which is why they're available here, but they're off by default. Spend the effort on an accurate lastmod instead.

What happens when I have more than 50,000 URLs?

The protocol caps each sitemap at 50,000 URLs and 50 MB uncompressed. We split the list into sitemap-1.xml, sitemap-2.xml and so on, measuring the real UTF-8 size of each file, and write a sitemap index that lists them. Upload every file to the folder you entered, then submit the index.

Why did a URL change when I pasted it?

Sitemap URLs have to be valid, escaped URLs. We percent-encode spaces and non-ASCII characters (café becomes caf%C3%A9), convert international domain names to their ASCII form, drop #fragments and lowercase the host. Existing %XX escapes are kept as they are. In the XML, & in query strings is written as &amp;.

Does a sitemap get my pages indexed?

No. It helps search engines discover URLs and notice changes. Whether a page gets indexed still depends on the page: unique content, internal links and no noindex. Only list canonical URLs that return 200.

Autopilot · early access

Want this fixed automatically?

Autopilot checks your site, publishes researched articles at a safe pace, and tracks whether ChatGPT, Perplexity, Gemini and Claude cite you. $49/mo.

Related free tools

See all free tools