XML Sitemap Generator

Paste URLs or relative paths, validate them, and export a clean sitemap.xml. Everything runs locally in your browser.

URL List

Blank lines and lines starting with # are ignored. Relative paths need a base site URL below.

    Output

    URLs: 0
    Skipped: 0
    Bytes: 0
    <!-- Your sitemap.xml will appear here. -->

    Advertisement

    Sitemap XML Notes

    A sitemap tells search engines which canonical URLs you want crawled. The sitemap protocol requires each URL inside a <loc> element. This generator also supports optional <lastmod>, <changefreq>, and <priority> hints.

    • Use absolute URLs: https://example.com/page. Relative inputs are converted only when a base site URL is provided.
    • Keep files within limits: one sitemap can contain up to 50,000 URLs and 50 MB uncompressed. Split larger sites and use a sitemap index.
    • Make lastmod accurate: include it only when it reflects the page content date, not the date the sitemap was generated.
    • Escape safely: generated XML escapes characters such as & in query strings.

    FAQ

    Can I include query strings?

    Yes. Query strings are kept and XML-escaped. Use canonical URLs when parameter variants should not be indexed separately.

    Can I use relative paths?

    Yes, enter a base site URL such as https://example.com/. Relative inputs like /about and blog/post are converted to absolute URLs.

    Does priority improve ranking?

    No. Priority is only a crawl hint within your own site and may be ignored. It is not a ranking signal.

    Explore more tools