Skip to content
T
Tools.Town
Free Online Tools for Everyone
<urlset>

sitemap.xml Generator

100% Free

Generate a valid sitemap.xml from a list of URLs — with lastmod, priority, and changefreq support. Paste URLs, set defaults, download or copy the XML.

Valid XML
Sitemaps 0.9
Instant
Client-Side

1. URLs

3 valid URLs found

2. sitemap.xml

Embed This Tool

Easy to Embed

Add sitemap.xml Generator to your website or blog in seconds.

  • Responsive design
  • Lightweight & fast
  • No backend required
  • Always up-to-date
<iframe
  src="https://tools.town/embed/sitemap-xml-generator/"
  width="100%"
  height="600"
  style="border:none; border-radius:12px;"
  loading="lazy"
  title="sitemap.xml Generator">
</iframe>

Share This Tool

Share Instantly

Share sitemap.xml Generator with anyone — no login required.

  • Shareable link
  • No login required
  • Works on any device
  • No account needed

Share via

Advertisement

How to Use

  1. 1 Paste your URLs into the text area — one per line
  2. 2 Optionally set a default changefreq (e.g. weekly) and priority (e.g. 0.8)
  3. 3 Enable lastmod to include a modification date on each URL
  4. 4 Toggle pretty-print for indented or compact XML
  5. 5 Click Copy to copy the sitemap, or paste the output directly into your server

Features

  • Validates each URL (must start with http:// or https://)
  • Supports up to 50,000 URLs per the Sitemaps protocol spec
  • Tab-separated columns for per-URL lastmod, changefreq, and priority
  • Comment lines starting with # are silently ignored
  • Escapes special XML characters (&, <, >, ', ") in all URLs
  • Inline error report with the line number of each invalid URL

Why it Matters

Search engines rely on your sitemap to discover and index all your pages efficiently, especially new or rarely-linked content. A correctly formatted sitemap.xml — with valid changefreq and priority hints — can speed up indexing by days or weeks. Building one by hand is error-prone; a single malformed character breaks the whole file.

★★★★★

Use Cases

Developers

Generate the sitemap for a new site before launch

SEO Professionals

Build or update sitemaps for client sites without a plugin

Static Sites

Create a sitemap for Jekyll, Hugo, or Astro sites from a URL export

Migration Projects

Submit a targeted sitemap of new URLs after a domain migration

What this tool does

The sitemap.xml Generator builds a spec-compliant Sitemaps 0.9 XML file from a plain list of URLs. Add optional changefreq, priority, and lastmod attributes globally or per URL using tab-separated columns.

How it works

Paste one URL per line. Set global defaults for changefreq and priority if you want them on every entry. Enable lastmod to include a modification date. The tool validates each URL, skips comments and blank lines, escapes special XML characters, and outputs a file you can paste directly into your web root.

Privacy

Everything runs locally in your browser. No URLs are uploaded or stored.

Frequently Asked Questions

What is a sitemap.xml?
A sitemap.xml is an XML file that lists all the URLs on your website. You submit it to search engines via Google Search Console or Bing Webmaster Tools so their crawlers can discover every page, even ones with few inbound links. The Sitemaps 0.9 protocol specifies the format, including the optional lastmod, changefreq, and priority attributes.
How do I submit my sitemap to Google?
Go to Google Search Console → Sitemaps, enter the full URL to your sitemap (e.g. https://example.com/sitemap.xml), and click Submit. Google will crawl it and show how many URLs were discovered vs. indexed. You can also reference your sitemap in your robots.txt file with the line: Sitemap: https://example.com/sitemap.xml
What is changefreq?
changefreq hints how often a page's content changes — always, hourly, daily, weekly, monthly, yearly, or never. Search engines treat this as a hint, not a directive. weekly is a safe default for most content pages; daily suits news or blog archives.
What is priority?
priority (0.0–1.0) signals the relative importance of a URL compared to other URLs on the same site. The default per the spec is 0.5. Setting all URLs to 1.0 has no effect because the value is relative — only use it to differentiate between sections (e.g. 1.0 for home and category pages, 0.7 for individual posts, 0.3 for tag pages).
Can I have more than 50,000 URLs in one sitemap?
No. The Sitemaps protocol caps each individual sitemap file at 50,000 URLs and 50 MB uncompressed. Larger sites use a sitemap index file that points to multiple sub-sitemaps.
Is my data stored or uploaded anywhere?
No. All processing runs locally in your browser. Your URLs are never sent to any server.

Related Tools You Might Like

Browse more free tools