Build a sitemap.xml with the XML sitemap generator
An XML sitemap lists the URLs you want search engines to discover. It is especially useful for new sites with few backlinks, large sites, and pages that are hard to reach through internal links. Many CMSs create sitemaps automatically, but static sites, landing-page builders and custom apps often do not. This XML sitemap generator turns a plain list of URLs into a standards-compliant file.
Example
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/blog/</loc>
<lastmod>2026-09-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
What the generator takes care of
- Relative paths are resolved against the base URL, so you can paste paths copied from your router or file system.
- Duplicates are removed after normalisation.
- Escaping: characters such as
&in query strings are XML-escaped, a common reason hand-made sitemaps fail to parse. - Per-URL values: a date (YYYY-MM-DD), a change frequency word or a priority between 0 and 1 after the URL overrides the defaults.
- Limits: a sitemap may contain at most 50,000 URLs (and 50 MB uncompressed). Larger sites need several sitemaps and a sitemap index.
Do lastmod, changefreq and priority matter?
Google has stated that it ignores changefreq and priority. It does use lastmod when the value is consistently accurate, so only include dates that reflect real content changes — setting every page to today's date on every build teaches search engines to ignore the field. Bing also treats accurate lastmod values as a useful signal.
Which URLs belong in a sitemap?
Include canonical, indexable pages that return HTTP 200. Leave out redirects, error pages, URLs with tracking parameters, pages blocked in robots.txt and pages marked noindex. Use the same protocol and host (with or without www) that your canonical tags use.
Submitting the sitemap
Upload the file to your site root, reference it in robots.txt with a Sitemap: line — the robots.txt generator adds it for you — and submit it in Google Search Console and Bing Webmaster Tools. For multilingual sites, add alternate language links with the hreflang generator, and check the finished file with the XML validator if you edit it by hand.
Keeping sitemaps up to date
Search engines re-read sitemaps regularly, so an accurate file keeps paying off long after you submit it. If you move to a new domain, submit the old and new sitemaps together for a while so crawlers find the redirects quickly.
A sitemap is only useful when it reflects the current site. Regenerate it whenever you publish, move or delete pages, and keep the file free of URLs that redirect or return errors — Search Console reports these as issues. For sites that change daily, generating the sitemap automatically from your database or build step is best; this tool is ideal for small static sites, landing pages, documentation and one-off migrations where you already have a list of URLs, for example exported from a crawler or spreadsheet.
Privacy
The tool runs entirely in your browser. Nothing you type or paste is sent to our servers.