An XML sitemap generator turns a plain list of your page URLs into a valid sitemap.xml file that search engines can read to discover and crawl your site faster. That is the whole job, but there is real nuance in doing it correctly: the file has to follow the sitemaps protocol exactly, the URLs have to be absolute and properly escaped, and the whole thing has to live in the right place and be submitted the right way. This guide explains what an XML sitemap is, what every tag means, the limits you must respect, and how to use this free sitemap generator to produce a file Google will accept on the first try.
What is an XML sitemap?
An XML sitemap is a structured file that lists the URLs on a website you want search engines to know about. It is written in XML rather than HTML, so it is built for machines, not human visitors. When a crawler like Googlebot or Bingbot fetches your sitemap, it reads a tidy inventory of your important pages instead of having to discover every one of them by following links.
Think of it as a table of contents for crawlers. It does not replace good internal linking, and it does not guarantee indexing — a sitemap is a discovery aid, not an indexing command. But for large sites, new sites with few backlinks, sites with deep or poorly linked pages, and sites with lots of media or frequently updated content, a sitemap can be the difference between a page being found in hours versus weeks. This is why a sitemap generator is one of the first tools most SEOs reach for when launching or auditing a site.
Anatomy of a sitemap.xml file
Every valid sitemap follows the same skeleton. At the top is the XML declaration, then a single <urlset> root element that declares the sitemaps protocol namespace. Inside it, each page is a <url> block. Here is a minimal example of what this sitemap.xml generator produces:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-10-17</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://example.com/blog</loc>
<lastmod>2026-10-17</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
</urlset>Notice the structure: one <urlset>, many <url> blocks, each with a required <loc> and up to three optional children. Getting this shape right by hand is error-prone, which is exactly why you generate sitemap files with a tool rather than typing them.
What each sitemap tag means
The sitemap protocol 0.9 defines a small, fixed vocabulary. Understanding each tag tells you what to put in it — and what is safe to ignore:
| Tag | Required? | What it holds |
|---|---|---|
| <loc> | Yes | The full, absolute URL of the page (max 2,048 characters), XML-escaped. |
| <lastmod> | Optional | Date the page last changed, in W3C / ISO 8601 format (e.g. 2026-10-17). |
| <changefreq> | Optional | A hint: always, hourly, daily, weekly, monthly, yearly or never. |
| <priority> | Optional | Relative importance from 0.0 to 1.0 (default 0.5). |
The <loc> tag is the only one that is strictly required, and it must be a complete URL including the protocol (https://) and host. Relative paths like /about are invalid in a sitemap, which is why this tool validates every line and skips anything that does not parse as an http or https URL.
Why URLs must be XML-escaped
XML treats a handful of characters as special, so if a raw URL contains them the file will not validate. The most common offender is the ampersand in query strings. A URL like https://example.com/p?id=12&ref=home has to be written with the ampersand escaped as & inside the <loc> tag. The generator above handles this for you, escaping &, <, >, " and ' automatically so a stray character never breaks your sitemap.
Do changefreq and priority actually matter?
This is where honesty beats SEO folklore. For years, people have obsessed over setting the “right” changefreq and priority values. The reality, confirmed repeatedly by Google’s own search engineers, is that Google largely ignores both. They are self-reported hints, and because almost everyone sets their homepage to priority 1.0 and claims pages change “daily,” the signals became noise Google learned to discount.
So why does this tool still write them? Two reasons. First, they are part of the valid 0.9 protocol, and including them does no harm. Second, not every crawler is Google — some smaller search engines and internal tools still read these fields. The practical advice is simple: set a sensible default, do not agonize over per-URL tuning, and do not expect these values to influence rankings. The one piece of metadata that does carry weight is lastmod.
Google does use lastmod — but only when it is accurate and consistent. If you stamp every URL with today’s date on every deploy regardless of whether the page actually changed, Google will stop trusting your dates. Use lastmod truthfully, or leave it off. The toggle in the tool lets you add today’s date when it genuinely reflects a fresh export, and omit it when it would not.
Sitemap limits: 50,000 URLs and 50MB
The protocol sets two hard ceilings on a single sitemap file. Exceed either and search engines will reject or truncate it:
- 50,000 URLs maximum per sitemap file.
- 50MB maximum uncompressed file size.
Most sites never come close to these, but large e-commerce catalogs, news publishers and programmatic sites do. The generator flags you the moment your pasted list crosses the 50,000-URL line so you know it is time to split. When you hit the ceiling, the answer is not a bigger file — it is multiple files tied together with a sitemap index.
What is a sitemap index file?
A sitemap index is a “sitemap of sitemaps.” Instead of a <urlset> listing pages, it uses a <sitemapindex> element listing other sitemap files. You might have sitemap-blog.xml, sitemap-products.xml and sitemap-pages.xml, each under 50,000 URLs, and a single sitemap.xml index that references all three. Here is the shape:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://example.com/sitemap-blog.xml</loc>
<lastmod>2026-10-17</lastmod>
</sitemap>
<sitemap>
<loc>https://example.com/sitemap-products.xml</loc>
<lastmod>2026-10-17</lastmod>
</sitemap>
</sitemapindex>You submit the single index file to Google and it crawls every child sitemap automatically. An index can itself reference up to 50,000 sitemaps, so even the largest sites are covered. Organizing by section also makes debugging easier: Search Console reports coverage per sitemap, so you can see at a glance whether your product pages or your blog has an indexing problem.
How to create a sitemap with this tool
Using the XML sitemap generator above takes under a minute. The workflow is deliberately simple because the hard parts — valid XML, escaping, structure — are handled for you:
- Paste your URLs, one per line, into the text box. Use full absolute URLs including https://.
- Choose a default change frequency from the dropdown — weekly is a fine default for most sites.
- Set a default priority with the slider, from 0.0 to 1.0. Leaving it at 0.8 is perfectly reasonable.
- Toggle lastmod on if your list reflects pages that genuinely changed today; off if it does not.
- Copy or download the generated sitemap.xml from the output box.
Any line that is not a valid http or https URL is skipped and listed separately so you can fix it, and duplicate URLs are removed automatically. The count of included URLs updates live, so you always know exactly how big your sitemap is.
Where to put your sitemap and how to reference it
Once you have your file, two steps make it discoverable. First, upload it to the root of your domain, so it lives at https://yourdomain.com/sitemap.xml. Location matters: a sitemap can only contain URLs that share its host and sit at or below its own directory level, so a root-level file is the safest, most flexible placement.
Second, reference the sitemap in your robots.txt. Adding a single line tells every compliant crawler where to find it without any manual submission:
User-agent: * Allow: / Sitemap: https://yourdomain.com/sitemap.xml
You can list multiple Sitemap: lines if you have several sitemaps or an index. If you do not already have a robots file, build one with the robots.txt generator and drop the sitemap line in before you deploy.
How to submit your sitemap to Google Search Console
Referencing the sitemap in robots.txt lets crawlers find it passively, but submitting it directly in Google Search Console gets it processed faster and gives you a coverage report. The steps:
- Open Google Search Console and select the correct property for your site.
- In the left menu, go to Indexing → Sitemaps.
- Under “Add a new sitemap,” enter the path — usually just sitemap.xml — and click Submit.
- Wait for Google to fetch it. The status should read “Success,” with a count of discovered URLs.
Do the same in Bing Webmaster Tools to cover Microsoft’s index, which also feeds Copilot and other AI answer engines. After submission, revisit the report over the following days: it will show how many submitted URLs were actually indexed, and surface any errors — unreachable URLs, noindex pages included by mistake, or redirects that should not be in a sitemap.
Dynamic vs static sitemaps
There are two ways to keep a sitemap current, and the right one depends on how often your site changes. A static sitemap is a fixed file you generate and upload manually. It is perfect for small or slow-moving sites — a portfolio, a brochure site, a documentation set — where pages rarely change. This paste-based tool is built exactly for that case: you export your URLs, generate the file, upload it, and you are done.
A dynamic sitemap is generated automatically by your CMS or framework every time content changes. WordPress plugins, Next.js route handlers, Shopify and most modern platforms can output a live sitemap that always reflects the current URL set. If your site publishes frequently — a news site, an active blog, a large store — a dynamic sitemap is worth the setup because it never goes stale. A good middle ground is to regenerate a static file on each deploy as part of your build pipeline.
This generator is a paste-based, client-side tool today. A full-crawl version that discovers your URLs automatically by following links is on the roadmap. Until then, you can get a URL list from your CMS export, your analytics, a crawler, or the bulk noindex checker, and paste it straight in.
Common sitemap mistakes to avoid
A sitemap is only useful if it is clean. These are the errors that most often trip sites up, and they are all avoidable:
- Including non-canonical or redirected URLs. Only list the final, canonical version of each page. Listing a URL that 301-redirects elsewhere sends a mixed signal.
- Including noindex or blocked pages. A sitemap says “please index this,” so it must never contain pages you have marked noindex or disallowed in robots.txt. That is a direct contradiction.
- Using relative URLs. Every <loc> must be absolute, with protocol and host. This tool enforces that automatically.
- Mixing HTTP and HTTPS or www and non-www. Stick to one canonical host across the whole file.
- Letting it go stale. A sitemap listing pages that 404 erodes trust. Regenerate it when your URL set changes.
- Lying with lastmod. Inaccurate dates get ignored. Only stamp dates that reflect real changes.
Sitemaps, crawl budget and SEO
A sitemap’s real SEO value is crawl discovery and efficiency, not a direct ranking boost. For a small site, Google will find your pages through links regardless. For a large site, crawl budget becomes a genuine constraint — Googlebot only fetches so many URLs per visit, and a clean sitemap helps it spend that budget on pages that matter rather than rediscovering old ones or wandering into low-value parameters.
Sitemaps are especially valuable for pages that are hard to reach through normal navigation: deep category pages, recently published content with no backlinks yet, and orphaned pages. By listing them explicitly, you give crawlers a direct route. Combine the sitemap with strong internal linking and a correct robots.txt and you have covered the three pillars of crawlability. Browse the complete set of utilities on the free SEO tools index to round out your technical setup.
Privacy: why in-browser generation matters
This free sitemap generator runs entirely in your browser with JavaScript. The URLs you paste are processed on your own device and never sent to, stored on, or logged by any server. That matters for staging sites, unreleased product pages, internal tools and client work under NDA — your URL structure can reveal a lot about an unlaunched project, and in-browser generation keeps it private. Paste, generate, download, close the tab, and nothing is left behind.
Keep the limits in mind — 50,000 URLs and 50MB per file, a sitemap index when you exceed them — use lastmod honestly, do not sweat changefreq and priority, and submit the result in Search Console. Paste your URLs into the generator above to build a valid sitemap.xml in seconds.