# XML Sitemap Generator

An XML sitemap lists your important pages so search engines can find them faster - especially valuable for new sites and pages with few internal links. Paste your URLs below to generate a valid sitemap.xml.

## How to use it

1. Paste your URLs, one per line.
2. Optionally add a lastmod date.
3. Copy the XML and save it as sitemap.xml at your domain root.
4. Submit it in Search Console and reference it in robots.txt.

## Frequently asked questions

### What is an XML sitemap?

A file that lists your site's important URLs so search engines can discover and crawl them efficiently. It supplements, but doesn't replace, good internal linking.

### Where do I put my sitemap?

Save it as sitemap.xml at your domain root, add a Sitemap line to your robots.txt, and submit the URL in Google Search Console.

### How many URLs can a sitemap hold?

Up to 50,000 URLs or 50MB uncompressed per file. Larger sites split into multiple sitemaps referenced by a sitemap index file.

### Do I need the lastmod date?

It's optional but helpful - an accurate lastmod hints when a page changed, which can prompt recrawls. Only include it if it's truthful, or search engines learn to ignore it.

### Which pages should I include?

Only indexable, canonical pages you want in search. Leave out noindex pages, redirects, and duplicates - a clean sitemap of your best URLs is more useful than an exhaustive one.

Use the interactive tool: https://www.tryspook.com/tools/sitemap-generator
