# XML sitemap generator

> Turn up to 500 canonical URLs into a valid XML sitemap. Deduplicate URLs and escape XML characters locally, then copy or download sitemap.xml.

Canonical: https://usefulshelf.co/tools/xml-sitemap-generator

Turn a list of public page URLs into a sitemap you can download.

## Your details

Runs in your browser. No sign-in or URL fetching. Enable JavaScript to use the form. The instructions and sample output below are available without JavaScript.

- Page URLs (one per line, up to 500) (required)

For URL fields, https:// is optional. For example, example.com.

Action: Generate sitemap. Output filename: `sitemap.xml`.

## How to use this tool

Create an XML sitemap from a list of public, canonical URLs on one origin. This tool deduplicates URLs and escapes XML characters. It does not crawl your website or check HTTP status, redirects, robots directives, or indexability.

1. List only canonical pages you want indexed. Exclude private pages, redirects, errors, and noindex pages.
2. Generate the XML and serve it at /sitemap.xml on the same origin as the listed pages.
3. Reference the sitemap from robots.txt and submit it in your search engine webmaster tools. Regenerate it when your public URLs change.

## Example output

Illustrative Example app data. Replace these values with your own verified details.

```text
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://example.com/</loc></url>
  <url><loc>https://example.com/pricing</loc></url>
  <url><loc>https://example.com/docs</loc></url>
</urlset>

```

## Common questions

### Does a sitemap guarantee indexing?

No. A sitemap helps crawlers discover URLs. Search engines still decide what to crawl and index based on their own systems.

### Why is there no lastmod date?

A lastmod should reflect a real, significant page update. This tool cannot verify update dates, so it omits them instead of giving every URL an invented date. The 500-URL cap is this tool's limit, not the sitemap protocol's limit.

Guide: [How to Create an XML Sitemap (With Examples)](https://usefulshelf.co/blog/how-to-create-an-xml-sitemap).

Reference: [Google: build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap).

## Check your published changes

After publishing, use the [search and AI visibility checker](https://usefulshelf.co/check) to inspect your public HTML and crawler access. It reports technical signals; it cannot predict indexing, rankings, or AI recommendations.

Building a useful app? [See what a reviewed UsefulShelf listing includes](https://usefulshelf.co/pricing).

## Related free tools

- [Meta tag generator](https://usefulshelf.co/tools/meta-tag-generator)
- [SERP preview tool](https://usefulshelf.co/tools/serp-preview)
- [Robots.txt generator](https://usefulshelf.co/tools/robots-txt-generator)
- [Software schema generator](https://usefulshelf.co/tools/software-schema-generator)
- [llms.txt generator](https://usefulshelf.co/tools/llms-txt-generator)
- [UTM builder](https://usefulshelf.co/tools/utm-builder)
- [Word and character counter](https://usefulshelf.co/tools/word-counter)
- [URL slug generator](https://usefulshelf.co/tools/slug-generator)
- [FAQ schema generator](https://usefulshelf.co/tools/faq-schema-generator)
- [Mailto link generator](https://usefulshelf.co/tools/mailto-link-generator)
- [WhatsApp link generator](https://usefulshelf.co/tools/whatsapp-link-generator)

[All free SEO tools](https://usefulshelf.co/tools)
