XML Sitemap Generator — Free Sitemap.xml Builder

An XML sitemap is a machine-readable list of every important page on your website, handed directly to search engines so they can crawl your content efficiently. While Google discovers pages by following links, a sitemap removes the guesswork: “here are my pages, when they were updated, and how often they change.” For new sites with few backlinks, that invitation can cut indexing time from weeks to days.

The format is strict XML: a <urlset> wrapper containing a <url> block per page, each with a location, last-modified date, change frequency and priority. Hand-writing this for dozens of pages means repetitive, error-prone markup — one unescaped ampersand and the whole file is invalid.

This free XML sitemap generator does the tedious part for you. Paste your page URLs, choose default changefreq and priority values, and download a valid sitemap.xml ready to upload to your site root and submit to Google Search Console.

How to use the XML sitemap generator

  1. Paste your URLs, one per line. Include every page you want indexed — homepage, key landing pages, blog posts, product pages. Duplicates are removed automatically.
  2. Choose a default changefreq. Pick how often your content typically changes: daily for news sites, weekly for blogs, monthly for mostly-static pages. This is a hint to crawlers, not a command.
  3. Choose a default priority. Relative importance from 0.0 to 1.0 — your homepage might deserve 1.0 while old archive pages sit at 0.3. It only compares pages within your own site.
  4. Review the generated XML. The live preview shows the full file with today’s date as lastmod. Invalid-looking URLs are flagged before you download.
  5. Download sitemap.xml. One click gives you a correctly named, properly encoded file.
  6. Upload and submit. Place it at https://yourdomain.com/sitemap.xml, reference it from your robots.txt, and submit it in Google Search Console under Sitemaps.

Key features and benefits

  • Valid sitemap-protocol XML. The output follows the official sitemaps.org schema with proper escaping, so Google, Bing and other engines parse it without errors.
  • Automatic deduplication. Paste a messy list with repeats — the tool keeps only unique URLs, so your sitemap stays clean.
  • Smart URL normalization. URLs without a protocol get https:// prepended automatically, and invalid entries are flagged with a clear warning.
  • Configurable changefreq and priority. Seven frequency options and a priority scale let you express how your site actually behaves to crawlers.
  • Automatic lastmod dating. Every URL gets today’s date as its last-modified value — one less thing to fill in by hand.
  • Copy or download. Copy the XML for pasting into an existing setup, or download a ready-to-upload sitemap.xml file.
  • Free and unlimited. Generate sitemaps for as many sites and pages as you need, with nothing leaving your browser.

Getting the most out of your sitemap

Generating the file is step one. These practices determine whether your sitemap actually helps your SEO.

Include only pages worth indexing

A sitemap is a curated list, not a dump. Include canonical, indexable pages with real content. Leave out tag archives, paginated duplicates, thin search-result pages and anything with a noindex tag — listing junk pages teaches crawlers to distrust your sitemap. If you are unsure about a page’s on-page health, run its copy through the keyword density checker first.

Keep it fresh as your site grows

Regenerate your sitemap whenever you publish in bulk — new blog sections, product launches, site migrations. Stale sitemaps listing deleted pages create crawl errors that waste your crawl budget. For sites publishing daily, consider automating sitemap generation on the server side and using this tool for audits and one-off fixes.

Split large sitemaps correctly

The protocol caps a single sitemap at 50,000 URLs or 50MB uncompressed. If you outgrow that, generate multiple sitemap files and list them in a sitemap index file. Most large sites split by content type: one sitemap for posts, one for products, one for pages — which also makes Search Console diagnostics far more useful.

Frequently asked questions

Will a sitemap improve my Google rankings?

Not directly — a sitemap helps with discovery and crawling, not ranking. Its value is making sure worthy pages get found and indexed, especially on new or large sites. Rankings still come from content quality, relevance and authority — the sitemap just makes sure you are in the race.

What is the difference between changefreq and priority?

Changefreq tells crawlers how often a page’s content typically changes (always, daily, weekly, monthly…), helping them schedule re-crawls efficiently. Priority states a page’s relative importance within your own site on a 0.0–1.0 scale. Both are hints, not directives — Google ultimately crawls based on its own signals — but accurate hints improve crawl efficiency.

Where do I put the sitemap.xml file?

Upload it to your domain root: https://yourdomain.com/sitemap.xml. Then add a Sitemap: line pointing to it in your robots.txt file, and submit the URL in Google Search Console under the Sitemaps section. Bing Webmaster Tools accepts sitemap submissions too.

Do I need a sitemap if my site is small?

Small, well-linked sites can be fully crawled without one — but there is no downside to having it, and it takes a minute with this tool. It becomes genuinely important when your site is new (few inbound links), large (thousands of pages), or has pages that are hard to reach through navigation alone.

What is an HTML sitemap — do I need one too?

An HTML sitemap is a human-readable page listing your site’s main sections, useful for visitors and for distributing internal link equity. It serves a different purpose from the XML sitemap, which is purely for crawlers. Large content sites benefit from having both; small sites can usually skip the HTML version.

Can I validate my XML sitemap here?

Yes — paste your sitemap URL or XML above and the tool checks it for errors and formatting issues instantly, free with no signup.

How often should I update my sitemap?

Whenever your indexable page list changes meaningfully: new posts or products added, old pages removed, URLs restructured. The lastmod dates should reflect actual content updates — do not fake fresh dates on unchanged pages, as crawlers learn to ignore dishonest signals over time.

How It Works: Under the Hood

The generator crawls your URL list and emits the Sitemap Protocol XML: a <urlset> root (with the http://www.sitemaps.org/schemas/sitemap/0.9 namespace) containing one <url> block per page. Each block carries <loc> (the canonical absolute URL — required), <lastmod> (ISO 8601 date, the strongest crawl-priority signal), plus optional <changefreq> and <priority>. Google has stated it largely ignores changefreq/priority — lastmod accuracy is what actually influences recrawl scheduling.

Hard protocol limits shape the output: 50,000 URLs and 50 MB uncompressed per file. Beyond that, the tool splits output into multiple sitemaps under a sitemap index file. Every URL is validated (absolute, properly encoded, under 2,048 characters) and the XML is escaped — an unescaped & in a URL silently invalidates the entire file.

Real-World Use Cases

  • New site launch: a 200-page business site generates its first sitemap and submits it in Search Console — cutting Google’s discovery time from weeks to days.
  • E-commerce catalogs: stores with 15,000 product URLs split across a sitemap index so new products get crawled within days, not months.
  • Site migrations: after a redesign, generating a fresh sitemap of the new URL structure and submitting it accelerates Google’s reprocessing.
  • News publishers: high-frequency sites regenerate sitemaps hourly so breaking articles surface in Google News quickly.
  • Orphan page discovery: comparing the sitemap’s URL list against analytics reveals pages that exist but get zero traffic — prime candidates for internal linking.

Advanced Tips

  • Keep lastmod honest. Only update it when content meaningfully changes. Sites that stamp every URL with today’s date train Google to ignore the signal entirely.
  • Exclude what shouldn’t rank. Thank-you pages, internal search results, tag archives, paginated page 47 — if it’s in the sitemap, you’re telling Google it’s important. Curate ruthlessly.
  • Split by content type. Separate sitemaps for pages, posts, products, and images let you diagnose indexation per section in Search Console’s sitemap report.
  • Reference it in robots.txt. Add Sitemap: https://yoursite.com/sitemap.xml — it’s the crawler-independent discovery method that works for every search engine, not just Google.

Common Mistakes to Avoid

  • Including non-canonical or redirected URLs. Every sitemap URL should return 200 and be the canonical version. Redirect chains in sitemaps waste crawl budget and dilute signals.
  • Listing noindexed pages. A URL can’t be both “please crawl this” (sitemap) and “don’t index this” (noindex). Contradictory signals confuse crawlers — pick one.
  • One giant 49,999-URL file. Technically legal, practically fragile — one malformed URL kills the whole file. Smaller files isolate failures and make debugging possible.
  • Generating once and forgetting. A sitemap that doesn’t include last month’s 30 new posts is actively misleading. Automate regeneration or tie it to your publishing workflow.

Sitemap Hygiene That Actually Helps Indexing

A sitemap helps discovery, not rankings — Google still decides what to index. Keep the file honest: include only canonical, indexable URLs, drop 404s and noindexed pages, and refresh lastmod when content genuinely changes rather than on a timer. Large sites must split at 50,000 URLs or 50MB per file behind a sitemap index. Changefreq and priority are hints, not commands, so spend the real effort on internal linking and crawlable architecture. Once submitted in Search Console, validate page structure with the meta tag generator and preview how listings look with the Google SERP preview tool. For crawlable link building, the UTM link builder keeps campaign URLs clean.