XML Sitemap Generator

Generate a search-engine-ready XML sitemap from a list of URLs. Download as sitemap.xml.



What is an XML sitemap?

An XML sitemap is a file listing all the important URLs on your website along with metadata about each (last modified date, change frequency, priority). It’s submitted to search engines (Google, Bing, Yandex) to help them discover and index your pages efficiently. While Google can crawl most sites without a sitemap by following links, sitemaps are especially valuable for: new sites with few backlinks, large sites with deep page hierarchies, sites with isolated ‘orphan’ pages, sites with rich media content (video, image XML sitemaps), and sites that update frequently. A sitemap is a standard SEO best practice – Google has supported them since 2005, and they’re listed in Google’s official SEO guides.

How to use this tool

  1. Enter your URLs — One per line. Include the full URL with protocol (https://). Maximum 50,000 URLs per sitemap file.
  2. Set default values — Change frequency hint (how often page changes), priority (relative importance 0-1), and toggle ‘include lastmod’ to add today’s date.
  3. Generate & download — XML preview shown. Click Download to save ‘sitemap.xml’ file. Upload to your website root.
  4. Submit to search engines — Add the sitemap URL to robots.txt: Sitemap: https://yoursite.com/sitemap.xml. Submit via Google Search Console and Bing Webmaster Tools.

XML sitemap structure

Standard sitemap format (per sitemaps.org protocol):

<?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-05-26</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://example.com/blog/</loc>
    ...
  </url>
</urlset>

Fields explained:

  • <loc> (required): full URL
  • <lastmod> (optional): YYYY-MM-DD or W3C datetime
  • <changefreq> (optional): always, hourly, daily, weekly, monthly, yearly, never
  • <priority> (optional): 0.0 to 1.0 relative to other URLs on your site

Examples

Common priority assignments:

  • Homepage: 1.0
  • Main category pages: 0.8
  • Sub-category pages: 0.6
  • Individual articles/products: 0.5
  • Auxiliary pages (about, contact): 0.3

Common changefreq:

  • News homepage: hourly or daily
  • Blog homepage: daily or weekly
  • Individual articles: monthly or yearly
  • Product pages: weekly
  • Static pages (about, contact): yearly or never

Tips & best practices

  • Include only canonical URLs (one preferred URL per page) – don’t list duplicate URL variants
  • Don’t include pages blocked by robots.txt – waste of sitemap space
  • Don’t include 404 or redirected pages – they waste crawl budget
  • Keep sitemap under 50 MB and 50,000 URLs – split into multiple sitemaps with a sitemap index for larger sites
  • Update lastmod when you actually change content – lying erodes search engine trust
  • Submit sitemap via Google Search Console and Bing Webmaster Tools (free)
  • Priority and changefreq are HINTS – Google often ignores them and crawls based on actual change patterns

Limitations & notes

Sitemaps don’t guarantee indexing – they just tell search engines about URLs. Pages with thin content or poor quality may still not be indexed. Sitemaps don’t directly affect rankings – they help discovery, not ranking. The priority and changefreq fields are largely ignored by modern Google. For very large sites (millions of URLs), use sitemap index files referencing multiple smaller sitemaps.

Frequently Asked Questions

Do I really need an XML sitemap?

For small sites with strong internal linking: not strictly required, but helpful for discovery. For new sites without backlinks: very helpful for getting indexed faster. For large sites: essential for ensuring all pages get crawled efficiently. Always have one – it’s a best practice with minimal cost.

Where should I put my sitemap?

Standard location: https://yoursite.com/sitemap.xml. Reference it in robots.txt at https://yoursite.com/robots.txt with line: ‘Sitemap: https://yoursite.com/sitemap.xml’. Then submit via Google Search Console > Sitemaps.

How often should I update my sitemap?

Whenever pages are added, removed, or significantly modified. WordPress and most CMS platforms generate dynamic sitemaps that update automatically. Static sites need manual regeneration after changes.

Do priority and changefreq affect SEO?

Officially: yes, they’re hints to crawlers. Practically: Google has stated it largely ignores these for ranking purposes – it uses its own observation of how often pages change. Set them sensibly but don’t expect ranking impact from tuning these values.

How many URLs can a sitemap have?

Per the protocol: max 50,000 URLs and max 50 MB per file. For larger sites, create multiple sitemaps and reference them in a ‘sitemap index’ file. WordPress, Wix, Shopify all handle this automatically.

Should I include all my pages in the sitemap?

Include all canonical, indexable, high-quality pages. Exclude: 404 errors, redirects, paginated archive pages, search result pages, admin/login pages, low-value tag pages. Quality over quantity – thinner sitemaps with all good pages outperform fat sitemaps with junk URLs.

What’s the difference between XML sitemap and HTML sitemap?

XML sitemap: for search engines, machine-readable. HTML sitemap: for users, human-readable, lists pages with links. Both are valuable – HTML helps users find pages, XML helps crawlers. Big sites usually have both. Small sites with good main navigation often skip HTML sitemap.

Related tools

Robots.txt Generator · Meta Tag Generator · Schema.org Generator

Copied to clipboard