🗺️ SEO Tool ⚡ Instant 🔒 Private ✅ Valid XML

Free XML Sitemap Generator Online

Create a valid sitemap.xml file for Google Search Console in seconds. Paste your page URLs, configure SEO metadata, and download — everything runs locally in your browser.

Build your sitemap.xml

1 Add URLs 2 Configure 3 Download
Relative paths are converted using your base URL. 0 URLs detected
sitemap.xml preview
Generate a sitemap to preview XML here.
Total URLs
XML lines
File size
📄
Valid XML output Generates standard sitemap.xml markup compatible with Google and Bing.
🔗
Flexible URL input Accepts absolute URLs or site-relative paths using your base domain.
📈
SEO metadata Set changefreq, priority, and lastmod for every listed page.
🛡️
Private by design Your URL list never leaves your device — no server uploads.

Related SEO & Developer Tools

What is this XML sitemap generator?

Use this free online sitemap generator to create a valid, standards-compliant XML sitemap for your website. Sitemaps help search engines like Google and Bing discover, crawl, and index your most important pages faster — especially useful for new sites, large sites with deep page hierarchies, and routine SEO audits.

How to use
  1. Enter your website base URL (e.g. https://yoursite.com).
  2. Paste page URLs — one per line — as paths or full URLs.
  3. Set changefreq, priority, and lastmod values.
  4. Click Generate, then copy or download sitemap.xml.
Why it helps
  • Speeds up SEO setup for new websites.
  • Creates Google Search Console-ready sitemaps.
  • Removes duplicate URLs automatically.
  • Validates every URL and enforces the 50,000-URL protocol limit.
  • Works offline after the page loads.

How Search Engines Actually Use Your Sitemap

A sitemap is a discovery aid, not a ranking lever. It gives crawlers a direct, authoritative list of the canonical URLs you consider important, along with optional hints — lastmod, changefreq, priority — about how they change over time. Google has been explicit that it largely ignores changefreq and priority today, relying instead on its own crawl signals; lastmod is the one hint still meaningfully used, and only when it's accurate. A sitemap won't force indexing — a page still has to clear Google's own quality and crawl-budget bar — but it removes "the crawler never found this page" as a reason it wasn't indexed.

Sitemap vs. robots.txt

These two files do opposite jobs and most sites need both. robots.txt tells crawlers which parts of your site they may not crawl. A sitemap proactively lists the pages you do want discovered and indexed. It's common practice to reference your sitemap's URL directly inside robots.txt (a Sitemap: line) so crawlers find it automatically — use ToolAdda's robots.txt Generator alongside this tool to set that up correctly.

The 50,000-URL Limit, and What to Do at Scale

The sitemaps.org protocol caps a single sitemap file at 50,000 URLs and 50MB uncompressed — this tool enforces that limit and will tell you exactly how many URLs you're over if you exceed it. Sites larger than that split their URLs across multiple sitemap files (e.g. sitemap-pages.xml, sitemap-blog.xml) and list all of them inside a single sitemap index file, which is what you then submit to Search Console instead of an individual sitemap.

What Belongs in a Sitemap (and What Doesn't)

Include only canonical, indexable pages you actually want ranked. Leave out duplicate or parameterized URLs (like ?sort=price variants of the same page), pages blocked by robots.txt or marked noindex, redirects, and error pages — listing non-canonical or non-indexable URLs is one of the most common causes of "Submitted URL not indexed" style warnings in Search Console, since it signals a mismatch between what you're asking to be indexed and what your own site's directives allow.

Common Sitemap Mistakes

  • Listing URLs that redirect, 404, or are blocked by robots.txt/noindex.
  • Setting lastmod to today's date on every page regardless of whether it actually changed, which erodes the signal's usefulness over time.
  • Forgetting to regenerate and resubmit the sitemap after a site restructure or bulk content update.
  • Mixing HTTP and HTTPS, or www and non-www, versions of the same URLs instead of using one consistent canonical form.
  • Exceeding the 50,000-URL single-file limit without switching to a sitemap index.

Frequently Asked Questions

What is an XML sitemap and why do I need one?

An XML sitemap lists your website pages for search engines. It improves crawl efficiency and helps Google index new or updated content faster, especially pages that aren't well linked internally.

How do I submit my sitemap to Google Search Console?

Upload sitemap.xml to your website root (e.g. https://yoursite.com/sitemap.xml), then add that URL in Google Search Console under Sitemaps.

Can I use relative URLs like /about.html?

Yes. Relative paths are converted to full URLs using the base website URL you enter at the top of the tool.

Is this sitemap generator completely free?

Yes. ToolAdda's Sitemap Generator is free, requires no account, and processes everything locally in your browser.

Is my website data secure?

Absolutely. No URLs or sitemap data are sent to any server. Generation happens entirely on your device.

How many URLs can one sitemap.xml file contain?

The sitemaps.org protocol caps a single sitemap at 50,000 URLs and 50MB uncompressed. This tool enforces that limit and tells you to split into multiple files under a sitemap index if you exceed it.

What should I do if my site has more than 50,000 URLs?

Split your URLs into multiple sitemap files, each under the limit, then create a sitemap index file listing all of them and submit only the index URL to search engines.

Does Google actually use the priority and changefreq values?

Largely no — Google has said it mostly ignores these and relies on its own crawl signals. They're still valid per the protocol and other engines may weight them lightly, but don't expect them to meaningfully change Google's crawl behavior.

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

robots.txt restricts what crawlers may access; a sitemap proactively lists what you want discovered. Most sites use both, often with robots.txt pointing to the sitemap's URL.

Do I need a sitemap if my site is already well linked internally?

It still helps — a sitemap gives search engines a direct, authoritative list of canonical URLs and lastmod hints, speeding up discovery beyond what crawling links alone would achieve.

Can I include images or videos in a sitemap?

Yes, using the separate image/video sitemap extensions with <image:image> or <video:video> tags. This tool generates the standard page-URL sitemap without those extension tags.

What's the ideal lastmod date format?

W3C Datetime format, most simply YYYY-MM-DD — what this tool's date picker produces. Only set it to when content actually changed; inflating it on every page reduces the signal's usefulness.

Should every page on my site be in the sitemap?

No — include only canonical, indexable pages. Leave out duplicate/parameterized URLs, blocked or noindexed pages, redirects, and error pages.

Does a sitemap guarantee my pages will be indexed?

No — it aids discovery, but indexing still depends on content quality, crawl budget, and technical accessibility. It's a discovery aid, not an indexing guarantee.

How often should I regenerate and resubmit my sitemap?

Whenever you add, remove, or significantly update pages — for actively changing sites, monthly or as part of your deploy process keeps search engines working from current data.

Why did I get an "Invalid URL" error?

A pasted line couldn't be parsed as a valid URL even combined with your base URL — check for stray spaces or non-URL text; the error names the exact line to fix.

Can I use relative URLs in the sitemap generator?

Yes. Paths like /about.html are automatically converted into full URLs using the base website URL you provide.

Is my URL data uploaded to a server?

No. All sitemap generation happens locally in your browser using JavaScript, so your URL list never leaves your device.

Can I use this tool for very large websites?

Yes, up to the 50,000 URL protocol limit per file — paste your full URL list and the tool deduplicates and validates them locally. For sites beyond that limit, generate multiple sitemap files in batches and combine them under a sitemap index.

Is this sitemap generator accurate for SEO purposes?

Yes — it produces standard-compliant sitemap.xml markup per the sitemaps.org protocol that Google Search Console, Bing Webmaster Tools, and virtually all crawlers accept without modification.