Valid XML
Includes the XML declaration, UTF-8 encoding and the sitemaps.org namespace.
Turn a list of page URLs into a valid sitemap.xml file for search engines
This tool is completely free — no credits required. All processing happens in your browser.
<?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-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://example.com/about</loc>
<lastmod>2026-10-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://example.com/pricing</loc>
<lastmod>2026-10-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://example.com/blog/</loc>
<lastmod>2026-10-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://example.com/blog/getting-started</loc>
<lastmod>2026-10-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
A sitemap lists the pages you want search engines to find. This generator writes one from a plain list of URLs, following the sitemaps.org 0.9 protocol, and tells you which lines it couldn't use instead of silently dropping them.
Each line is checked with the standard URL parser, then written as a <url> entry.
Lines must be full http:// or https:// URLs under 2,048 characters. Others are listed as invalid.
URLs are normalized first, so https://example.com and https://example.com/ count as one page.
Each URL goes inside <loc>, with & written as &. Your lastmod, changefreq and priority are added to every entry.
Over 50,000 URLs shows an error, because the protocol allows no more in one file. Split larger sites into several sitemaps.
Includes the XML declaration, UTF-8 encoding and the sitemaps.org namespace.
Repeated URLs are counted and removed.
See exactly which lines were skipped and why.
Add lastmod in YYYY-MM-DD form, a change frequency and a priority from 0.0 to 1.0.
The 50,000-URL and 2,048-character limits are enforced.
Your URL list never leaves your browser.
Anyone who needs a sitemap without a plugin or crawler.
Create a sitemap for a hand-built or static site in seconds.
Generate a sitemap from an exported list of routes.
Submit a fresh list of new pages after a launch.
Build a clean sitemap from audited URLs only.
Leave out redirects, noindex pages and URLs with tracking parameters.
Google uses lastmod only when it's consistently accurate. Update it when the content really changes.
Google ignores priority and changefreq. Other search engines may use them as hints.
Add a Sitemap: line to robots.txt and submit the file in your search console.
Up to 50,000 URLs and 50 MB uncompressed, per the sitemaps.org protocol. Larger sites use several sitemaps listed in a sitemap index file.
Only <loc>, the page URL. lastmod, changefreq and priority are optional.
W3C Datetime. The simplest valid form is YYYY-MM-DD, for example 2026-10-01.
Each line must be a complete URL starting with http:// or https://. Relative paths like /about and text without a domain are skipped and listed.
Usually at the site root as /sitemap.xml. A sitemap can only list URLs on the same host and under the folder where it's stored.
No. It helps search engines discover pages, but they still decide what to crawl and index.