XML Sitemap Generator: Build a Sitemap for Search — Guide
xml sitemap generator: Generate an XML sitemap with canonical URLs, valid dates, and useful page entries, then submit and monitor it in Search Console.

An XML sitemap lists canonical URLs that a site owner wants search engines to discover. It can help crawlers find important pages, especially on a large or recently updated site, but it does not guarantee indexing. Include pages that return successfully and should appear in search; exclude redirects, error pages, and duplicate URL variants. Generate the file, validate its XML, publish it at the site root, and keep it updated when the site changes.
Select canonical, indexable URLs
Use absolute URLs with the correct protocol and host. Include only pages that you want search engines to consider indexing, and use the preferred canonical version when query strings or multiple paths lead to the same content. Do not list URLs blocked from crawling or marked noindex as if they were priority pages. Large sites can split sitemaps by content type and use a sitemap index when protocol limits require it.
Use last-modified dates honestly
The lastmod value should describe a meaningful update to the page, not a file timestamp that changes on every deployment. Search engines may use accurate dates as a crawl hint. Change frequency and priority values are optional hints and are not commands that force a search engine to crawl. Avoid including guessed dates or identical priority values that imply a precision the site does not actually use.
Publish and check the sitemap
Save valid XML at a stable URL such as https://example.com/sitemap.xml, then reference it in robots.txt. Open the URL in a browser and check the server response. Submit the sitemap in Search Console and review discovered URLs, parsing errors, and indexing reports. A sitemap helps communicate discovery information; it does not replace internal links, good page quality, or canonical tags. Revalidate after migrations and large URL changes.
Worked example
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://example.com/about</loc></url>
</urlset>Does submitting a sitemap make every URL indexable?
No. It helps discovery, but search engines decide whether to crawl and index each URL based on many signals and policies.


