Sitemap Generator
Sitemap Generator
Generate valid XML sitemaps.
Runs entirely in your browser
This tool only generates XML and does not submit it to Google.
How to use this tool
- Fill in the inputs.
- Read the result.
- Copy or download as needed.
About the Sitemap Generator
The Sitemap Generator converts a plain list of page URLs into a valid XML sitemap file, the standard format search engines use to discover and understand the structure of a website's pages. Paste one URL per line, and the tool instantly builds a properly formatted `sitemap.xml` file that you can copy or download.
A sitemap does not directly submit your pages to search engines or send anything to Google — it simply creates a machine-readable map of your site's URLs that crawlers can reference, typically after being placed at your site's root and referenced from your robots.txt file or submitted through a search engine's webmaster tools.
The generator filters your pasted list to keep only lines that look like valid, complete URLs (starting with `http://` or `https://`), which prevents incomplete or malformed entries from producing an invalid sitemap. For each valid URL, it wraps the address in the standard `<url><loc>...</loc></url>` XML structure required by the sitemap protocol, with special characters like ampersands properly escaped so the resulting file is valid XML.
All of the individual URL entries are wrapped inside the required `<urlset>` root element with the correct XML namespace declaration, producing a complete, standards-compliant sitemap file ready to upload to your site.
Common use cases
- Creating a first sitemap for a small website or a set of pages that do not have one yet.
- Quickly rebuilding a sitemap after adding or removing several pages.
- Generating a simple sitemap for a static site that does not have an automated sitemap generation system.
- Producing a partial sitemap for a specific section of a larger site.
- Checking that a hand-written or exported list of URLs converts cleanly into valid sitemap XML.
Tips and best practices
- Only include the final, canonical version of each URL in your sitemap — avoid listing both a "www" and non-"www" version of the same page, or both HTTP and HTTPS versions.
- After generating the file, upload it to your site's root directory and reference it in your robots.txt file so crawlers can find it automatically.
- Large sites with tens of thousands of URLs may need to split their sitemap into multiple files with a sitemap index file, which is beyond the scope of this simple single-file generator.
- Submit your sitemap directly through Google Search Console or Bing Webmaster Tools for faster discovery, in addition to referencing it in robots.txt.