Sitemap Generator

Generate an XML sitemap from URLs.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste your page URLs, one per line, and press Generate. The tool returns a sitemap XML document with one url entry per address.

How to use

1
Step 1
Enter your URLs, one per line.
2
Step 2
Press Generate.
3
Step 3
Copy the XML and save it as sitemap.xml at your site root.

How it works

Each non-empty line becomes a url element with a loc. The characters &, <, > and quotes are escaped so the XML stays valid. The tool writes only the loc tag: there is no lastmod, changefreq or priority. The sitemap protocol allows up to 50,000 URLs and 50 MB per file, which the tool does not enforce.

Worked example

Two URLs, one with a query

Input
https://example.com/ https://example.com/about?a=1&b=2
Output
<urlset ...> <url><loc>https://example.com/</loc></url> <url><loc>https://example.com/about?a=1&amp;b=2</loc></url> </urlset>
Walkthrough
The ampersand in the second URL is written as &amp; so the XML is valid. (Real output puts each tag on its own line.)

Limitations

  • No lastmod, changefreq, priority or image/video entries.
  • URLs are not checked for validity or reachability.
  • Does not split into several files for large sites.

Questions

How do I create a sitemap.xml?
Paste your URLs one per line, press Generate and save the output as sitemap.xml.
Does it add lastmod dates?
No. Only loc entries are written.
Why is & shown as &amp;?
XML requires it. Search engines read it as &.
How many URLs can a sitemap have?
50,000 per file under the protocol. Use a sitemap index for more.

Features

  • XML-escaped URLs
  • One url entry per line
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Intro to Google Search Console

    Google Search Central

    Official GSC intro next to SEO preview and audit helpers.

    Watch on YouTube
  • How to avoid duplicate content

    Google Search Central

    Canonical and uniqueness issues meta tools help you catch.

    Watch on YouTube