SMThe SERP MasterAdvanced SEO Tools

Sitemap Generator

Paste a list of URLs (optionally with changefreq and priority) to generate a valid XML sitemap.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
</urlset>

Building and Using XML Sitemaps

Paste your URLs one per line — optionally with a changefreq and priority after each, comma separated — and this tool produces valid XML sitemap markup. Values are escaped correctly, defaults are filled in where you omit them, and the output updates as you type.

An XML sitemap is a file listing the URLs on your site that you want search engines to know about. It does not make pages rank, and it does not guarantee indexing. What it does is make discovery reliable, which matters more on some sites than others.

How to Use This Tool

  1. Paste your URLs

    One per line. Optionally add a changefreq and priority after each URL, separated by commas.

  2. Fetch real lastmod dates

    Let the tool read each page's own modified date, so <lastmod> reflects the page rather than today's date.

  3. Copy or download the XML

    Save it as sitemap.xml in your site's root folder.

  4. Submit it

    Add it in Google Search Console's Sitemaps report, and add a Sitemap: line to robots.txt.

  5. Validate the live file

    Run it through the XML Sitemap Validator to confirm the format and that every URL resolves.

What a Sitemap is Actually For

Search engines find pages primarily by following links. A sitemap supplements that by handing over a list directly, which helps most where link discovery is weakest: new sites with few backlinks, large sites where some pages sit many clicks from the homepage, and sites with pages that are simply not well linked internally.

It is worth being clear about what a sitemap does not do. Listing a URL does not force indexing — Google decides that separately based on quality and duplication. Listing a URL does not improve its ranking. And a sitemap will not rescue a page that is blocked in robots.txt or carries a noindex tag.

If a page is not being indexed, a sitemap is rarely the fix. The more productive question is usually whether anything links to it, and whether it is distinct enough from your other pages to deserve its own entry in the index.

The Tags and What They Are Worth

  • loc — the full absolute URL. Required, and must be a URL you actually want indexed.
  • lastmod — when the page last meaningfully changed. Google does use this, but only if it trusts it.
  • changefreq — how often the page changes. Google has said it largely ignores this.
  • priority — relative importance from 0.0 to 1.0. Also largely ignored by Google.

Why Lastmod is the Tag Worth Getting Right

Of the optional tags, lastmod is the only one Google has confirmed it pays attention to — and only when the values are consistently accurate. It uses it as a hint about which pages are worth recrawling.

The catch is that trust is easily lost. Many CMS platforms stamp every URL with today's date on every sitemap regeneration, which makes the field meaningless. Once Google concludes your lastmod values are unreliable, it ignores them for the whole sitemap.

So either set lastmod accurately to the date content genuinely changed, or leave it out. An honest omission is better than a field that says everything changed this morning.

What to Include and What to Leave Out

A sitemap should list the canonical, indexable version of each page you want in search. Everything else creates noise and, at scale, wastes crawl requests on URLs that will never be indexed.

  • Include: canonical URLs returning HTTP 200 that you want indexed.
  • Exclude: URLs that redirect — list the final destination instead. The Redirect Chain Checker will confirm where each one lands.
  • Exclude: pages carrying noindex, or blocked in robots.txt. Listing them sends contradictory signals.
  • Exclude: non-canonical duplicates. If a page canonicalises elsewhere, list the canonical.
  • Exclude: thin pages you would not want a searcher to land on — tag archives, paginated duplicates, empty category pages.

Size Limits and Splitting

A single sitemap file can contain up to 50,000 URLs and must not exceed 50MB uncompressed. Beyond that you need multiple sitemap files listed in a sitemap index file, which is itself an XML file pointing at the others.

Splitting is useful below the limit too. Separate sitemaps for products, blog posts and static pages let you see indexing coverage per content type in Search Console, which turns a vague “some pages are not indexed” into a specific answer about which section has the problem.

Submitting and Maintaining It

Upload the file to your site — the root, as /sitemap.xml, is conventional — then do two things. Add a Sitemap line to your robots.txt, which the Robots.txt Generator will produce for you, and submit the URL in Google Search Console so you get coverage reporting.

Search Console's sitemap report is the useful part of submitting. It tells you how many listed URLs were discovered and how many were actually indexed, and a large gap between those numbers is a real signal worth investigating.

Before generating, it is worth cleaning the URL list. The URL Deduplicator removes entries differing only by protocol, case or trailing slash, and the Bulk URL Formatter normalizes them so you do not list two versions of the same page.

Getting a List of Your URLs

This generator builds the XML from URLs you give it rather than crawling your site, which means it only includes pages you actually want indexed. There are several quick ways to get that list:

  • WordPress — has generated its own sitemap at /wp-sitemap.xml since version 5.5, and SEO plugins such as Yoast and Rank Math replace it with their own.
  • Shopify, Wix and Squarespace — create a sitemap automatically at /sitemap.xml, so you may not need to build one at all.
  • Search Console — the Pages report lists indexed URLs and can be exported.
  • A crawler such as Screaming Frog, which crawls up to 500 URLs free, can export every page it finds.
  • Your CMS or database — an export of published pages is often the cleanest source.

Types of Sitemap

  • Standard XML sitemap — lists page URLs. What this tool generates, and all most sites need.
  • Sitemap index — a file that lists other sitemaps, used when you exceed 50,000 URLs or want separate files per section.
  • Image sitemap — adds image locations to page entries, useful when images load in ways crawlers might miss.
  • Video sitemap — describes video content with title, duration and thumbnail.
  • News sitemap — for Google News publishers, listing only articles published in the last two days.

How to Submit a Sitemap to Google

Open Google Search Console, choose your property, go to Sitemaps, enter the sitemap's URL and submit. The report then shows when Google last read it and how many URLs it discovered.

Also add a line such as Sitemap: https://example.com/sitemap.xml to your robots.txt file, which lets every search engine find it. Google retired its old sitemap “ping” URL in 2023, so Search Console and robots.txt are now the two ways to tell Google about it.

Frequently Asked Questions

Does a sitemap improve rankings?

No. A sitemap helps search engines discover URLs; it has no direct effect on where those URLs rank. Its value is in reliable discovery, which matters most for new, large, or poorly interlinked sites.

Do changefreq and priority matter?

Google has said it largely ignores both. Of the optional tags, only lastmod carries real weight, and only when the values are accurate. Setting every page to priority 1.0 achieves nothing.

How many URLs can one sitemap hold?

Up to 50,000 URLs and 50MB uncompressed. Beyond that, split into several files and reference them from a sitemap index. Splitting by content type is often useful well before you hit the limit.

Should I include pages that redirect?

No. List the final destination URL instead. Including redirecting URLs wastes crawl requests and sends a confusing signal about which version you consider canonical.

Where should the sitemap file live?

Anywhere on your domain, though the root as /sitemap.xml is the convention. Reference it from robots.txt and submit it in Search Console. A sitemap can only contain URLs from the site it is hosted on.

Do I need a sitemap if my CMS already makes one?

No. If your platform generates an up-to-date sitemap automatically, submit that one. A hand-built sitemap is useful for static sites, custom apps, or when the automatic one includes pages you do not want indexed.

How do I submit a sitemap to Google?

In Search Console, open Sitemaps, enter the sitemap URL and submit. Adding a Sitemap: line to robots.txt helps other search engines find it too.

Does this tool crawl my website?

No. It builds the sitemap from the URLs you paste, which keeps out pages you do not want indexed. It can fetch each listed page to read its real modified date.