XML Sitemap Generator for sitemap.xml

Build a valid XML sitemap from a list of URLs with priority, change frequency and last-modified date.

Loading Future Forge Tools…

XML Sitemap Generator for sitemap.xml

Build a valid XML sitemap from a list of URLs with priority, change frequency and last-modified date.

An XML sitemap is a file, usually at /sitemap.xml, that lists the URLs you want search engines to crawl, with optional last-modified dates. One file can hold up to 50,000 URLs and 50 MB uncompressed. Submit it in Google Search Console and add a Sitemap line to robots.txt so every crawler finds it.

How to use XML Sitemap Generator

  1. Enter your base URL and list your pages.
  2. Choose change frequency and priority options.
  3. Download sitemap.xml and submit it in Google Search Console.

What is an XML sitemap?

An XML sitemap is a machine-readable list of the pages on your site that you want search engines to find. It does not guarantee indexing, but it helps crawlers discover new pages, pages with few internal links and pages that changed recently. It matters most for new sites, large sites and sites with pages that are hard to reach by following links.

To build one here, enter your base URL and paste your paths or full URLs, one per line. The tool removes duplicates, skips invalid URLs, escapes special characters and outputs a valid sitemap.xml you can copy or download. You can set one change frequency for all pages, add today's date as lastmod and let priority follow URL depth. It all runs in your browser.

XML sitemap format (example)

<?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-20</lastmod>
  </url>
  <url>
    <loc>https://example.com/pricing</loc>
    <lastmod>2026-09-02</lastmod>
  </url>
</urlset>
TagRequiredWhat it means
<urlset>YesWraps the file and declares the sitemap namespace.
<url>YesOne entry per page.
<loc>YesThe full, absolute URL of the page, including https://.
<lastmod>NoDate the page content last changed, in W3C format (YYYY-MM-DD). Google uses it if it is consistently accurate.
<changefreq>NoHow often the page changes. Google ignores it; other engines may read it.
<priority>NoRelative importance from 0.0 to 1.0. Google ignores it.

Only turn on the lastmod option when the pages really changed today. If every date is always "today", search engines learn to distrust it.

Sitemap limits and rules

Submit it in Search Console and reference it in robots.txt

  1. Upload sitemap.xml to your site root so it loads at https://example.com/sitemap.xml.
  2. In Google Search Console, open Indexing, then Sitemaps, enter the URL and click Submit. Check back for the status and the number of discovered URLs.
  3. In Bing Webmaster Tools, submit it under Sitemaps as well.
  4. Add a line to robots.txt so every crawler can find it, including search engines where you never submitted it:
User-agent: *
Disallow:

Sitemap: https://example.com/sitemap.xml

Create or update that file with the Robots.txt Generator. Robots.txt and sitemap.xml should agree: never list a URL in the sitemap that robots.txt blocks. Our guide to robots.txt and XML sitemaps covers how they work together.

Google retired its old sitemap ping URL in 2023, so pinging is no longer needed. Keep lastmod accurate and Google will pick up changes when it refetches the file.

llms.txt vs sitemap

llms.txt is a proposed Markdown file placed at /llms.txt that gives AI assistants a short, hand-picked summary of your site with links to key pages. It is not an official standard, and Google has said it does not use it for Search. A sitemap is the established way for search engines to discover your URLs. If you want both, keep the sitemap complete and use llms.txt as a curated extra. Read more in llms.txt vs sitemap.

When you do not need this tool

WordPress has built a sitemap in since version 5.5 at /wp-sitemap.xml, and SEO plugins, Shopify, Wix and Squarespace generate one automatically. This generator is for static sites, custom-built sites, landing pages and cases where you want a hand-picked list of URLs.

Frequently asked questions

How do I reference my sitemap in robots.txt?

Add the line Sitemap: followed by the full URL, for example Sitemap: https://example.com/sitemap.xml. It can go anywhere in robots.txt and works for every crawler.

What is the difference between robots.txt and sitemap.xml?

Robots.txt tells crawlers what they may not crawl, while sitemap.xml lists the pages you want crawled. They work together, so never list a URL in your sitemap that robots.txt blocks.

What is the difference between llms.txt and a sitemap?

A sitemap is an XML standard that search engines use to discover URLs. llms.txt is a proposed Markdown file that gives AI tools a short, curated guide to your site; it is not an official standard and does not replace a sitemap.

How big can a sitemap file be?

Each sitemap can contain up to 50,000 URLs and must be no larger than 50 MB uncompressed. Larger sites split their URLs across several sitemaps and list them in a sitemap index.

Does Google use priority and changefreq?

No. Google says it ignores priority and changefreq. It does use lastmod when the dates are consistently accurate.

How do I submit a sitemap to Google?

In Google Search Console, open Indexing, then Sitemaps, enter the sitemap URL and click Submit. The report then shows whether Google could read it and how many URLs it found.

How many URLs can a sitemap contain?

Up to 50,000 URLs per sitemap file.

Do I still need this on WordPress?

WordPress creates a sitemap automatically; this tool is for other sites or custom lists.