sitemap & hreflang validator
Sitemap & Multi-Language Validator
Audit XML sitemaps for syntax compliance, xhtml:link multi-language annotations (hreflang / x-default), and multi-tenant cross-domain leaks.
technical guide & best practices
How to Build High-Performance XML Sitemaps for Google & AI Search
XML sitemaps are the primary protocol search engines and LLM web crawlers use to discover canonical pages, detect update timestamps (lastmod), and navigate international multi-language language alternates (hreflang).
Key Optimization Standards
frequently asked questions
Frequently Asked Questions
What is the maximum size of an XML sitemap?
A single XML sitemap can contain up to 50,000 URLs and must not exceed 50MB uncompressed. If you have more URLs, use a Sitemap Index file.
How do xhtml:link hreflang tags work in sitemaps?
Instead of cluttering your HTML <head>, you can declare language alternates directly inside each <url> block using <xhtml:link rel='alternate' hreflang='en-GB' href='...' />.
Why should localhost and staging URLs be excluded?
Leaking internal development URLs (e.g. http://localhost:3000) causes crawl budget waste and can expose private staging endpoints to search indexers.
