Free XML Sitemap Generator

Paste your URLs, configure options, and download a valid XML sitemap ready to submit to Google and Bing.

Advertisement ยท 728ร—90
URLs 0
Advertisement ยท 300ร—250

What Is an XML Sitemap?

An XML sitemap is a file that lists all the important pages on your website, helping search engines discover and index your content more efficiently. It acts as a roadmap for crawlers like Googlebot and Bingbot, telling them which pages exist, how often they change, when they were last updated, and how important each page is relative to others on the site. The format is standardised by the Sitemap Protocol, a joint initiative by Google, Yahoo, and Microsoft, and is supported by all major search engines.

An XML sitemap is particularly important for large websites, new websites with few inbound links, websites that have been recently redesigned, and websites with content that changes frequently. For a ten-page brochure site with strong inbound links, a sitemap may be optional โ€” Google can discover those pages through normal link crawling. But for an e-commerce site with thousands of product pages, a blog with hundreds of posts, or a website that frequently adds new content, a sitemap dramatically improves crawl coverage and indexing speed.

How to Submit Your Sitemap to Google

There are two primary ways to submit a sitemap to Google. The first is through Google Search Console: log in, select your property, navigate to Indexing โ†’ Sitemaps, and enter the URL of your sitemap (e.g., https://example.com/sitemap.xml). Click Submit, and Google will fetch and process your sitemap. You can see the number of submitted URLs and any errors directly in Search Console.

The second method is to include the sitemap URL in your robots.txt file using the Sitemap: directive. When Googlebot fetches your robots.txt, it automatically discovers and processes the sitemap URL. This method requires no manual submission and works for all crawlers that read robots.txt, including Bing, DuckDuckGo, and others.

For Bing, you can submit your sitemap via Bing Webmaster Tools under Sitemaps. Bing also respects the Sitemap directive in robots.txt. It is worth submitting to both Google and Bing separately, as Bing powers search results for Microsoft Edge, Yahoo, and several other search properties.

XML Sitemap Best Practices

A sitemap that is well-structured and accurate helps crawlers efficiently allocate their crawl budget โ€” the number of pages they are willing to fetch from your site within a given time period. Follow these best practices to get the most out of your sitemap:

  • Include only canonical URLs. If you use rel="canonical" tags on pages, only include the canonical (preferred) version of each URL in your sitemap. Including non-canonical URLs wastes crawl budget and sends mixed signals to search engines.
  • Include only indexable pages. Do not add pages with noindex meta tags, paginated pages (unless they are standalone content), search result pages, or pages blocked in robots.txt. Every URL in your sitemap should be one you want indexed.
  • Use HTTPS URLs. Always use the https:// version of your URLs in the sitemap, matching the version specified in your canonical tags and in Google Search Console.
  • Set accurate lastmod dates. The lastmod (last modified) date tells crawlers when content was last updated. Keep these accurate โ€” setting fake recent dates to encourage re-crawling is a known tactic that search engines ignore or penalise.
  • Keep sitemaps under 50,000 URLs or 50MB. The sitemap protocol limits each sitemap file to 50,000 URLs or 50MB uncompressed. If your site exceeds this, use a sitemap index file that links to multiple individual sitemaps.
  • Update your sitemap when content changes. Regenerate and re-submit your sitemap whenever you add, remove, or significantly update pages. Google Search Console will show you when it last fetched and processed your sitemap.

Priority and changefreq โ€” Do They Matter?

The priority and changefreq attributes in XML sitemaps are widely misunderstood. Google has publicly stated that it does not use priority values from sitemaps when determining crawl frequency or ranking โ€” it uses its own internal signals to decide how often to crawl a page and how important it is. Bing similarly does not weight priority values heavily.

The changefreq attribute is treated as a hint rather than a directive. Search engines may use it to inform their crawl schedule, but they apply their own crawl intelligence on top of it. In practice, setting changefreq accurately (e.g., "daily" for a news blog, "monthly" for a static about page) is good hygiene, but do not expect it to dramatically change how often your pages are crawled. The most reliable signal for crawl frequency is actually how frequently your content genuinely changes โ€” Googlebot tracks this over time through its crawl history.

Frequently Asked Questions

If your site has fewer than a few hundred pages, is well-linked internally, and has been around for a while, a sitemap is nice-to-have rather than essential. However, Google recommends sitemaps for all sites as a best practice. For newer sites, sites with thin internal linking, large sites, or sites that frequently add new content, a sitemap is important for ensuring all pages are discovered and indexed promptly.

Place your sitemap at the root of your website: https://example.com/sitemap.xml. A sitemap only covers URLs within its own host โ€” a sitemap at example.com cannot list URLs from subdomain.example.com. Each subdomain needs its own sitemap. Upload the file to your server's public root directory, and reference it in your robots.txt with the Sitemap: directive.

Yes. You can use a sitemap index file โ€” an XML file that contains links to individual sitemaps โ€” to organise large sites. For example, you might have one sitemap for blog posts, one for product pages, and one for static pages. Submit the sitemap index URL to Search Console, and Google will discover and process all the individual sitemaps it references. Google also supports image sitemaps, video sitemaps, and news sitemaps as extensions to the standard format.

Yes. WordPress 5.5 and later includes a basic XML sitemap at /wp-sitemap.xml by default. Most SEO plugins โ€” Yoast SEO, All in One SEO, Rank Math โ€” replace this with more configurable sitemaps that include post types, taxonomies, and lastmod dates. If you use an SEO plugin, it typically handles sitemap generation automatically and submits the sitemap URL to Google Search Console for you.

This is common and can happen for several reasons: some pages may have noindex tags, duplicate content may be consolidated under canonical URLs, some pages may not meet Google's quality threshold for indexing, or some pages may be temporarily excluded due to crawl errors. Check the "Excluded" tab in Search Console's Indexing report to see specific reasons for any non-indexed pages. Including a page in your sitemap does not guarantee it will be indexed โ€” Google makes the final indexing decision.

For large sitemaps, compression is recommended. Google supports gzip-compressed sitemaps (.xml.gz), which can significantly reduce file size and download time. A 50MB uncompressed sitemap might compress to 5MB or less. If your sitemap is small (under 1MB), compression is optional. Your web server should also serve the sitemap with appropriate caching headers to reduce unnecessary re-fetches from crawlers.

Related Free Tools

Need a custom tool built for your business?

Get a Free Quote