Skip to main content

XML Sitemap Generator

Generate a valid XML sitemap from a URL list with per-URL lastmod, changefreq, and priority.

Written by Golam Rabbani, Founder & Lead Engineer

One per line. Optional per-URL overrides: URL | lastmod | changefreq | priority

YYYY-MM-DD or full ISO 8601

0.0 to 1.0

How to use this xml sitemap generator

  1. Paste your URLs into the textarea — one absolute URL per line.
  2. Optionally append per-URL overrides: "URL | lastmod | changefreq | priority".
  3. Pick a default Last modified date (YYYY-MM-DD or full ISO 8601) for URLs that lack their own.
  4. Pick a default change frequency and priority — they apply to URLs without overrides.
  5. Press Generate to emit a sitemaps.org-compliant XML sitemap.
  6. Use Copy to grab the XML, save it as sitemap.xml, and upload to your site root.

About this xml sitemap generator

The XML sitemap generator builds a sitemaps.org 0.9 file from a URL list. URLs are validated as absolute http/https addresses; lastmod values must be either a YYYY-MM-DD date or a full ISO 8601 timestamp; changefreq must be one of always/hourly/daily/weekly/monthly/yearly/never; priority must be a number between 0.0 and 1.0. Per-URL pipe-delimited overrides let you set different metadata for individual pages without splitting into multiple sitemaps. The 50,000-URL spec ceiling is enforced so you do not accidentally exceed what Google or Bing will read in a single file.

Worked example: paste three lines — https://example.com/ https://example.com/about https://example.com/blog | 2026-05-28 | weekly | 0.8

Set default lastmod = 2026-05-28, default changefreq = monthly, default priority = 0.5, then press Generate. You get: <?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-05-28</lastmod> <changefreq>monthly</changefreq> <priority>0.5</priority> </url> <url> <loc>https://example.com/about</loc> <lastmod>2026-05-28</lastmod> <changefreq>monthly</changefreq> <priority>0.5</priority> </url> <url> <loc>https://example.com/blog</loc> <lastmod>2026-05-28</lastmod> <changefreq>weekly</changefreq> <priority>0.8</priority> </url> </urlset>

Save the result as sitemap.xml, upload to your site root, and reference it from robots.txt.

FAQ

What is the URL limit per sitemap?
sitemaps.org caps a single sitemap at 50,000 URLs and 50 MB uncompressed. The generator enforces the URL count up front; if you have more URLs, split them across multiple sitemaps and use a sitemap index.
How do per-URL overrides work?
Append pipe-separated values after the URL: "URL | lastmod | changefreq | priority". Any field you leave blank inherits the default you picked in the form, so you only need to override what actually differs.
Do changefreq and priority still matter?
Google has said they largely ignore both. lastmod, however, is read and helps Google prioritise re-crawling. Set lastmod accurately even if you skip changefreq and priority.
Why are special characters in URLs escaped?
The XML spec requires &, <, >, ", and ' to be entity-encoded inside element text. The generator escapes them so the output validates and crawlers can parse it without errors.
Should I gzip the file?
You can — sitemap.xml.gz is supported by Google and Bing — but it is optional. Many sites publish the plain XML for easier debugging and let the web server transparently compress it (toolnest itself serves /sitemap.xml uncompressed precisely because crawlers occasionally mishandle gzipped sitemaps).
Is anything sent to a server?
No. URL validation and XML generation happen entirely in your browser.