🎁 Get $100 FREE on your first $500 recharge·Limited-time bonus for new users·Sign up & claim your $100 instantly·$100 bonus on $500+ first deposits·Apply once, instant credit on signup·
* T&C apply
Paste URLs, get sitemap.xml, free

Free XML sitemap generator that builds a valid sitemap.xml you can submit to Google

Paste a list of URLs, set the default changefreq and priority, and download a protocol-valid <urlset> sitemap in seconds. Runs entirely in your browser — nothing is uploaded.

Free No signup Valid 0.9 protocol Copy & download
Paste your URLs (one per line)
Sitemap options
0.01.0
URLs included0
sitemap.xml

100% in-browser. This is a paste-based generator — your URLs never leave your device. A full-crawl version that discovers URLs automatically is on the roadmap.

What you get

A clean, valid sitemap — without hand-writing XML

Protocol-valid output

A proper <urlset> with the sitemaps.org/schemas/sitemap/0.9 namespace — the exact format Google and Bing expect.

One block per URL

Each line becomes a <url> entry with <loc>, and optional lastmod, changefreq and priority.

Safe XML escaping

Query strings with & and other reserved characters are escaped automatically, so your file never breaks validation.

Invalid-line detection

Lines that are not valid http/https URLs are skipped and flagged, so junk never ends up in your sitemap.

Default controls

Set a site-wide changefreq and priority, and toggle a today-dated lastmod on or off in one click.

Copy or download

Copy the XML to your clipboard, or download it straight to sitemap.xml ready to upload to your server.

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:

TagRequired?What it holds
<loc>YesThe full, absolute URL of the page (max 2,048 characters), XML-escaped.
<lastmod>OptionalDate the page last changed, in W3C / ISO 8601 format (e.g. 2026-10-17).
<changefreq>OptionalA hint: always, hourly, daily, weekly, monthly, yearly or never.
<priority>OptionalRelative 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 &amp; 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.

Pair it with the rest of the free toolkit

Reference your sitemap in a robots.txt file, confirm your pages are indexable with the bulk noindex checker, and find everything else at /tools.

Browse all free SEO tools
FAQ

XML sitemap questions, answered

  • An XML sitemap is a machine-readable file — usually named sitemap.xml — that lists the URLs on your site you want search engines to know about. Each entry can carry metadata such as when the page was last modified (lastmod), how often it changes (changefreq) and its relative importance (priority). It helps crawlers discover pages faster, especially on large or newly launched sites.

  • Paste your list of full URLs (one per line) into the generator above, choose a default change frequency and priority, decide whether to include today’s lastmod, and the tool builds a valid <urlset> for you. Click Download to save sitemap.xml, then upload it to the root of your site, for example https://yourdomain.com/sitemap.xml.

  • Upload the file to your site, then open Google Search Console, select your property, go to Indexing → Sitemaps, enter the sitemap path (for example sitemap.xml) and click Submit. You should also reference it in your robots.txt with a Sitemap: line so other crawlers like Bing can find it automatically.

  • Honestly, not much for Google. Google has publicly stated it largely ignores changefreq and priority because they are self-reported hints that are often inaccurate. The lastmod date is the one it does use, when it is accurate and consistent. The tool still writes all three because they are valid protocol fields and some other crawlers read them, but do not expect them to move rankings.

  • A single sitemap file can contain up to 50,000 URLs and must be no larger than 50MB uncompressed. If you exceed either limit, split your URLs across multiple sitemap files and list them all in a sitemap index file. The generator flags you when your list crosses the 50,000-URL line.

  • Place it at the root of your domain so its location covers all your URLs — typically https://yourdomain.com/sitemap.xml. A sitemap can only include URLs on the same host and path level as itself, so a root-level file is the safest default. Then add a Sitemap: https://yourdomain.com/sitemap.xml line to your robots.txt.

  • A sitemap index is a “sitemap of sitemaps” — a <sitemapindex> file that points to several individual sitemap files instead of listing page URLs directly. You use it when a site has more than 50,000 URLs or you want to organize sitemaps by section (blog, products, categories). You submit the single index file to Google and it crawls every child sitemap.

  • Yes, completely free with no signup and no limits on how many sitemaps you generate. Everything runs in your browser, so your URLs are never uploaded to a server. Serpbays offers it as part of a free SEO toolkit alongside a robots.txt generator and a bulk noindex checker.

A crawlable site is only the start

A clean sitemap helps Google find your pages. Authority links help them rank. See how Serpbays builds them.

Start free on Serpbays