Skip to content

XML Sitemap Generator

sitemaps.org protocol Saved locally

1 · Options

2 · URLs

0 URLs

Free forever No signup Auto-split at limits

XML Sitemap Generator

Hand search engines a clean table of contents. Build a valid sitemap.xml with real lastmod dates and automatic index splitting — no XML knowledge required.

URL cap
50K
Output
XML
Upload
/root
sitemap.xml
urlset · 6 urls

Your site

  • acme.com
  • └ acme.com/products
  • └ acme.com/products/aurora-lamp
  • └ acme.com/blog
  • └ acme.com/blog/schema-guide
  • └ acme.com/about

serialized to

<urlset xmlns="…">
<url>
<loc>https://acme.com/</loc>
<lastmod>2026-11-04</lastmod>
</url>
<url>
<loc>https://acme.com/products</loc>
<lastmod>2026-10-30</lastmod>
</url>
<url> … </url>
</urlset>
6 urls · 1.2 KB · under all limits Download .xml
Anatomy of a <url>

Four tags — only two that matter

The protocol allows four fields per entry. Google reads two of them. Here's the full picture, including what gets ignored.

<loc>
Required

Used — the only field Google always reads

The absolute page URL — protocol, host, and path — capped at 2,048 characters and XML-escaped. Everything else in a <url> entry is optional; this one is not.

<lastmod>
Recommended

Used — but only when consistently accurate

The date the page last meaningfully changed, in W3C Datetime format (2026-11-04 or with a timestamp). Google trusts it when it's truthful; sites that stamp every URL with today's date get the field ignored entirely.

<changefreq>
Optional

Ignored — Google confirmed it doesn't use it

A hint about update cadence: always, hourly, daily, weekly, monthly, yearly, never. Harmless to include for completeness, and some smaller engines may read it — just don't expect Google to schedule crawls from it.

<priority>
Optional

Ignored — relative values carry no weight

A 0.0–1.0 score of a URL's importance relative to other pages on your site. Every site marks its own pages 1.0, which is exactly why search engines treat the value as noise.

Know the ceilings

The hard limits of the protocol

sitemaps.org defines exact ceilings. Exceed them and the file is rejected whole — not partially read.

50,000
URLs per sitemap file
Split larger sites into child files under one index
50MB
Uncompressed file size
gzip shrinks transport — the limit applies before compression
50,000
Sitemaps per index file
An index of indexes is not allowed — one level only
2,048
Characters per <loc>
Absolute URLs only, XML-escaped, matching your canonical host

The sitemap index escape hatch

sitemap index file

When one file isn't enough, a <sitemapindex> file lists up to 50,000 child sitemaps — each covering a section of your site: one for products, one for the blog, one for landing pages. The generator emits the index and sharded children automatically when your URL list crosses a threshold, so scaling never means hand-editing XML.

Bonus: alternative formats count too. Google accepts RSS, Atom, and mRSS feeds as sitemaps, and even a plain-text file of URLs — useful for video-heavy sites and small projects respectively.

How to use

From URL list to live sitemap in four moves

  1. 01

    Add your URLs

    Paste a list, import from a crawl, or add pages one by one. Duplicates, fragments, and non-canonical URLs are flagged as you go.

  2. 02

    Set lastmod honestly

    Assign real modification dates — per page, per section, or per import batch. The generator formats them in W3C Datetime so parsers never choke.

  3. 03

    Split at the limits

    Past 50,000 URLs or 50MB, the tool emits a sitemap index plus child files automatically — no manual sharding or math.

  4. 04

    Upload and reference

    Drop the file at your root, add a Sitemap: line to robots.txt, and submit it in Search Console. Three channels, one file, full coverage.

Read before you ship

Six sitemap mistakes that waste crawl budget

A sitemap is a recommendation to crawlers — and like any recommendation, quality beats volume.

01Listing URLs that shouldn't be indexed

Redirected, 404ing, noindexed, and non-canonical URLs in a sitemap send contradictory signals — the file says "index this" while the page says "don't." Google reads the disagreement as a low-quality sitemap and discounts it.

02Cry-wolf lastmod dates

Stamping every URL with today's date to look "fresh" backfires. Google compares lastmod to actual content changes — when they don't match, the field gets ignored for the whole site, and you lose the one useful scheduling signal sitemaps offer.

03Including parameterized junk

Session IDs, tracking parameters, filter permutations, and sort orders explode a sitemap with duplicate-content URLs. The file should list canonical URLs only — one clean address per page, matching the canonical tag exactly.

04Exceeding the limits silently

A single sitemap caps at 50,000 URLs and 50MB uncompressed. Oversized files aren't partially read — they're rejected outright, and some parsers fail on a single malformed line. Split early with an index file rather than flirting with the ceiling.

05Generating once and forgetting

A sitemap frozen in time drifts from the live site — new pages go undiscovered, dead pages get recrawled. Sitemaps earn their keep when they regenerate on deploy, not when they were downloaded once at launch.

06Hiding it from crawlers

Uploading /sitemap.xml and telling nobody wastes the file. Reference it in robots.txt, submit it in Search Console and Bing Webmaster Tools — discovery is the entire point.

FAQ

Sitemap questions, answered

What is an XML sitemap?

A machine-readable file — usually at /sitemap.xml — that lists the URLs on your site you want search engines to crawl and index. It uses the sitemaps.org protocol: a <urlset> containing <url> entries, each with a <loc> and optional metadata like <lastmod>. Think of it as a table of contents you hand directly to crawlers.

Does every site need a sitemap?

No. Google is explicit that small sites with complete internal linking get discovered fine without one. Sitemaps earn their keep for large sites (500+ pages), new sites with few backlinks, sites with deep archives or rich media, and any site where internal linking doesn't reach every indexable page. When in doubt, ship one — it costs nothing and helps.

Do priority and changefreq still matter?

Not to Google — it has confirmed both fields are ignored. Google reads <loc> always and <lastmod> when it's consistently accurate. You can include priority and changefreq for completeness (some smaller engines and tools may read them), but don't expect them to influence crawl scheduling.

What are the XML sitemap limits?

Per file: 50,000 URLs maximum and 50MB uncompressed. If you exceed either, split into multiple sitemaps referenced by a sitemap index file — which itself can list up to 50,000 sitemaps. Individual URLs are capped at 2,048 characters and must be XML-escaped.

Where do I upload my sitemap?

Anywhere on your domain works, but the root — /sitemap.xml — is conventional and lets the sitemap cover every path on the site. A sitemap can only list URLs at or below its own directory level, which is another reason root placement is standard. Then reference it in robots.txt and submit it to Search Console.

Should I include every URL on my site?

No — only canonical, indexable URLs that return 200 status. Exclude redirects, 404s, noindexed pages, non-canonical variants, and parameterized duplicates. A sitemap is a recommendation, not a census: quality of listed URLs is itself a quality signal crawlers use.

How do I tell Google about my sitemap?

Three channels, use all of them: add a Sitemap: line to your robots.txt, submit the URL in Google Search Console's Sitemaps report, and submit to Bing Webmaster Tools. Search engines also check common paths like /sitemap.xml on their own, but explicit submission is faster and gives you reporting.

Is this XML sitemap generator free?

Yes — unlimited URLs and files, no signup, no account required. The generator runs entirely in your browser, so your URL list and site structure are never sent to or stored on our servers.