Free tools • Fresh ideas
XML Sitemap Generator
Build a sitemap from supplied absolute URLs on one origin.
How to use the XML Sitemap Generator
Supply canonical public URLs. The tool removes exact duplicates and does not crawl your site. Host the result in the appropriate location and submit it through your search console if relevant.
Example input
https://example.com/
https://example.com/guide/
Prepare the URLs you want a crawler to discover
Enter one full public URL per line. Use the final version of each address, including the intended scheme, hostname and path. For example, if the public site redirects an unprefixed host to a preferred host, list the preferred host. If a page has a canonical URL for the same content elsewhere on your site, use that preferred URL. Keep the set to addresses you would want visitors to reach directly from search.
Collect these addresses from your publishing system, a site inventory or a reviewed spreadsheet. The generator creates a sitemap from what you supply. It does not visit the addresses, detect redirects or walk through the site. Test a sample in a logged-out browser before importing a list, and run a larger check when releases change routing. A draft editor link, a search results path and a page requiring authentication usually belong outside this public file.
Understand the generated XML
The result contains a URL set and a location for each accepted address. XML uses some characters as markup, including ampersands and angle brackets. An address with a query string may therefore look slightly different in the generated file because the XML text must escape those characters. Keep the escaping when you upload the file. An XML parser reads the escaped text as the original address.
This generator does not manufacture last-modified dates, update frequencies or importance scores. If your publishing system supplies reliable dates for substantial changes, it can include those in a sitemap it maintains itself. When publishing a manually generated file, an accurate address list is a practical starting point. Avoid copying unverified dates or flags into every entry just because a reference file includes optional fields.
Check the public file after uploading
Download the XML and upload it in the location where you intend to serve it. Visit the file directly and verify that the body is the XML you prepared. An application that redirects missing routes to its homepage can return a nominal success while serving HTML. Check the first lines of the file and inspect the response if the publishing system changes the filename. Place it at a path suitable for the site and follow your search provider’s requirements for site ownership and scope.
If the address inventory is large or regularly changing, use the sitemap produced by your content management system or build process. A manually saved sitemap is easy to forget when the publishing team adds and removes many pages. Sitemap protocols also impose size and URL limits. Split larger collections in the publishing system and use a sitemap index when needed. Maintain the separate XML files together, so entries do not remain stale after a section moves.
Keep discovery signals aligned
The sitemap should agree with ordinary navigation links, canonical links and redirects. If the navigation and sitemap advertise different URLs for the same material, resolve that difference where the URLs are produced. Where a site has multiple languages, verify that each intended version has its own working address and that any language alternate markup uses consistent URLs. Check important pages individually after deployment.
Use your search property’s sitemap report to see whether the file can be fetched and read. Submission helps a crawler discover the list, and indexing is a separate step. If a listed page is excluded, review its actual response, the page’s directives and the reported canonical. Start with a page you can verify rather than changing the entire sitemap at once. Compare the report with the file currently served, since a crawler may still have the previous version.
When retiring URLs, remove them from the next sitemap and update their incoming internal links. Preserve relevant permanent redirects where an equivalent page has moved. A short address change record can make the next refresh easier to verify.