Free XML Sitemap Generator
Runs locallyUpdated 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 Tag | Required? | Purpose | How Google Uses It in 2026 |
|---|---|---|---|
<urlset> | Yes | Root container declaring the sitemaps.org/schemas/sitemap/0.9 namespace | Required for valid XML parsing |
<url> | Yes | Parent block for each individual URL entry | Groups metadata for one canonical page |
<loc> | Yes | Full, absolute canonical URL (must match protocol, www vs non-www) | Primary URL queued for crawling |
<lastmod> | Optional | ISO 8601 date (YYYY-MM-DD) of the last significant content update | Used by Google to trigger recrawls when accurate |
<changefreq> | Optional | Hint for how often the page changes (weekly, monthly) | Ignored by Googlebot |
<priority> | Optional | Relative 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
- Include only
200 OK, indexable canonical URLs. Never include301redirects,404pages, ornoindexURLs in your sitemap. - Match exact URL formatting. If your live site runs on
https://www.example.com, do not listhttp://example.comin<loc>. - Escape special XML characters. Ampersands (
&) in URLs must be written as&(handled automatically by this generator). - Pair with internal links. A URL listed in
sitemap.xmlwith 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
<sitemapindex> file.Related SEO Analysis Tools
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 →
Guides for XML Sitemap Generator
Step-by-step articles that use this tool.
- XML Sitemap Best Practices: Limits & lastmod (2026)Build a valid XML sitemap with canonical URLs, accurate lastmod dates, sitemap indexes, and fixes for common Google Search Console indexing gaps.
- OAI-SearchBot vs GPTBot: Allow ChatGPT Search & Block AI Training in robots.txtLearn the exact difference between OpenAI's OAI-SearchBot, GPTBot, and ChatGPT-User crawlers. Copy a tested robots.txt snippet that allows ChatGPT Search citations while blocking AI model training.
- Hreflang Tags: 2026 Setup, ISO Codes & x-default GuideImplement hreflang correctly with reciprocal return links, valid language and region codes, self-referencing canonicals, and x-default examples.