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.
3 URLs
<?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/about</loc>
</url>
<url>
<loc>https://example.com/blog</loc>
</url>
</urlset>Save as sitemap.xml at your domain root and add it to robots.txt.
How to use the sitemap tool
- 1Paste your URLs, one per line.
- 2Optionally add a lastmod date.
- 3Copy the XML and save it as sitemap.xml at your domain root.
- 4Submit 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.
More free SEO tools
Skip the manual work - let Spook rank you
These tools help with the pieces. Spook does the whole job: it finds winnable queries, writes the articles, and publishes them on autopilot.