Skip to content
Codoryn Search tools

XML Sitemap Generator

Turn a list of URLs or a CSV into a valid XML sitemap, in your browser. Nothing is uploaded, nothing is crawled, and no URL is ever fetched.

It does not crawl, and it does not fetch

You supply the URLs — from a CMS query, a crawl export, a build manifest. Nothing here requests any of them, and nothing is uploaded. That is not a limitation dressed up as a feature: crawling from a browser tab could not work for a staging host or an intranet anyway, and a generator that fetched an attacker-supplied list of URLs is textbook SSRF.

The optional Sitemap file URL is parsed locally and never fetched. It exists because two protocol rules depend on where the file will live.

Escaping is two transformations, and both are needed

A <loc> must be a validly escaped URL and the resulting string must be XML-entity-escaped. Those are different jobs, in a fixed order:

raw            http://www.example.com/ümlat.html&q=name
1. URL escape  http://www.example.com/%C3%BCmlat.html&q=name
2. XML escape  http://www.example.com/%C3%BCmlat.html&amp;q=name

Step 1 percent-encodes each component against that component's rules, converts an internationalised host to its xn-- form, and leaves an existing valid %HH alone — so a%20b does not become a%2520b, and hex-digit case is preserved. Path case, trailing slashes and query order are never touched, because every one of those changes which resource a crawler fetches.

Two normalisations do happen, and they are disclosed rather than hidden: the scheme and host are lower-cased, and an explicitly written default port is dropped. Neither changes the resource.

One sitemap describes one authority

A <loc> whose scheme, host or port differs from the rest makes the document invalid, so it is refused rather than emitted with a warning. example.com and www.example.com are different hosts; http and https are different authorities; :443 on HTTPS is the same one.

Cross-submission is not an exception to this. It concerns where a sitemap is hosted and submitted from, after proving ownership of both properties. It is not permission to mix page hosts inside one ordinary sitemap.

The authority comes from the Sitemap file URL when you supply one — which also enables the path-scope check, since a sitemap at /shop/sitemap.xml covers /shop/ and nothing above it. With the control empty, it is inferred from the first URL that passes every check that does not depend on another URL, and the report says plainly that path scope was skipped rather than passed.

The 2,048 limit is the protocol's, not an opinion

The Sitemap protocol requires <loc> to be less than 2,048 characters. So 2,047 is fine and 2,048 is not, and a URL over the line is excluded rather than emitted — a document containing it does not conform.

The count is taken on the escaped form, because that is what goes into the document. A URL of 418 characters with non-ASCII in the path becomes 2,418 once percent-encoded, and it is the escaped length that the protocol governs.

Nothing is invented — not a date, not a priority

There is no "set lastmod to today" option, and there will not be. Vendor guidance is explicit that a lastmod your site cannot stand behind teaches the crawler to ignore the field site-wide; a generator that stamps the generation date on every URL manufactures exactly that. If your input carries a date, it is validated and emitted. If not, no <lastmod> appears, and the report says so.

<changefreq> and <priority> work the same way: emitted only when your CSV supplies them, with a note that Google documents that it ignores both. They are kept because other consumers do read them, and labelled so their presence is not mistaken for influence.

Frequently asked questions

Why is my list capped at 10,000 URLs?

The protocol allows 50,000 per file. Reaching that in a browser tab is the thing this ceiling refuses to promise — 10,000 URLs is already about 1.2 MB of output. Split the list and combine the parts with Index mode, which emits a <sitemapindex>.

Why does Index mode ignore my changefreq column?

Because a sitemap index has no such element. That is a difference in the protocol itself, not a restriction added here, and the report says which columns were ignored.

Why was my URL with a # rejected?

A fragment is never sent to the server, so two URLs differing only by fragment name the same resource — listing both asks a crawler to fetch the same page twice. Note that a # at the start of a line is a comment and is skipped; a # later in the line is a fragment.

My input already has &amp; in it. What happens?

It is escaped again, to &amp;amp;, and you get a warning saying so. Input is treated as unescaped text, because unescaping first would corrupt any URL whose query legitimately carries the literal text &amp; — which happens in URLs carrying encoded HTML.

Can I validate what this produced?

Yes — Codoryn's XML Sitemap Validator reads the same documents, and generating then validating with a separate implementation is a genuinely useful check.

Send output to