XML sitemap generator
Enter any URL. We'll check for an existing sitemap or crawl your site, then build a clean sitemap.xml you can download and submit to Google.
Why you need a sitemap
A sitemap is the fastest way to tell search engines which pages on your site exist. Without one, Google discovers pages by following links — which can take weeks for new content and misses anything not well-linked internally. With a sitemap, you hand Google the full list upfront.
Sitemaps are essential for: new sites with few backlinks, sites with hundreds of programmatic pages, sites with pages that live more than 2-3 clicks from the homepage, and sites that publish frequently. They're also required by Google Search Console's sitemap submission feature, which gives you indexation reporting.
How this tool finds your URLs
- 1. Check robots.txt — we look for a
Sitemap:declaration pointing to your existing sitemap URL. - 2. Try common sitemap paths —
/sitemap.xml,/sitemap_index.xml,/sitemap-index.xml. - 3. Parse child sitemaps — if we find a sitemap index (a list of other sitemaps), we follow up to 5 of them to collect URLs.
- 4. Fall back to crawling — if no sitemap exists, we crawl your homepage breadth-first, following same-origin links up to 200 pages total.
- 5. Deduplicate & output — we remove duplicates, trim anchors, filter cross-origin links, and generate a valid XML sitemap.
Frequently asked questions
What is an XML sitemap?
An XML sitemap is a file that lists the URLs on your site along with metadata (last modified date, change frequency, priority). Search engines use it as a hint for which pages to crawl and index. It's especially useful for large sites, new sites, and sites with pages that aren't well-linked internally.
Where does this tool get the URLs from?
First we check your robots.txt for a Sitemap: declaration, then we try the common sitemap paths (/sitemap.xml, /sitemap_index.xml, /sitemap-index.xml). If we find an existing sitemap, we extract and deduplicate its URLs. If we can't find one, we fall back to crawling your homepage breadth-first, following same-origin links up to 200 pages.
Why is the sitemap capped at 200 URLs?
This is a free tool, so we cap at 200 URLs to keep it fast and prevent abuse. For sites with more pages, this output is still a great starting point — you can extend it manually or use a paid crawler like Screaming Frog for comprehensive coverage. Google's own limit is 50,000 URLs per sitemap file (you can link multiple files via a sitemap index).
How do I submit the sitemap to Google?
Save the XML file as sitemap.xml at the root of your site (yoursite.com/sitemap.xml). Then go to Google Search Console → Sitemaps → enter 'sitemap.xml' and click Submit. Also add 'Sitemap: https://yoursite.com/sitemap.xml' to your robots.txt so other crawlers can find it too.
Do I need a sitemap if I'm using Next.js or another framework?
Yes — most frameworks don't generate sitemaps automatically. Next.js has app/sitemap.ts which you can use to generate one dynamically. If you're using a static site, this tool gives you a one-shot sitemap that you can drop into /public/sitemap.xml.