XML Sitemap Generator

Build a sitemap XML draft from a list of public URLs.

Text inputPreview and copyRuns in your browser

Enter your text

Result

How to use XML Sitemap Generator

  1. Enter the values in the order shown in the input label or try the built-in sample.
  2. Select Run tool to generate the output.
  3. Review the output before copying it.

How it works

Build a sitemap XML draft from a list of public URLs. Deduplicate HTTP URLs, enforce one origin, and escape XML characters.

Formula or processing rules

Deduplicate HTTP URLs, enforce one origin, and escape XML characters.

Worked example

Two absolute URLs produce two loc entries in one XML urlset. The tool removes exact duplicates.

Worked example
MeasureValue
Absolute URLs, one per linehttps://example.com/a https://example.com/b
Result<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url><loc>https://example.com/a</loc></url> <url><loc>https://example.com/b</loc></url> </urlset>

Before using the result

Start with the URLs you intend to appear in search. Use consistent canonicals and exclude URLs that redirect or return an error. Check the generated XML before adding its location in Search Console.

Pros and cons

Pros

Build a sitemap XML draft from a list of public URLs. The sample provides an immediate check of the expected output.

Cons

Choose preferred URLs that should be discoverable. This tool creates XML and does not submit it.

Troubleshooting

Check the input format and compare your case with the built-in sample. Choose preferred URLs that should be discoverable. This tool creates XML and does not submit it.

Common issue and what to check

If an origin or fragment is rejected, remove the fragment or prepare a separate sitemap for the other origin. Use a sitemap index for larger collections where appropriate.

Frequently asked questions

How do I use the text I get back?

Copy the output into the document, list, or compatible tool where you need it.

How does the transformation work?

Deduplicate HTTP URLs, enforce one origin, and escape XML characters.

Can I try a sample first?

Yes. Select Try a sample to load the worked example and see the expected result.

What should I check before using the result?

Choose preferred URLs that should be discoverable. This tool creates XML and does not submit it.

Is my input stored by the tool?

The transformation is computed in the open page. The tool does not save the submitted text.