Sitemap XML Generator
Generate sitemap.xml files from URL lists with validation, deduplication, and optional sitemap index creation.
Back to all tools on ToolForge
URL List
Options
Generated Files
Skipped Lines (Invalid URLs)
About Sitemap XML Generator
This sitemap XML generator creates standards-compliant sitemap files from plain URL lists directly in your browser. It validates input URLs, removes duplicates, and supports optional lastmod, changefreq, and priority fields.
Last reviewed: March 31, 2026.
How It Works
- Parse input: One URL per line is read from the text area.
- Validate URLs: Only absolute
http://andhttps://URLs are accepted. - Deduplicate: Repeated URLs are removed automatically.
- Split if needed: URLs are chunked into multiple files based on your max URLs setting.
- Generate XML: The tool outputs one or more
urlsetfiles, and asitemapindexwhen multiple files exist.
Limits and Behavior
- Max URLs per file: Configurable from 1 to 50,000.
- Duplicate handling: First occurrence is kept; duplicates are excluded.
- Invalid lines: Invalid URLs are skipped and listed with line numbers.
- Sitemap index base URL: If left blank, index links default to the first valid URL's origin.
- Privacy: All generation and validation happen locally in your browser.
Example Output Structure
sitemap-index.xml -> references sitemap-1.xml -> references sitemap-2.xml sitemap-1.xml -> first chunk of URLs sitemap-2.xml -> remaining URLs
Recommended Workflow
- Generate sitemap files from your canonical URL list.
- Validate output with Sitemap Validator.
- Add sitemap URL(s) to
robots.txt. - Submit sitemap index or sitemap file in Google Search Console.
Frequently Asked Questions
- What format does this sitemap generator output?
- The tool outputs XML in sitemap.org format. It generates a standard
<urlset>sitemap when URLs fit in one file, and generates multiple sitemap files plus a<sitemapindex>when splitting is needed. - How does the tool handle duplicate URLs?
- Duplicate URLs are removed automatically. The first occurrence is kept and repeated entries are excluded from the generated sitemap files.
- What happens with invalid URLs?
- Invalid lines are skipped and listed in an error report with line numbers. Only absolute HTTP or HTTPS URLs are included in output files.
- Can this tool generate sitemap index files for large sites?
- Yes. You can choose chunk size up to 50,000 URLs per sitemap. When more than one sitemap file is required, the tool creates a sitemap index file that references each generated sitemap.
- Can I include lastmod, changefreq, and priority?
- Yes. You can set optional global values for lastmod date, changefreq, and priority, and they are applied to each URL entry in generated sitemaps.
- Is my sitemap data uploaded to a server?
- No. URL parsing and XML generation run locally in your browser. Input data is not uploaded by this tool.