Skip to main content

sitemap-generator

A sitemap.xml file is a structured list of URLs you want search engines to crawl and index β€” required for Google Search Console submission and a major signal for new-page discovery on large sites. The ZTools Sitemap Generator lets you paste a URL list (or upload a CSV with URL + lastmod + priority + changefreq columns), validates the XML against the Sitemap Protocol 0.9 spec, and produces a download-ready sitemap.xml. For very large sites (>50,000 URLs or >50MB), it also generates sitemap-index.xml referencing multiple chunked sitemaps.

Use cases​

New site submission to Google​

After site launch, you submit sitemap.xml in Google Search Console for crawl prioritisation. Without it, Google relies on link discovery β€” slower for sites with sparse external backlinks.

Programmatic / large catalog sites​

E-commerce or directory sites with thousands of pages need explicit URL lists; relying on link discovery alone misses pages buried 5+ clicks deep.

After major content updates​

Re-emit sitemap with refreshed lastmod dates after updates. Signals freshness to Google and triggers re-crawl prioritisation.

IndexNow ping companion​

IndexNow lets you push URL updates to Bing instantly. Sitemap is the comprehensive map; IndexNow is the surgical update. Use both.

How it works​

  1. Provide URL list β€” Paste one URL per line, or upload CSV with URL + lastmod + priority + changefreq columns.
  2. Set defaults β€” Default changefreq (daily/weekly/monthly), default priority (0.0–1.0). Per-URL overrides if needed.
  3. Validate β€” Each URL checked against the spec (absolute, < 2048 chars, no fragment). Warnings for >50k URLs (split required).
  4. Generate XML β€” Produces well-formed &lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt; with &lt;url&gt; entries.
  5. Download β€” sitemap.xml file. For >50k URLs, sitemap-index.xml + sitemap-1.xml, sitemap-2.xml, etc.

Examples​

Input: 50 URLs, all "weekly" / 0.5 priority

Output: sitemap.xml with 50 &lt;url&gt; entries; valid for direct GSC submission.


Input: CSV with 5,000 URLs + per-row lastmod

Output: Single sitemap.xml ~ 1MB; under 50k limit.


Input: CSV with 200,000 URLs

Output: sitemap-index.xml + 4 chunked sitemap-N.xml files (50k URLs each).

Frequently asked questions​

Do I really need a sitemap?

For sites < 500 pages with strong internal linking, sitemap is helpful but not critical. For large or sparsely-linked sites, sitemap is essential β€” Google's crawl budget won't find buried pages without it.

How often should I update sitemap.xml?

Best practice: regenerate on every deploy (so lastmod reflects actual change dates). Weekly minimum for content sites. Static sites without content changes don't need refresh.

Is changefreq still useful?

Google has said changefreq is largely ignored β€” they use lastmod and their own crawl heuristics. lastmod is the single most important field; changefreq is optional/cosmetic.

What's the size limit?

50,000 URLs OR 50MB uncompressed per sitemap.xml. Beyond either, split into multiple sitemaps and reference via sitemap-index.xml.

Where do I host sitemap.xml?

Site root: https://example.com/sitemap.xml. Reference it in robots.txt: Sitemap: https://example.com/sitemap.xml. Submit URL in GSC.

Should I include noindex / blocked pages?

No β€” sitemap is for pages you want indexed. Including noindex pages wastes crawl budget and confuses Google's signals.

Tips​

  • lastmod is the most important field β€” set it to actual content modification time, not the build time.
  • Reference sitemap.xml in robots.txt: Sitemap: https://example.com/sitemap.xml β€” discoverable without GSC submission.
  • For dynamic sites, generate sitemap.xml at build time from your CMS data.
  • Skip URLs you don't want indexed (admin, search results, faceted-filter URLs) β€” sitemap should be the canonical list.
  • Always include lastmod with timezone (e.g. 2026-05-06T10:30:00+00:00) β€” Google parses ISO 8601 strictly.

Try it now​

The full sitemap-generator runs in your browser at https://ztools.zaions.com/sitemap-generator β€” no signup, no upload, no data leaves your device.

Open the tool β†—


Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub