Ttooleras
🗺️

XML Sitemap Generator

SEO Tools

Generate XML sitemaps conforming to the sitemaps.org protocol with URL, priority, change frequency, and lastmod dates for SEO.. Free, private — all processing in your browser.

Advertisement

The XML Sitemap Generator produces valid XML sitemap files for submission to search engines. A sitemap lists the important URLs on your site with optional metadata (priority, change frequency, last modification date) to help Google, Bing, and other search engines discover and crawl content efficiently. Sites with complex structure, frequent updates, or new content that hasn\u2019t been discovered via internal links benefit most from sitemaps.

Paste URLs (one per line) or provide a structured list with per-URL metadata, and the tool generates a standards-compliant sitemap.xml. Supports basic URL-only sitemaps, detailed sitemaps with lastmod, priority, and changefreq fields, and sitemap indexes that reference multiple sitemap files (needed when you have more than 50,000 URLs or 50MB of sitemap data). Optional extensions for images, videos, and hreflang. All processing runs in your browser so URL lists stay private.

XML Sitemap Generator — key features

Standards-compliant XML

Output matches sitemaps.org protocol and is accepted by all major search engines.

URL-only and detailed modes

Simple URL list for quick generation; detailed mode with lastmod, priority, changefreq per URL.

Sitemap index

For sites over 50,000 URLs, generate an index referencing multiple sitemap files.

Image sitemap extension

Optional image:image elements for dedicated image sitemap indexing.

Validation

Checks URL format, XML escaping, and protocol compliance before output.

Preview

See the formatted XML before downloading or copying.

Download as file

Save sitemap.xml directly to disk for upload to your site.

Client-side only

Your URL list never leaves the browser.

How to use the XML Sitemap Generator

  1. 1

    Paste URLs

    Enter your URLs one per line, or use the detailed form for per-URL metadata.

  2. 2

    Set defaults

    If using metadata, pick default priority (0.5), changefreq, and today’s lastmod as defaults.

  3. 3

    Optional per-URL overrides

    For important pages, override defaults with higher priority or specific lastmod.

  4. 4

    Generate

    Click generate and review the XML output.

  5. 5

    Download and upload

    Save as sitemap.xml and upload to your site’s root (example.com/sitemap.xml).

Common use cases for the XML Sitemap Generator

SEO

  • Submit to Google: Generate sitemap and submit via Search Console to help Google discover pages faster.
  • Fix crawl issues: When Google isn’t finding pages via internal links, a sitemap can help ensure all URLs are known.
  • Multi-language sites: Sitemap with hreflang helps Google serve the right language version for each region.

Large sites

  • E-commerce product catalog: Sitemap all product URLs with lastmod reflecting when prices or content changed.
  • News sites: Frequently update sitemap so new articles get crawled within minutes or hours.
  • Blog archives: Cover older posts that no longer appear in top navigation.

Development

  • CMS sitemap verification: Check that your CMS-generated sitemap is valid and complete.
  • Migration sitemap: Generate a sitemap of new URL structure during a migration for rapid re-indexing.
  • Static site deployment: Generate sitemap as part of a static site build process.

XML Sitemap Generator — examples

Simple URL list

Basic sitemap with just URLs.

Input
https://example.com/
https://example.com/about
https://example.com/blog
Output
valid XML sitemap with 3 URL entries, no lastmod/priority/changefreq

With metadata

Full sitemap with per-URL details.

Input
URL + lastmod + priority + changefreq per entry
Output
full sitemap with <lastmod>, <changefreq>, <priority> for each URL

Sitemap index

For large sites with multiple sitemap files.

Input
3 sitemap files (products, blog, pages)
Output
<sitemapindex> referencing each sitemap with its lastmod

Image sitemap

Dedicated image indexing.

Input
URLs with image metadata
Output
URL entries include nested <image:image> with image URL and caption

Bulk paste

Large URL list from a CSV.

Input
5000 URLs pasted
Output
valid sitemap.xml under 50MB; for more URLs use sitemap index

Technical details

XML sitemap format follows the sitemaps.org protocol, supported by all major search engines since 2006.

Basic sitemap structure:

<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
<url>
<loc>https://example.com/page</loc>
<lastmod>2024-05-05</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
...
</urlset>

Required: <loc> — the URL.
Optional:
- <lastmod>: ISO 8601 date (2024-05-05) or datetime (2024-05-05T12:00:00+00:00). Google actually uses this for crawl prioritization.
- <changefreq>: always/hourly/daily/weekly/monthly/yearly/never. Google largely ignores this now but Bing may use.
- <priority>: 0.0 to 1.0. Relative to other URLs on the same site. Google largely ignores; don\u2019t spend time optimizing.

Limits:
- 50,000 URLs per sitemap file
- 50 MB uncompressed size
- For larger sites: split into multiple sitemaps and create a sitemap index file

Sitemap index format:

<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">
<sitemap>
<loc>https://example.com/sitemap-1.xml</loc>
<lastmod>2024-05-05</lastmod>
</sitemap>
...
</sitemapindex>

Compression: gzip the sitemap (sitemap.xml.gz) to reduce transfer size. Both compressed and uncompressed are accepted.

URL encoding: URLs in sitemap must be properly XML-escaped (& becomes &amp;, etc.). The generator handles this automatically.

HTTPS: sitemap URLs should match the canonical URL structure. If your site uses HTTPS, all sitemap URLs should be HTTPS.

Robots.txt reference: add a Sitemap: line to robots.txt pointing to your sitemap:
Sitemap: https://example.com/sitemap.xml

Submission:
- Google Search Console: add property, submit sitemap under Sitemaps section
- Bing Webmaster Tools: submit similarly
- Robots.txt reference is also picked up automatically

Image sitemap extension:

<url>
<loc>https://example.com/page</loc>
<image:image>
<image:loc>https://example.com/image.jpg</image:loc>
<image:caption>A caption</image:caption>
</image:image>
</url>

Requires xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" on urlset.

Video, news, and hreflang extensions exist with their own schemas. Use only the extensions your site actually needs.

Common problems and solutions

Including noindex pages

Only include indexable URLs. Pages with noindex shouldn’t be in sitemap; they’d confuse Google about what to crawl.

Including redirects

Sitemap URLs should return 200 OK. URLs that redirect (301, 302) waste crawl budget. Remove them.

Broken URLs

404 URLs in sitemap hurt trust signal and waste crawl budget. Validate URLs before generating sitemap.

Priority abuse

Setting all URLs to priority 1.0 gives no information. Google largely ignores priority; don’t over-optimize.

Wrong date format

lastmod must be ISO 8601 (2024-05-05 or 2024-05-05T12:00:00+00:00). Locale formats (5/5/2024) fail.

Mixed HTTP/HTTPS

If your site is HTTPS, all sitemap URLs must be HTTPS. Mixing protocols causes Google to be uncertain which is canonical.

Sitemap size limit

50,000 URLs or 50MB maximum per sitemap file. Larger sites need sitemap index splitting URLs across multiple files.

XML Sitemap Generator — comparisons and alternatives

Compared to CMS-generated sitemaps (Yoast, RankMath), this tool is for sites without a sitemap plugin or when you want manual control. Plugins auto-generate and keep sitemaps updated; this tool is for one-off or custom generation.

Compared to command-line sitemap generators (sitemap-xml, python-sitemap-generator), this tool provides browser UI with validation. CLI is better for automated pipelines; this tool for manual generation.

Compared to Screaming Frog\u2019s sitemap feature, this tool is free and focused on URL list input rather than crawling. Screaming Frog crawls your site first; this tool takes URLs you already have.

Frequently asked questions about the XML Sitemap Generator

What is an XML sitemap?

An XML file listing your site’s important URLs for search engines. Format is defined by sitemaps.org protocol and supported by all major search engines. Helps engines discover pages that might not be reached via internal links.

Do I need a sitemap?

Recommended for any site with more than 100 pages, or sites with frequently updated content, or sites with thin internal linking. Small static sites (<50 pages, well-linked) may not need one but having one doesn’t hurt.

Where should I put the sitemap?

Typically at https://example.com/sitemap.xml (root URL with sitemap.xml filename). Reference it from robots.txt with \"Sitemap: https://example.com/sitemap.xml\". Submit to Google Search Console and Bing Webmaster Tools.

How often should I update the sitemap?

Whenever you add new URLs or significantly change existing ones. Dynamic sites should auto-generate sitemaps on publish. News sites benefit from very frequent updates (multiple times per day). Small static sites can rebuild on deploy.

What’s the difference between sitemap.xml and robots.txt?

Sitemap lists URLs you want crawled. Robots.txt tells crawlers which URLs to skip. They complement each other: sitemap for discovery, robots.txt for exclusion.

Should I include priority values?

Google largely ignores priority now. Bing may use it. For simplicity, leave all URLs at default 0.5 or omit priority entirely. Focus energy on site structure and content quality instead.

What about sitemap index?

A sitemap index is for sites with more than 50,000 URLs or over 50MB of sitemap data. The index file references multiple individual sitemaps. For most sites, a single sitemap.xml is sufficient.

Is the tool logging my URLs?

No. Generation runs in your browser. URLs stay local; no server sees your URL list.

Additional resources

Advertisement

Related tools

All SEO Tools

Learn more

Explore more tools

200+ free tools that run in your browser.

Browse all tools →