Free AI Tool

Sitemap Generator

Build a valid XML sitemap from your website URLs.

Paste URLs line-by-line, choose default change frequency and priority, then copy the generated XML sitemap.

Inputs

Live Generator

Generated output

How this tool helps

What Is an XML Sitemap?

Think of your website as a massive library without an index. Search engine bots (like Googlebot) have to wander the aisles, hoping to stumble across your books by following links from one page to another. If a book does not have incoming links, it might never be found.

An XML sitemap is the exact map of that library. It provides search engines with a direct list of all the URLs you want them to crawl, index, and rank in search results. While it does not guarantee indexation, it drastically improves crawl efficiency and discovery speed.

XML Sitemap Structure Explained

Our free XML sitemap generator creates valid markup following the sitemaps.org standard. Here is what an entry looks like:

<url>
  <loc>https://example.com/blog/</loc>
  <lastmod>2026-04-16</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.8</priority>
</url>
  • <loc> (Required): The absolute URL of the page. It must begin with the protocol (http/https).
  • <lastmod> (Optional): The date the file was last modified. This is the most crucial tag for Google, telling it when to recrawl updated content.
  • <changefreq> (Optional): How frequently the page is likely to change.
  • <priority> (Optional): The priority of this URL relative to other URLs on your site.

What URLs Belong in Your Sitemap?

A common SEO mistake is putting every single generated URL into the sitemap. Do not do this. Only include URLs you want Google to index. Exclude:

  • URLs blocked by robots.txt
  • Pages with a "noindex" meta tag (e.g., login screens, admin dashboards)
  • Canonicalized pages (parameters, facet filters, or duplicate content)
  • Utility pages offering no search value (e.g., password reset pages)
  • Empty category pages or tag archives

How to Submit Your Sitemap to Google

  1. Generate your sitemap using our tool above and copy the XML output.
  2. Save it as sitemap.xml.
  3. Upload the file to the root directory of your web server (e.g., https://yourdomain.com/sitemap.xml).
  4. Log into Google Search Console.
  5. Navigate to Sitemaps under the Indexing section.
  6. Enter sitemap.xml (or your specific file path) and click Submit.

Next Steps configuration

After uploading your sitemap, your next imperative technical SEO task is giving search engines crawl rules. Use our free robots.txt generator to create your rules file, and crucially, reference your new sitemap URL at the bottom of it.

Got questions?

What is an XML sitemap?

An XML sitemap is a structured file that lists a website's essential pages, making sure search engines can find and crawl them all. It helps search engines understand your website's structure and prioritize crawling.

Do I really need a sitemap?

Yes. While search engines can crawl sites through internal links, an XML sitemap acts as a direct roadmap. It is incredibly important for new sites, large sites with thousands of pages, or sites with isolated pages that lack internal links.

Should every single page be in my sitemap?

No. Only include high-quality, indexable URLs that you want to appear in search results. Exclude duplicate pages, paginated archives, author bio pages (if thin), and utility pages like "Terms of Service" or login screens.

How often should I generate a new sitemap?

You should update your sitemap whenever you add, remove, or significantly change important pages on your website. Most modern CMS platforms (like WordPress or Shopify) update sitemaps dynamically, but for static sites, you should generate a new one after content updates.

What do the "priority" and "change frequency" tags do?

Change frequency (e.g., "weekly") tells crawlers how often the content changes. Priority (0.0 to 1.0) indicates the page's relative importance compared to other pages on your site. Note: Google currently largely ignores both tags, but Bing and other engines still use them.

What is the maximum size for a sitemap?

A single XML sitemap file can contain a maximum of 50,000 URLs and cannot exceed 50MB uncompressed. If you have a massive site (like an ecommerce store with 100,000+ products), you must split it into multiple sitemaps and use a Sitemap Index file.

How do I submit my sitemap to Google?

Once you upload the generated file to your root directory (e.g., yoursite.com/sitemap.xml), log into Google Search Console, go to the "Sitemaps" report in the left sidebar, enter your sitemap URL, and click submit.

Should I put my sitemap in my robots.txt file?

Yes. Adding a line like "Sitemap: https://yoursite.com/sitemap.xml" at the bottom of your robots.txt file allows bots from other search engines, marketing tools, and AI crawlers to easily discover your site structure.

Automate Support & Capture Leads
with AI Agents

Start using AI agents to answer customer questions, capture leads, and support your business 24/7 — without adding more work to your team.

Free trial · Setup in 5 minutes · Cancel anytime

Questions? Talk to us.