NitroSERP

Free XML Sitemap Generator

Runs locally

Updated October 25, 2026

Free XML sitemap generator: paste canonical URLs with optional last-modified dates to build a valid sitemap.xml with lastmod tags. Invalid and duplicate URLs are filtered out.

3 URLs · 2 with lastmod

<?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-10-20</lastmod>
  </url>
  <url>
    <loc>https://example.com/blog/hello-world</loc>
    <lastmod>2026-09-14</lastmod>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
  </url>
</urlset>

How to use XML Sitemap Generator

Paste your canonical HTTPS URLs, one per line. Add the page's real last-modified date after the URL (https://example.com/page 2026-10-20) to output a <lastmod> tag.

Review the URL count and any skipped lines. Leave <changefreq> and <priority> off unless another tool requires them; Google ignores both.

Copy or download the generated sitemap.xml file, host it at your domain root, and submit it in Google Search Console.

Build a standards-compliant sitemap.xml from your URL list

An XML sitemap provides search engines (Googlebot, Bingbot) with a structured inventory of every canonical, indexable URL on your website. Paste one URL per line into this free XML sitemap generator to create valid <urlset> markup ready to save as sitemap.xml.

XML Sitemap elements & how Google treats them

XML TagRequired?PurposeHow Google Uses It in 2026
<urlset>YesRoot container declaring the sitemaps.org/schemas/sitemap/0.9 namespaceRequired for valid XML parsing
<url>YesParent block for each individual URL entryGroups metadata for one canonical page
<loc>YesFull, absolute canonical URL (must match protocol, www vs non-www)Primary URL queued for crawling
<lastmod>OptionalISO 8601 date (YYYY-MM-DD) of the last significant content updateUsed by Google to trigger recrawls when accurate
<changefreq>OptionalHint for how often the page changes (weekly, monthly)Ignored by Googlebot
<priority>OptionalRelative importance inside your own site (0.0 to 1.0)Ignored by Googlebot

Example of a valid sitemap.xml file

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-10-22</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/tools/json-formatter</loc>
    <lastmod>2026-10-22</lastmod>
  </url>
</urlset>

4 rules to prevent Google Search Console sitemap errors

  1. Include only 200 OK, indexable canonical URLs. Never include 301 redirects, 404 pages, or noindex URLs in your sitemap.
  2. Match exact URL formatting. If your live site runs on https://www.example.com, do not list http://example.com in <loc>.
  3. Escape special XML characters. Ampersands (&) in URLs must be written as &amp; (handled automatically by this generator).
  4. Pair with internal links. A URL listed in sitemap.xml with zero internal <a href> links on your website is treated as an orphan page and often stalls in "Discovered – currently not indexed."

Related technical SEO tools & guides

Declare your sitemap path inside robots.txt using the free robots.txt generator, verify preferred URLs with the canonical URL generator, or read our full tutorial on XML sitemap best practices for 2026.

XML Sitemap Generator FAQs

Under the sitemaps.org protocol, a single XML sitemap file can contain up to 50,000 URLs and must not exceed 50 MB (52,428,800 bytes) uncompressed. Larger websites split URLs across multiple sitemap files linked from a <sitemapindex> file.

More seo analysis tools and nearby utilities.

  • Robots.txt Generator

    Free robots.txt generator with AI crawler presets: block AI training bots (GPTBot, ClaudeBot, Google-Extended) while keeping ChatGPT Search, Claude, and Perplexity citations, plus Allow, Disallow, and Sitemap rules.

    Open tool →
  • Canonical URL Generator

    Free canonical URL tag generator: create HTML <link rel="canonical"> tags to consolidate duplicate URLs, UTM query parameters, and syndicated content.

    Open tool →
  • Hreflang Tag Generator

    Free hreflang tag generator: create <link rel="alternate" hreflang="..."> HTML annotations and x-default fallback tags for multilingual and multi-regional SEO.

    Open tool →
  • Meta Tag Generator

    Free SEO meta tag generator: create HTML title tags, meta descriptions, robots directives, and Open Graph tags with live character counters and copy-and-paste head code.

    Open tool →
View all seo analysis tools

Step-by-step articles that use this tool.