← All free tools
XML Sitemap Generator
Generate a properly formatted XML sitemap for any website. We use your existing sitemap when one is published, or crawl your site to build one, then hand you a ready-to-submit sitemap.xml for Google Search Console.
⚡ Interactive demo — sample data
Built a valid XML sitemap with 6 URLs from this sample site — ready to download and submit.
Generated valid <urlset> with sitemaps.org 0.9 namespace
Looks good
6 unique pages found and de-duplicated
Looks good
Added <loc>, <changefreq> and <priority> to every URL
Looks good
All URLs are absolute (full scheme + domain)
Looks good
Reminder: add a Sitemap: line to your robots.txt after uploading
Warning
Reminder: submit the file in Google Search Console & Bing Webmaster Tools
Warning
This is a sample. Run the real check on your own URL above ↑
About this tool
Generate a properly formatted XML sitemap for any website. We use your existing sitemap when one is published, or crawl your site to build one, then hand you a ready-to-submit sitemap.xml for Google Search Console.
How it works
Enter your site URL
Paste your homepage URL and run the generator. We first look for a sitemap you've already published. If there isn't one, we crawl your site, follow internal links, and collect every reachable page so the sitemap reflects your real structure — not a stale list.
Review the generated sitemap
You get the page count plus a preview of the URLs we found, wrapped in valid XML — a <urlset> with one <loc> entry per page and standard <changefreq> and <priority> hints. Scan the list to confirm we found the pages you expected and nothing private slipped in.
Download and add it to your site
Download the sitemap.xml file, upload it to your site root (so it lives at yourdomain.com/sitemap.xml), then submit that URL in Google Search Console and Bing Webmaster Tools and add a Sitemap: line to your robots.txt so crawlers find it on their own.
What we check
- Existing sitemap detection — Before crawling, we check whether you already publish a sitemap. If you do, we read it and rebuild from those URLs — faster and closer to what you intend to expose than a fresh crawl.
- Crawlable pages — When there's no published sitemap, we crawl your site following internal links and list the pages we can reach. Pages with no link pointing to them won't be found by any crawler — including search engines — which is itself a useful signal.
- Valid XML structure — The output is a proper <urlset> document with the sitemaps.org 0.9 namespace, one <url> block per page, and a <loc> element holding each full, absolute URL. This is the exact format Google and Bing expect.
- Per-URL hints — Each entry carries <changefreq> and <priority> values. These are optional hints, not commands — search engines treat them as suggestions and rely far more on how often a page actually changes.
- Duplicate URLs — We de-duplicate the list so the same page doesn't appear twice. Duplicate <loc> entries waste crawl budget and can muddy which version of a URL you want indexed.
- Absolute URLs — Every <loc> uses a full, absolute URL with scheme and domain. Relative paths are invalid in a sitemap and will be rejected when you submit the file.
Common issues we catch
- Sitemap not submitted anywhere — A sitemap sitting on your server does nothing on its own if no crawler knows about it. You have to submit the URL in Search Console and Bing Webmaster Tools, add it to robots.txt, or both — otherwise it's just a file.
- Missing the robots.txt Sitemap line — A single line — Sitemap: https://yourdomain.com/sitemap.xml — in robots.txt lets any crawler discover the file automatically. It's the most overlooked step and the easiest to add.
- Including pages you don't want indexed — Listing noindex pages, redirects, login or thank-you pages, or 404s sends mixed signals. A sitemap should only contain canonical, indexable, 200-status URLs — the pages you actually want in search results.
- Exceeding the size limits without splitting — A single sitemap file is capped at 50,000 URLs and 50MB uncompressed. Larger sites must split into multiple files and reference them all from a sitemap index — a master file that lists each child sitemap.
- Orphan pages missing from a crawled sitemap — If a page has no internal link pointing to it, a crawl-based generator can't find it — and neither can search engines. A page missing here is often a discoverability problem worth fixing on the site itself.
- Stale sitemap after a redesign — Sitemaps generated once and forgotten keep listing deleted URLs and miss new ones. Regenerate after any structural change so crawlers spend their budget on pages that still exist.
- Wrong file location — Search engines expect the sitemap at a reachable URL on your domain, conventionally /sitemap.xml at the root. Bury it in a subfolder without referencing it from robots.txt or Search Console and crawlers won't stumble onto it.
Where this matters
- Google Search Console — Submit your sitemap URL under Sitemaps to tell Google where your pages live and watch how many it has discovered and indexed. This is the primary way to get a new sitemap noticed by Google.
- Bing Webmaster Tools — Bing accepts the same sitemap file. Submitting it there covers Bing and the search experiences that draw on its index, with its own crawl and indexing reports.
- robots.txt — Adding a Sitemap: line to robots.txt is supported by all major search engines and lets crawlers find your sitemap without any manual submission — useful as a backup to Search Console.
- WordPress, Shopify & Wix — Many platforms auto-generate a sitemap (often at /sitemap.xml or /sitemap_index.xml). When yours does, we read it; when it doesn't or it's incomplete, the crawl-built file gives you a clean alternative you control.
- Large & multi-section sites — Sites past the 50,000-URL limit need a sitemap index pointing to several child sitemaps. The same XML format applies — the index just lists sitemaps instead of pages.
Frequently asked questions
What is an XML sitemap?
An XML sitemap is a file that lists the pages on your site you want search engines to know about. Each page appears as a <loc> entry inside a <urlset> document. It helps crawlers discover pages and understand your structure, especially on large or lightly-linked sites.
Do I need a sitemap if my site is small?
It's not strictly required — search engines can find well-linked pages on their own — but a sitemap rarely hurts and helps ensure nothing is missed. It's most valuable for large sites, new sites with few backlinks, and pages that aren't linked prominently.
How many URLs can one sitemap hold?
A single sitemap file can contain up to 50,000 URLs and must stay under 50MB uncompressed. If your site is larger, split it into multiple files and list them all in a sitemap index, which can itself reference up to 50,000 sitemaps.
Where do I put the sitemap file?
Upload it to your site so it's reachable at a public URL — conventionally yourdomain.com/sitemap.xml at the root. Then submit that exact URL in Search Console and Bing Webmaster Tools, and add a Sitemap: line to your robots.txt.
What do changefreq and priority actually do?
They're optional hints. <changefreq> suggests how often a page changes and <priority> suggests its relative importance on your site. Search engines treat both as loose signals at most and rely far more on observed crawl data, so don't agonize over the values.
How do I submit my sitemap to Google?
Open Google Search Console for your verified property, go to the Sitemaps section, enter the path to your sitemap (such as sitemap.xml), and submit. Google will report how many URLs it discovered and flag any parsing errors.
How often should I regenerate my sitemap?
Regenerate whenever your site structure changes meaningfully — after adding or removing sections, launching pages, or a redesign. A stale sitemap that lists deleted pages or misses new ones wastes crawl budget and can slow indexing.
Why is a page missing from my generated sitemap?
If we built the sitemap by crawling and a page has no internal link pointing to it, the crawl can't reach it — and neither can search engines. The fix is usually to link to that page from somewhere on your site so it becomes discoverable.
This is one of several free SEO tools from Custom Web Audits. For a complete, prioritized analysis of your whole website, run a full audit.