ToolMight LogoToolMight

XML Sitemap Generator

Convert lists of website URLs into standard, search-engine ready sitemap.xml files online. Fast client-side sitemap generator with priority settings.

Loading Tool...

Compile lists of website URLs into standard, verified sitemap.xml files client-side. Configure crawl priority parameters, page change frequencies, and modification timestamps easily.

Learn About This Tool

Why XML Sitemaps Are Essential for Search Engine Indexing

An XML sitemap (sitemap.xml) is a structured XML file that lists every canonical URL of a website. It acts as a direct indexing blueprint for search engine crawlers (Googlebot, Bingbot), allowing them to discover new pages, update frequency metadata, and prioritize deep canonical paths. To configure crawler access permissions, try our Robots.txt Generator & Tester.
<!-- Standard sitemap.xml Schema: -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-08-11</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
</urlset>
  • Accelerates discovery of newly published blog posts, developer tools, and landing pages
  • Ensures deep, orphan, or unlinked website pages get indexed by search engines
  • Communicates content freshness using ISO 8601 `<lastmod>` date timestamps
  • Defines relative priority weights (`<priority>`) across site sections

Understanding `<loc>`, `<lastmod>`, `<changefreq>`, and `<priority>` Tags

Sitemap elements provide metadata hints to web crawlers. While search engines use their own algorithms to determine actual crawl frequency, compliant sitemap tags signal content updates accurately.
  • `<loc>`: Absolute canonical URL (e.g. `https://example.com/tools/json-to-typescript`)
  • `<lastmod>`: W3C Datetime string (YYYY-MM-DD) indicating when the page content was last updated
  • `<changefreq>`: Frequency hint (`always`, `hourly`, `daily`, `weekly`, `monthly`, `yearly`, `never`)
  • `<priority>`: Relative priority value from `0.0` to `1.0` (homepage is usually `1.0`, categories `0.8`, sub-pages `0.5`)

Sitemaps.org Protocol Specifications & Limits

According to the official Sitemaps.org protocol, a single `sitemap.xml` file must not contain more than 50,000 URLs or exceed 50MB in uncompressed file size. Large web applications with hundreds of thousands of pages must use a Sitemap Index file (`sitemap-index.xml`) to group multiple sub-sitemaps.
  • 50,000 URLs maximum per individual sitemap file limit
  • 50MB maximum uncompressed XML file size boundary
  • Automatic duplicate URL filtering prevents redundant indexing requests
  • UTF-8 encoding requirement with entity escaping (`&amp;`, `&lt;`, `&gt;`)

SEO Best Practices: Canonical URLs & Indexability Checks

Including non-indexable URLs in your sitemap wastes Google's crawl budget and can trigger Search Console validation warnings. Only include canonical, indexable URLs that return a `200 OK` HTTP status code. Exclude 301 redirects, 404 errors, noindex pages, and parameterized session URLs.
  • Exclude redirected URLs (301/302) and error routes (404/500)
  • Exclude pages tagged with `<meta name="robots" content="noindex">`
  • Include trailing slashes consistently to match site canonical setup
  • Reference the sitemap URL inside your `robots.txt` file (`Sitemap: https://example.com/sitemap.xml`)

How to Use XML Sitemap Generator

1

Input Website URLs

Paste your canonical website URL paths (one per line) into the URL input panel on the left.

2

Configure Metadata Defaults

Select default Priority (0.0 to 1.0), Change Frequency (daily/weekly/monthly), and enable Last Modification date stamps.

3

Validate & Download XML File

Inspect the rendered `sitemap.xml` output, verify total URL counts, and download the finished file for your server root directory.

Common questions

What is an XML sitemap?

An XML sitemap is a structured XML file listing the canonical URLs of a website, providing search engines like Google with a complete roadmap for crawling and indexing.

Where should sitemap.xml be hosted?

Upload the file to your website's root folder so it is accessible at `https://yourdomain.com/sitemap.xml`.

How do I submit my sitemap to Google Search Console?

Sign into Google Search Console, navigate to the **Sitemaps** menu item, paste your sitemap URL (`https://yourdomain.com/sitemap.xml`), and click Submit.

What are the official size limits for a sitemap.xml file?

A single sitemap file can hold up to 50,000 URLs and cannot exceed 50 megabytes (MB) in size.

Does submitting a sitemap guarantee Google will index my pages?

No. A sitemap assists Google in discovering URLs, but indexation decisions depend on content quality, originality, and site authority.

How does priority work in an XML sitemap?

The `<priority>` tag signals the relative importance of a page compared to other URLs on the same site. It ranges from `0.0` to `1.0`.

Is my URL list kept private while using this tool?

Yes. All URL parsing and XML generation take place 100% locally inside your browser's JavaScript runtime.

Should I include redirected URLs in my sitemap?

No. Only include canonical URLs returning a `200 OK` HTTP status code. Omit 301 redirects, 404 errors, and noindex pages.

Why is the <lastmod> tag important for SEO?

The `<lastmod>` tag tells Googlebot when content was updated, signaling that fresh content is ready to be re-crawled.

What is a Sitemap Index file?

A Sitemap Index file (`sitemap-index.xml`) is a master sitemap that groups multiple individual sitemap files together for large websites.

Should image or video URLs be included in sitemaps?

Yes! You can add image extensions (`<image:image>`) to your XML sitemap to help Google Image Search discover media assets.

How often should I update my XML sitemap?

Modern Next.js or dynamic CMS frameworks update sitemaps automatically upon page publication. For static sites, regenerate your sitemap whenever major content is added.

How do I link my sitemap in robots.txt?

Add `Sitemap: https://yourdomain.com/sitemap.xml` at the bottom of your `robots.txt` file.

Are there keyboard shortcuts?

Press `Ctrl+L` (or `Cmd+L` on Mac) to clear the URL input field instantly.

Related tools

Deep Dives & Guides

Master this tool with our expert tutorials and best practices.