Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information

Accept all cookies

XML sitemap

XML sitemaps tell Google what pages to index and how often they change. Learn how to create, submit, and monitor your sitemap.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.photo de profil du client Xavier Breull
+ 9'000 subscribers
Illustration of a sitemap file structure showing a tree of URLs with lastmod dates and priority tags.
Upload UI element
Thibault Besson-Magdelain fondateur de Sorank

About Author

Thibault Besson-Magdelain

Founder of Sorank, 5+ years of experience in SEO, GEO enthusiast.
Share on

Summary: An XML sitemap is a file listing all your pages so Google can find and index them faster. It accelerates discovery and ensures nothing gets missed.

XML sitemaps are not visible to humans; they are structured files for search engines. They list every page you want Google to know about, along with metadata: when you last updated it, how often it changes, and how important it is relative to other pages. Google uses this data to decide crawl frequency and freshness priorities.

Sitemaps are especially valuable for large sites, new sites, and sites with many pages that lack strong internal linking. With over 1.8 billion websites online, competition for crawl budget is fierce. A clear, up-to-date sitemap tells Google "here are my priority pages" and saves you weeks of waiting for discovery.

How to create an XML sitemap

Most modern platforms generate sitemaps automatically. WordPress plugins like Yoast or Rank Math create them for you. Shopify, HubSpot, and Webflow all generate sitemaps out of the box. The XML format is simple: <urlset> wrapper, then <url> entries with <loc> (page URL), <lastmod> (update date), <priority> (0.0 to 1.0), and <changefreq>.

Sitemap best practices

Include only pages you want ranked. Use lastmod dates accurately. Set priority relative to importance. Homepage = 1.0, category pages = 0.8, blog posts = 0.6.

Submitting your sitemap to Google

Submit your sitemap at the root: example.com/sitemap.xml. Google usually finds it automatically. But submitting explicitly in Google Search Console speeds discovery. Add a sitemap directive to your robots.txt: Sitemap: https://example.com/sitemap.xml.

Monitoring and updating sitemaps

Regenerate your sitemap when you add or remove pages. Check Search Console Sitemaps report monthly. Use technical SEO audits to cross-check your sitemap against Google's view.

Conclusion

An XML sitemap is a simple file that accelerates Google's understanding of your site. Large sites should regenerate monthly, new sites should submit immediately after launch. Our platform generates optimized sitemaps automatically and flags pages missing from them during audits.

Frequently questions asked

Do I need an XML sitemap?

Yes, unless your site is tiny and fully linked internally. Sitemaps help Google find all your pages, especially new ones. Large sites can crawl years without finding all pages without a sitemap.

What is the maximum number of URLs in a sitemap?

50,000 URLs per file, max 50 MB uncompressed. Larger sites need multiple sitemaps and a sitemap index. Most sites never hit this limit.

How often should I update my sitemap?

Whenever you add or remove pages. If you post content weekly, regenerate your sitemap weekly. Google checks it frequently on active sites.

Our Blog for Ambitious Company