Skip to content
UniKit

URL list to sitemap

Turn a URL list into sitemap.xml: emits a sitemap 0.9 `urlset`, XML-encodes addresses (otherwise query strings would produce invalid XML), optionally adds lastmod and changefreq, and validates both formats and URL usability.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

URL list

Result

The result can be copied directly.

Paste URLs to see the sitemap.xml

Characters: 0 · Lines: 0

What this tool does

  • Turn a URL list into an uploadable sitemap.xml.
  • Batch-add lastmod and changefreq to existing pages.
  • Spot characters that need escaping (usually `&`).

Example

Input

https://example.com/
https://example.com/a
https://other.test/b

Output

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-01-02</lastmod>
    <changefreq>weekly</changefreq>
  </url>
  <url>
    <loc>https://example.com/a</loc>
    <lastmod>2026-01-02</lastmod>
    <changefreq>weekly</changefreq>
  </url>
  <url>
    <loc>https://other.test/b</loc>
    <lastmod>2026-01-02</lastmod>
    <changefreq>weekly</changefreq>
  </url>
</urlset>

Emits sitemap 0.9 XML: `<?xml ?>` + `urlset` + one `url/loc` per URL, with entity-encoded addresses.

Frequently asked questions

Does it XML-encode?

Yes. `&` and `<` in URLs become entities, otherwise URLs with query strings would produce invalid XML.

Are URLs validated?

By default only http(s) absolute URLs or `/`-rooted paths are kept; turn off “Skip non-URL lines” to write everything.

How is lastmod formatted?

It must be `YYYY-MM-DD` or a full ISO datetime; otherwise it fails with `invalid-lastmod` rather than emitting an invalid sitemap.

How is deduplication done?

Exact line matching, preserving first-seen order.

Keywords:url list to sitemapformatconverterdeveloper

Related tools