Sitemap XML Generator

Generate sitemap.xml files from URL lists with validation, deduplication, and optional sitemap index creation.

Back to all tools on ToolForge

More in SEO Tools

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

  1. Parse input: One URL per line is read from the text area.
  2. Validate URLs: Only absolute http:// and https:// URLs are accepted.
  3. Deduplicate: Repeated URLs are removed automatically.
  4. Split if needed: URLs are chunked into multiple files based on your max URLs setting.
  5. Generate XML: The tool outputs one or more urlset files, and a sitemapindex when multiple files exist.

Limits and Behavior

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

  1. Generate sitemap files from your canonical URL list.
  2. Validate output with Sitemap Validator.
  3. Add sitemap URL(s) to robots.txt.
  4. 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.