[Skip to main content](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#main-content)

[![Google Search Central](https://developers.google.com/static/search/images/google-search-central-logo.svg)](https://developers.google.com/search)

*   [Google Search Central](https://developers.google.com/search)
    

[Documentation](https://developers.google.com/search/docs)

*   SEO fundamentals
*   [Introduction](https://developers.google.com/search/docs)
    
*   [Search Essentials](https://developers.google.com/search/docs/essentials)
    
*   [SEO Starter Guide](https://developers.google.com/search/docs/fundamentals/seo-starter-guide)
    
*   [Optimizing for generative AI search](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide)
    
*   [How Google Search Works](https://developers.google.com/search/docs/fundamentals/how-search-works)
    
*   [Do you need an SEO?](https://developers.google.com/search/docs/fundamentals/do-i-need-seo)
    

*   Crawling and indexing
*   [Sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)
    
*   [robots.txt](https://developers.google.com/search/docs/crawling-indexing/robots/intro)
    
*   [Meta tags](https://developers.google.com/search/docs/crawling-indexing/special-tags)
    
*   [Crawler management](https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl)
    
*   [Removals](https://developers.google.com/search/docs/crawling-indexing/control-what-you-share)
    
*   [Canonicalization](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
    
*   [Redirects](https://developers.google.com/search/docs/crawling-indexing/301-redirects)
    
*   [JavaScript SEO](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics)
    

*   Ranking and search appearance
*   [Visual Elements gallery](https://developers.google.com/search/docs/appearance/visual-elements-gallery)
    
*   [Title links](https://developers.google.com/search/docs/appearance/title-link)
    
*   [Snippets](https://developers.google.com/search/docs/appearance/snippet)
    
*   [Images](https://developers.google.com/search/docs/appearance/google-images)
    
*   [Videos](https://developers.google.com/search/docs/appearance/video)
    
*   [Structured data](https://developers.google.com/search/docs/appearance/structured-data/search-gallery)
    
*   [Favicons](https://developers.google.com/search/docs/appearance/favicon-in-search)
    

*   Site-specific guides
*   [Ecommerce](https://developers.google.com/search/docs/specialty/ecommerce)
    
*   [International and multilingual sites](https://developers.google.com/search/docs/specialty/international)
    

*   Data analysis
*   [Get started with Search Console](https://developers.google.com/search/docs/monitor-debug/search-console-start)
    
*   [Debug traffic drops](https://developers.google.com/search/docs/monitor-debug/debugging-search-traffic-drops)
    
*   [Using Search Console and Google Analytics data for SEO](https://developers.google.com/search/docs/monitor-debug/google-analytics-search-console)
    
*   [Get started with Google Trends](https://developers.google.com/search/docs/monitor-debug/trends-start)
    

[Support](https://developers.google.com/search/help) [Blog](https://developers.google.com/search/blog) [What's new](https://developers.google.com/search/news)

*   [All updates](https://developers.google.com/search/news)
    
*   [Documentation updates](https://developers.google.com/search/updates)
    
*   [Ranking updates](https://status.search.google.com/products/rGHU1u87FJnkP6W2GwMi/history)
    
*   [New YouTube videos](https://www.youtube.com/channel/UCWf2ZlNsCGDS89VBF_awNvA)
    
*   [Recent podcast episodes](https://pod.link/1512522198)
    

[Events](https://developers.google.com/search/events) [Case studies](https://developers.google.com/search/case-studies)

/

*   English
*   Deutsch
*   Español
*   Español – América Latina
*   Français
*   Indonesia
*   Italiano
*   Polski
*   Português – Brasil
*   Tiếng Việt
*   Türkçe
*   Русский
*   العربيّة
*   हिंदी
*   ภาษาไทย
*   中文 – 简体
*   中文 – 繁體
*   日本語
*   한국어

Sign in

*   [Documentation](https://developers.google.com/search/docs)
    

[Search Console](https://goo.gle/searchconsole)

[![Google Search Central](https://developers.google.com/static/search/images/google-search-central-logo.svg)](https://developers.google.com/search)

*   [Google Search Central](https://developers.google.com/search)
    

*   [Documentation](https://developers.google.com/search/docs)
    *   More
*   [Support](https://developers.google.com/search/help)
    
*   [Blog](https://developers.google.com/search/blog)
    
*   [What's new](https://developers.google.com/search/news)
    *   More
*   [Events](https://developers.google.com/search/events)
    
*   [Case studies](https://developers.google.com/search/case-studies)
    

*   [Introduction](https://developers.google.com/search/docs)
    
*   Search Essentials
    
    *   [Overview](https://developers.google.com/search/docs/essentials)
        
    *   [Technical requirements](https://developers.google.com/search/docs/essentials/technical)
        
    *   [Spam policies](https://developers.google.com/search/docs/essentials/spam-policies)
        
    
*   SEO fundamentals
    
    *   [SEO Starter Guide](https://developers.google.com/search/docs/fundamentals/seo-starter-guide)
        
    *   [How Google Search works](https://developers.google.com/search/docs/fundamentals/how-search-works)
        
    *   [Creating helpful, reliable, people-first content](https://developers.google.com/search/docs/fundamentals/creating-helpful-content)
        
    *   Generative AI fundamentals
        
        *   [Optimizing for generative AI](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide)
            
        *   [Guidance on using generative AI](https://developers.google.com/search/docs/fundamentals/using-gen-ai-content)
            
        
    *   [Maintaining your site's SEO](https://developers.google.com/search/docs/fundamentals/get-started)
        
    *   [Developer's guide to Search](https://developers.google.com/search/docs/fundamentals/get-started-developers)
        
    *   [Do you need an SEO?](https://developers.google.com/search/docs/fundamentals/do-i-need-seo)
        
    
*   Crawling and indexing
    
    *   [Overview](https://developers.google.com/search/docs/crawling-indexing)
        
    *   [File types Google can index](https://developers.google.com/search/docs/crawling-indexing/indexable-file-types)
        
    *   [URL structure](https://developers.google.com/search/docs/crawling-indexing/url-structure)
        
    *   [Links](https://developers.google.com/search/docs/crawling-indexing/links-crawlable)
        
    *   Sitemaps
        
        *   [Learn about sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)
            
        *   [Build and submit a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap)
            
        *   [Manage sitemaps with sitemap index file](https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps)
            
        *   Sitemap extensions
            
            *   [Image sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps)
                
            *   [News sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap)
                
            *   [Video sitemaps and alternatives](https://developers.google.com/search/docs/crawling-indexing/sitemaps/video-sitemaps)
                
            *   [Combining sitemap extensions](https://developers.google.com/search/docs/crawling-indexing/sitemaps/combine-sitemap-extensions)
                
            
        
    *   Crawler management
        
        *   [Ask Google to recrawl your URLs](https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl)
            
        *   [Troubleshoot crawl errors](https://developers.google.com/search/docs/crawling-indexing/troubleshoot-crawling-errors)
            
        *   Google crawlers
            
            *   [List of Google crawlers](https://developers.google.com/crawling/docs/crawlers-fetchers/overview-google-crawlers)
                
            *   [Googlebot](https://developers.google.com/search/docs/crawling-indexing/googlebot)
                
            *   [Reduce the Google crawl rate](https://developers.google.com/crawling/docs/crawlers-fetchers/reduce-crawl-rate)
                
            *   [Verifying Googlebot and other Google crawlers](https://developers.google.com/crawling/docs/crawlers-fetchers/verifying-googlebot)
                
            
        
    *   robots.txt
        
        *   [Introduction to robots.txt](https://developers.google.com/search/docs/crawling-indexing/robots/intro)
            
        *   [How Google interprets the robots.txt specification](https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec)
            
        
    *   Canonicalization
        
        *   [What is URL canonicalization](https://developers.google.com/search/docs/crawling-indexing/canonicalization)
            
        *   [How to specify a canonical URL with rel="canonical" and other methods](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
            
        *   [Fix canonicalization issues](https://developers.google.com/search/docs/crawling-indexing/canonicalization-troubleshooting)
            
        
    *   [Mobile site and mobile-first indexing](https://developers.google.com/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing)
        
    *   AMP
        
        *   [AMP on Google Search guidelines](https://developers.google.com/search/docs/crawling-indexing/amp)
            
        *   [Understand how AMP works in search results](https://developers.google.com/search/docs/crawling-indexing/amp/about-amp)
            
        *   [Enhance AMP content](https://developers.google.com/search/docs/crawling-indexing/amp/enhance-amp)
            
        *   [Validate AMP content](https://developers.google.com/search/docs/crawling-indexing/amp/validate-amp)
            
        *   [Remove AMP content](https://developers.google.com/search/docs/crawling-indexing/amp/remove-amp)
            
        
    *   JavaScript
        
        *   [Understand the JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics)
            
        *   [Fix search-related JavaScript problems](https://developers.google.com/search/docs/crawling-indexing/javascript/fix-search-javascript)
            
        *   [Fix lazy-loaded content](https://developers.google.com/search/docs/crawling-indexing/javascript/lazy-loading)
            
        *   [Dynamic rendering as a workaround](https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering)
            
        
    *   Page and content metadata
        
        *   [Page metadata](https://developers.google.com/search/docs/crawling-indexing/valid-page-metadata)
            
        *   Meta tags
            
            *   [Meta tags and HTML attributes that Google supports](https://developers.google.com/search/docs/crawling-indexing/special-tags)
                
            *   [Robots meta tag, data-nosnippet, and X-Robots-Tag](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)
                
            *   [noindex](https://developers.google.com/search/docs/crawling-indexing/block-indexing)
                
            
        *   [rel attributes](https://developers.google.com/search/docs/crawling-indexing/qualify-outbound-links)
            
        
    *   Removals
        
        *   [Control what you share with Google](https://developers.google.com/search/docs/crawling-indexing/control-what-you-share)
            
        *   [Page removals](https://developers.google.com/search/docs/crawling-indexing/remove-information)
            
        *   [Image removals](https://developers.google.com/search/docs/crawling-indexing/prevent-images-on-your-page)
            
        *   [Redacted information](https://developers.google.com/search/docs/crawling-indexing/keep-redacted-information-out)
            
        
    *   Site moves and changes
        
        *   [Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects)
            
        *   Site moves
            
            *   [Changing your hosting](https://developers.google.com/search/docs/crawling-indexing/site-move-no-url-changes)
                
            *   [Move a site with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes)
                
            
        *   [A/B testing](https://developers.google.com/search/docs/crawling-indexing/website-testing)
            
        *   [Temporarily pause or disable a website](https://developers.google.com/search/docs/crawling-indexing/pause-online-business)
            
        
    
*   Ranking and search appearance
    
    *   [Overview](https://developers.google.com/search/docs/appearance)
        
    *   [AI features](https://developers.google.com/search/docs/appearance/ai-features)
        
    *   [Byline dates](https://developers.google.com/search/docs/appearance/publication-dates)
        
    *   [Favicons](https://developers.google.com/search/docs/appearance/favicon-in-search)
        
    *   [Featured snippets](https://developers.google.com/search/docs/appearance/featured-snippets)
        
    *   [Flexible Sampling](https://developers.google.com/search/docs/appearance/flexible-sampling)
        
    *   [Google Discover](https://developers.google.com/search/docs/appearance/google-discover)
        
    *   [Images](https://developers.google.com/search/docs/appearance/google-images)
        
    *   Local features
        
        *   [Business details](https://developers.google.com/search/docs/appearance/establish-business-details)
            
        *   [Top Places List](https://developers.google.com/search/docs/appearance/top-places-list)
            
        *   [Opting out of local search results](https://support.google.com/webmasters/answer/3035947)
            
        
    *   Page experience
        
        *   [Understanding page experience](https://developers.google.com/search/docs/appearance/page-experience)
            
        *   [Core Web Vitals](https://developers.google.com/search/docs/appearance/core-web-vitals)
            
        *   [Interstitials and dialogs](https://developers.google.com/search/docs/appearance/avoid-intrusive-interstitials)
            
        *   [Get started with signed exchanges on Google Search](https://developers.google.com/search/docs/appearance/signed-exchange)
            
        
    *   [Preferred sources](https://developers.google.com/search/docs/appearance/preferred-sources)
        
    *   Ranking systems
        
        *   [A guide to Google Search ranking systems](https://developers.google.com/search/docs/appearance/ranking-systems-guide)
            
        *   [Reviews system](https://developers.google.com/search/docs/appearance/reviews-system)
            
        
    *   Ranking updates
        
        *   [List of ranking updates](https://status.search.google.com/products/rGHU1u87FJnkP6W2GwMi/history)
            
        *   [Core updates](https://developers.google.com/search/docs/appearance/core-updates)
            
        *   [Spam updates](https://developers.google.com/search/docs/appearance/spam-updates)
            
        
    *   [Site names](https://developers.google.com/search/docs/appearance/site-names)
        
    *   [Sitelinks](https://developers.google.com/search/docs/appearance/sitelinks)
        
    *   [Snippets](https://developers.google.com/search/docs/appearance/snippet)
        
    *   Structured data
        
        *   [Understand how structured data works](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data)
            
        *   [Structured data general guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies)
            
        *   [Enriched search results](https://developers.google.com/search/docs/appearance/enriched-search-results)
            
        *   [Generate structured data with JavaScript](https://developers.google.com/search/docs/appearance/structured-data/generate-structured-data-with-javascript)
            
        *   Feature guides
            
            *   [All structured data features](https://developers.google.com/search/docs/appearance/structured-data/search-gallery)
                
            *   [Article](https://developers.google.com/search/docs/appearance/structured-data/article)
                
            *   [Book actions](https://developers.google.com/search/docs/appearance/structured-data/book)
                
            *   [Breadcrumb](https://developers.google.com/search/docs/appearance/structured-data/breadcrumb)
                
            *   [Carousel](https://developers.google.com/search/docs/appearance/structured-data/carousel)
                
            *   [Course list](https://developers.google.com/search/docs/appearance/structured-data/course)
                
            *   [Dataset](https://developers.google.com/search/docs/appearance/structured-data/dataset)
                
            *   [Discussion forum](https://developers.google.com/search/docs/appearance/structured-data/discussion-forum)
                
            *   [Education Q&A](https://developers.google.com/search/docs/appearance/structured-data/education-qa)
                
            *   [Employer aggregate rating](https://developers.google.com/search/docs/appearance/structured-data/employer-rating)
                
            *   [Fact check](https://developers.google.com/search/docs/appearance/structured-data/factcheck)
                
            *   [Event](https://developers.google.com/search/docs/appearance/structured-data/event)
                
            *   [FAQ](https://developers.google.com/search/docs/appearance/structured-data/faqpage)
                
            *   [Image metadata](https://developers.google.com/search/docs/appearance/structured-data/image-license-metadata)
                
            *   [Job posting](https://developers.google.com/search/docs/appearance/structured-data/job-posting)
                
            *   [Local business](https://developers.google.com/search/docs/appearance/structured-data/local-business)
                
            *   [Math solver](https://developers.google.com/search/docs/appearance/structured-data/math-solvers)
                
            *   [Movie carousel](https://developers.google.com/search/docs/appearance/structured-data/movie)
                
            *   [Organization](https://developers.google.com/search/docs/appearance/structured-data/organization)
                
            *   Shopping
                
                *   [Overview](https://developers.google.com/search/docs/appearance/structured-data/product)
                    
                *   [Product snippet](https://developers.google.com/search/docs/appearance/structured-data/product-snippet)
                    
                *   [Merchant listing](https://developers.google.com/search/docs/appearance/structured-data/merchant-listing)
                    
                *   [Variants](https://developers.google.com/search/docs/appearance/structured-data/product-variants)
                    
                *   [Loyalty program](https://developers.google.com/search/docs/appearance/structured-data/loyalty-program)
                    
                *   [Merchant return policy](https://developers.google.com/search/docs/appearance/structured-data/return-policy)
                    
                *   [Merchant shipping policy](https://developers.google.com/search/docs/appearance/structured-data/shipping-policy)
                    
                
            *   [Profile page](https://developers.google.com/search/docs/appearance/structured-data/profile-page)
                
            *   [Q&A](https://developers.google.com/search/docs/appearance/structured-data/qapage)
                
            *   [Recipe](https://developers.google.com/search/docs/appearance/structured-data/recipe)
                
            *   [Review snippet](https://developers.google.com/search/docs/appearance/structured-data/review-snippet)
                
            *   [Software app](https://developers.google.com/search/docs/appearance/structured-data/software-app)
                
            *   [Speakable](https://developers.google.com/search/docs/appearance/structured-data/speakable)
                
            *   [Subscription and paywalled content](https://developers.google.com/search/docs/appearance/structured-data/paywalled-content)
                
            *   [Vacation rental](https://developers.google.com/search/docs/appearance/structured-data/vacation-rental)
                
            *   [Video](https://developers.google.com/search/docs/appearance/structured-data/video)
                
            
        
    *   [Title links](https://developers.google.com/search/docs/appearance/title-link)
        
    *   Translated features
        
        *   [Translated results](https://developers.google.com/search/docs/appearance/translated-results)
            
        *   [Ad networks and translation-related Google Search features](https://developers.google.com/search/docs/appearance/ad-network-and-translation)
            
        
    *   [Videos](https://developers.google.com/search/docs/appearance/video)
        
    *   [Visual Elements gallery](https://developers.google.com/search/docs/appearance/visual-elements-gallery)
        
    *   Web Stories
        
        *   [Enable Web Stories on Google](https://developers.google.com/search/docs/appearance/enable-web-stories)
            
        *   [Best practices for creating Web Stories](https://developers.google.com/search/docs/appearance/web-stories-creation-best-practices)
            
        *   [Web Story content policy](https://developers.google.com/search/docs/appearance/web-stories-content-policy)
            
        
    *   Early Adopters Program
        
        *   [Package tracking](https://developers.google.com/search/docs/appearance/package-tracking)
            
        *   [Structured data carousels (beta)](https://developers.google.com/search/docs/appearance/structured-data/carousels-beta)
            
        
    
*   Monitoring and debugging
    
    *   [Debug drops in Search traffic](https://developers.google.com/search/docs/monitor-debug/debugging-search-traffic-drops)
        
    *   Monitor with Search Console
        
        *   [Get started with Search Console](https://developers.google.com/search/docs/monitor-debug/search-console-start)
            
        *   [Improve SEO with a bubble chart](https://developers.google.com/search/docs/monitor-debug/bubble-chart-analysis)
            
        *   [Using Search Console and Google Analytics data for SEO](https://developers.google.com/search/docs/monitor-debug/google-analytics-search-console)
            
        
    *   Debug with search operators
        
        *   [Overview](https://developers.google.com/search/docs/monitor-debug/search-operators)
            
        *   [site: search operator](https://developers.google.com/search/docs/monitor-debug/search-operators/all-search-site)
            
        *   [Google Images search operators](https://developers.google.com/search/docs/monitor-debug/search-operators/image-search)
            
        
    *   Preventing and monitoring abuse
        
        *   [Overview](https://developers.google.com/search/docs/monitor-debug/security)
            
        *   [Prevent user-generated spam](https://developers.google.com/search/docs/monitor-debug/prevent-abuse)
            
        *   [Malware and unwanted software](https://developers.google.com/search/docs/monitor-debug/security/malware)
            
        *   [Prevent a malware infection](https://developers.google.com/search/docs/monitor-debug/security/prevent-malware)
            
        *   [Social engineering (phishing and deceptive sites)](https://developers.google.com/search/docs/monitor-debug/security/social-engineering)
            
        *   [Google Safe Browsing Repeat Offenders Policy](https://developers.google.com/search/docs/monitor-debug/security/safe-browsing-repeat-offenders)
            
        
    *   [Get started with Google Trends](https://developers.google.com/search/docs/monitor-debug/trends-start)
        
    
*   Site-specific guides
    
    *   Ecommerce
        
        *   [Overview](https://developers.google.com/search/docs/specialty/ecommerce)
            
        *   [Where content can appear](https://developers.google.com/search/docs/specialty/ecommerce/where-ecommerce-data-can-appear-on-google)
            
        *   [Share product data](https://developers.google.com/search/docs/specialty/ecommerce/share-your-product-data-with-google)
            
        *   [Include structured data](https://developers.google.com/search/docs/specialty/ecommerce/include-structured-data-relevant-to-ecommerce)
            
        *   [Launch a new website](https://developers.google.com/search/docs/specialty/ecommerce/how-to-launch-an-ecommerce-website)
            
        *   [Write high quality reviews](https://developers.google.com/search/docs/specialty/ecommerce/write-high-quality-reviews)
            
        *   [Design a URL structure](https://developers.google.com/search/docs/specialty/ecommerce/designing-a-url-structure-for-ecommerce-sites)
            
        *   [Ecommerce site structure](https://developers.google.com/search/docs/specialty/ecommerce/help-google-understand-your-ecommerce-site-structure)
            
        *   [Pagination, incremental page loading, and Search](https://developers.google.com/search/docs/specialty/ecommerce/pagination-and-incremental-page-loading)
            
        
    *   International and multilingual
        
        *   [Overview](https://developers.google.com/search/docs/specialty/international)
            
        *   [Managing multi-regional and multilingual sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites)
            
        *   [Tell Google about localized versions of your page](https://developers.google.com/search/docs/specialty/international/localized-versions)
            
        *   [How Google crawls locale-adaptive pages](https://developers.google.com/search/docs/specialty/international/locale-adaptive-pages)
            
        
    *   Explicit content
        
        *   [Guidelines for sites with explicit content](https://developers.google.com/search/docs/specialty/explicit/guidelines)
            
        *   [What to do if your site is incorrectly flagged as explicit](https://developers.google.com/search/docs/specialty/explicit/troubleshooting)
            
        
    

*   SEO fundamentals
*   [Introduction](https://developers.google.com/search/docs)
    
*   [Search Essentials](https://developers.google.com/search/docs/essentials)
    
*   [SEO Starter Guide](https://developers.google.com/search/docs/fundamentals/seo-starter-guide)
    
*   [Optimizing for generative AI search](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide)
    
*   [How Google Search Works](https://developers.google.com/search/docs/fundamentals/how-search-works)
    
*   [Do you need an SEO?](https://developers.google.com/search/docs/fundamentals/do-i-need-seo)
    
*   Crawling and indexing
*   [Sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)
    
*   [robots.txt](https://developers.google.com/search/docs/crawling-indexing/robots/intro)
    
*   [Meta tags](https://developers.google.com/search/docs/crawling-indexing/special-tags)
    
*   [Crawler management](https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl)
    
*   [Removals](https://developers.google.com/search/docs/crawling-indexing/control-what-you-share)
    
*   [Canonicalization](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
    
*   [Redirects](https://developers.google.com/search/docs/crawling-indexing/301-redirects)
    
*   [JavaScript SEO](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics)
    
*   Ranking and search appearance
*   [Visual Elements gallery](https://developers.google.com/search/docs/appearance/visual-elements-gallery)
    
*   [Title links](https://developers.google.com/search/docs/appearance/title-link)
    
*   [Snippets](https://developers.google.com/search/docs/appearance/snippet)
    
*   [Images](https://developers.google.com/search/docs/appearance/google-images)
    
*   [Videos](https://developers.google.com/search/docs/appearance/video)
    
*   [Structured data](https://developers.google.com/search/docs/appearance/structured-data/search-gallery)
    
*   [Favicons](https://developers.google.com/search/docs/appearance/favicon-in-search)
    
*   Site-specific guides
*   [Ecommerce](https://developers.google.com/search/docs/specialty/ecommerce)
    
*   [International and multilingual sites](https://developers.google.com/search/docs/specialty/international)
    
*   Data analysis
*   [Get started with Search Console](https://developers.google.com/search/docs/monitor-debug/search-console-start)
    
*   [Debug traffic drops](https://developers.google.com/search/docs/monitor-debug/debugging-search-traffic-drops)
    
*   [Using Search Console and Google Analytics data for SEO](https://developers.google.com/search/docs/monitor-debug/google-analytics-search-console)
    
*   [Get started with Google Trends](https://developers.google.com/search/docs/monitor-debug/trends-start)
    

*   [All updates](https://developers.google.com/search/news)
    
*   [Documentation updates](https://developers.google.com/search/updates)
    
*   [Ranking updates](https://status.search.google.com/products/rGHU1u87FJnkP6W2GwMi/history)
    
*   [New YouTube videos](https://www.youtube.com/channel/UCWf2ZlNsCGDS89VBF_awNvA)
    
*   [Recent podcast episodes](https://pod.link/1512522198)
    

*   [Home](https://developers.google.com/)
    
*   [Search Central](https://developers.google.com/search)
    
*   [Documentation](https://developers.google.com/search/docs)
    

Send feedback

Build and submit a sitemap
==========================

This page describes how to build a sitemap and make it available to Google. If you're new to sitemaps, [read our introduction first](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview)
.

Google supports the sitemap formats defined by the [sitemaps protocol](https://www.sitemaps.org/protocol.html#otherformats)
. Each format has its own benefits and shortcomings; choose the one that is the most appropriate for your site and setup (Google doesn't have a preference). The following table compares the different sitemap formats:

Sitemaps comparison[XML sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#xml)

XML sitemaps are the most versatile of the sitemaps formats. It's extensible and can be used to supply additional data about [images](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps)
, [video](https://developers.google.com/search/docs/crawling-indexing/sitemaps/video-sitemaps)
, and [news](https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap)
 content, as well as the [localized versions](https://developers.google.com/search/docs/specialty/international/localized-versions)
 of your pages.

|     |     |
| --- | --- |
| **Pros:**<br><br>*   Extensible and versatile.<br>*   It can provide the most information about your URLs.<br>*   Most content management systems (CMS) automatically generate sitemaps or CMS users can find plenty of sitemap plugins. | **Cons:**<br><br>*   Can be cumbersome to work with.<br>*   Can be complex to maintain the mapping on larger sites, or sites where the URLs change often. |

[RSS, mRSS, and Atom 1.0](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#rss)

RSS, mRSS, and Atom 1.0 sitemaps are similar in structure to XML sitemaps, however they are often the easiest to provide because CMSes automatically create them.

|     |     |
| --- | --- |
| **Pros:**<br><br>*   Most CMSes automatically generate RSS and Atom feeds.<br>*   Can be used to provide Google information about your videos. | **Cons:**<br><br>*   Besides [HTML and other indexable textual content](https://developers.google.com/search/docs/crawling-indexing/indexable-file-types)<br>    , it can only provide information about videos, not images or news.<br>*   Can be cumbersome to work with. |

[Text sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#text)

The simplest of sitemap formats, it can only list URLs to HTML and other indexable pages.

|     |     |
| --- | --- |
| **Pros:**<br><br>*   Simple to do and maintain, especially on large sites. | **Cons:**<br><br>*   Limited to HTML and other indexable textual content. |

Sitemap best practices
----------------------

The best practices for sitemaps are defined by the [sitemaps protocol](https://www.sitemaps.org/protocol.html)
. The most overlooked best practices are related to the size limits, sitemap location, and the URLs included in the sitemaps.

**Sitemap size limits:** All formats limit a single sitemap to 50MB (uncompressed) or 50,000 URLs. If you have a larger file or more URLs, you must break your sitemap into multiple sitemaps. You can optionally create a [sitemap index](https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps)
 file and submit that single index file to Google. You can submit multiple sitemaps and sitemap index files to Google. This may be useful if you want to track the search performance of each individual sitemap in Search Console.

**Sitemap file encoding and location:** The sitemap file must be UTF-8 encoded. You can host your sitemaps anywhere on your site, but unless you submit your sitemap through [Search Console](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#addsitemap)
, a sitemap affects only descendants of the parent directory. Therefore, a sitemap posted at the site root can affect all files on the site, which is where we recommend posting your sitemaps.

**Referenced URLs' properties:** Use fully-qualified, absolute URLs in your sitemaps. Google will attempt to crawl your URLs exactly as listed. For example, if your site is at `https://www.example.com/`, don't specify a URL such as `/mypage.html` (a relative URL), use the complete, absolute URL: `https://www.example.com/mypage.html`.

Include the URLs in your sitemap that you want to see in Google's search results. Google generally shows the [canonical URLs](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
 in its search results, which you can influence with sitemaps. If you have different URLs for mobile and desktop versions of a page, we recommend pointing to only one version in a sitemap. However, if you want to point to both URLs, [annotate](https://developers.google.com/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing#additional-best-practices)
 your URLs to indicate the desktop and mobile versions.

For a complete list of best practices, check out the [sitemaps protocol](https://www.sitemaps.org/protocol.html)
.

XML sitemap
-----------

The XML sitemap format is the most versatile of the supported formats. Using the Google supported sitemap extensions, you can also provide additional information about your [images](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps)
, [video](https://developers.google.com/search/docs/crawling-indexing/sitemaps/video-sitemaps)
, and [news](https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap)
 content, as well as the [localized versions](https://developers.google.com/search/docs/specialty/international/localized-versions)
 of your pages.

Here is a very basic XML sitemap that includes the location of a single URL:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/foo.html</loc>
    <lastmod>2022-06-04</lastmod>
  </url>
</urlset>

You can find more complex examples and full documentation at [sitemaps.org](https://www.sitemaps.org/protocol.html)
.

### Additional notes about XML sitemaps

*   As with all XML files, all tag values must be [entity escaped](https://www.sitemaps.org/protocol.html#escaping)
    .
*   Google ignores `<priority>` and `<changefreq>` values.
*   Google uses the `<lastmod>` value if it's consistently and verifiably (for example by comparing to the last modification of the page) accurate.
    
    The `<lastmod>` value should reflect the date and time of the last significant update to the page. For example, an update to the main content, the structured data, or links on the page is generally considered significant, however an update to the copyright date is not.
    

RSS, mRSS, and Atom 1.0
-----------------------

If your CMS generates an RSS or Atom feed, you can submit the feed's URL as a sitemap. Most CMSes create a feed for you, however keep in mind that this feed only provides information on recent URLs.

### Additional notes about RSS, mRSS, and Atom 1.0

*   Google accepts RSS 2.0 and Atom 1.0 feeds.
*   You can use an [mRSS (media RSS) feed](https://developers.google.com/search/docs/crawling-indexing/sitemaps/video-sitemaps)
     to provide Google details about video content on your site.
*   As with all XML files, all tag values must be [entity escaped](https://www.sitemaps.org/protocol.html#escaping)
    .

Text sitemap
------------

If you only want to provide web page URLs, you can create a common text file that contains one URL per line and submit that to Google. For example, if you have two pages on your site, you could add them to your text sitemap located at `https://www.example.com/sitemap.txt` as follows:

https://www.example.com/file1.html
https://www.example.com/file2.html

### Additional notes for text file sitemaps

*   Don't put anything other than URLs in the sitemap file.
*   You can name the text file anything you want, provided it has a `.txt` extension (for instance, sitemap.txt).

How to create a sitemap
-----------------------

When creating a sitemap, you're telling search engines about which URLs you prefer to show in search results. These are the [canonical URLs](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)
. If you have the same content accessible under different URLs, choose the URL you prefer and include that in the sitemap instead of all URLs that lead to the same content.

Once you've decided which URLs to include in the sitemap, pick one of the following ways to create a sitemap, depending on your site architecture and size:

*   [Let your CMS generate a sitemap for you](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#cmssitemap)
    .
*   For sitemaps with less than a few dozen URLs, you can [manually create a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#manualsitemap)
    .
*   For sitemaps with more than a few dozen URLs, [automatically generate a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#autositemap)
    .

### Let your CMS generate a sitemap for you

If you're using a CMS such as WordPress, Wix, or Blogger, it's likely that your CMS has already made a sitemap available to search engines. Try searching for information about how your CMS generates sitemaps, or how to create a sitemap if your CMS doesn't generate a sitemap automatically. For example, in case of Wix, search for "wix sitemap", or in case of Blogger, search for "Blogger RSS".

### Manually create a sitemap

For sitemaps with less than a few dozen URLs, you may be able to manually create a sitemap. For this, open a text editor such as [Windows Notepad](https://www.microsoft.com/en-us/search?q=windows+notepad)
 or [Nano (Linux, MacOS)](https://www.nano-editor.org/)
, and follow a syntax described in the [Sitemap Formats](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#sitemapformat)
 section. You can name the file anything you like as long as [the characters are allowed in a URL](https://developers.google.com/maps/url-encoding)
.

You can manually create larger sitemaps, but it's a tedious process and hard to maintain long term.

### Automatically generate a sitemap with tools

For sitemaps with more than a few dozen URLs, you will need to generate the sitemap. There are various tools that can [generate a sitemap](https://www.google.com/search?q=generate+sitemap)
. However, the best way is to have your website software generate it for you. For example, you can extract your site's URLs from your website's database and then export the URLs to either the screen or actual file on your web server. Talk to your developers or server manager about this solution. If you need inspiration for the code, check out our old, unmaintained collection of [third-party sitemap generators](http://code.google.com/p/sitemap-generators/wiki/SitemapGenerators)
.

You don't have to worry about the order of the URLs in your sitemap, it doesn't matter to Google. Note the [size requirements for sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#general-guidelines)
; if the sitemap becomes too large, you must split it into smaller sitemaps. Learn more about [managing large sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps)
.

Submit your sitemap to Google
-----------------------------

Keep in mind that submitting a sitemap is merely a hint: it doesn't guarantee that Google will download the sitemap or use the sitemap for crawling URLs on the site. There are a few different ways to make your sitemap available to Google.

*   **Submit a sitemap in Search Console** using the [Sitemaps report](https://support.google.com/webmasters/answer/7451001)
    . This will allow you to see when Googlebot accessed the sitemap and also potential processing errors.
*   **Use the Search Console API** to programmatically [submit a sitemap](https://developers.google.com/webmaster-tools/v1/sitemaps/submit)
    .
*   **Insert the following line anywhere in your robots.txt file**, specifying the path to your sitemap. We will find it the next time we crawl your robots.txt file:
    
    Sitemap: https://example.com/my\_sitemap.xml
    
*   If you use Atom or RSS, you can use [WebSub](https://www.w3.org/TR/websub/)
     to broadcast your changes to search engines, including Google.

How to cross-submit sitemaps for multiple sites
-----------------------------------------------

If you have multiple websites, you can simplify the submission process by creating one or more sitemaps that include URLs for all your verified sites, and saving the sitemaps to a single location. You can choose to use:

*   A single sitemap that includes URLs for multiple websites, including sites from different domains. For example, the sitemap located at `https://host1.example.com/sitemap.xml` can include the following URLs.
    *   `https://host1.example.com`
    *   `https://host2.example.com`
    *   `https://host3.example.com`
    *   `https://host1.example1.com`
    *   `https://host1.example.ch`
*   Individual sitemaps (one for each site) that all reside in a single location. For example, `https://host1.example.com` may host all of these sitemaps:
    *   `https://host1.example.com/host1-example-sitemap.xml`
    *   `https://host1.example.com/host2-example-sitemap.xml`
    *   `https://host1.example.com/host3-example-sitemap.xml`
    *   `https://host1.example.com/host1-example1-sitemap.xml`
    *   `https://host1.example.com/host1-example-ch-sitemap.xml`

To submit cross-site sitemaps that are hosted in a single location, you can either use Search Console or robots.txt.

### Sitemap cross-submission with Search Console

1.  Make sure that you have [verified ownership](https://support.google.com/webmasters/answer/35181)
     of all the sites that you will add in the sitemap.
2.  [Create a sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#createsitemap)
     (or more if you prefer) that includes URLs from all the sites that you want to cover. You can include the sitemaps in a [sitemap index](https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps)
     file if you prefer and work with that sitemap index from here on.
3.  Using Google Search Console, [submit your sitemaps or sitemap index file](https://support.google.com/webmasters/answer/7451001)
    .

### Sitemap cross-submission with robots.txt

1.  [Create one or more sitemaps](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#createsitemap)
     for each individual site. For each individual sitemap file, make sure you include only URLs from that particular site.
2.  Upload all sitemaps to a single site you have control over, for example `https://sitemaps.example.com`.
3.  For each individual site, make sure that the robots.txt file references the sitemap for that individual site. For example, if you created a sitemap for `https://example.com/` and you're hosting the sitemap at `https://sitemaps.example.com/sitemap-example-com.xml`, reference the sitemap in the robots.txt file at `https://example.com/robots.txt`.
    
    \# robots.txt file of https://example.com/
    sitemap: https://sitemaps.example.com/sitemap-example-com.xml
    

Troubleshooting sitemaps
------------------------

If you're having trouble with your sitemap, you can investigate the errors with Google Search Console. See Search Console's [sitemaps troubleshooting guide](https://support.google.com/webmasters/answer/7451001#errors)
 for help.

Send feedback

Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/)
, and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0)
. For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies)
. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-10 UTC.

 *    [![LinkedIn](https://developers.google.com/static/search/images/li.png)LinkedIn](https://www.linkedin.com/showcase/googlesearchcentral/)
    
    Join us on LinkedIn
    
*    [![YouTube](https://developers.google.com/static/homepage-assets/images/yt.svg)YouTube](https://www.youtube.com/channel/UCWf2ZlNsCGDS89VBF_awNvA)
    
    Watch our videos
    
*    [![Blog](https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/rss_feed/default/24px.svg)Blog](https://feeds.feedburner.com/blogspot/amDG)
    
    Subscribe to our RSS feed
    
*    [![Podcast](https://developers.google.com/static/search/images/search-off-the-record-podcast-logo.png)Podcast](https://pod.link/1512522198)
    
    Listen to Search Off the Record
    
*    [![X (Twitter)](https://developers.google.com/static/homepage-assets/images/x.svg)X (Twitter)](https://twitter.com/googlesearchc)
    
    Join us on X (Twitter)

*   ### Get support
    
    *   [Go to the help forum](https://support.google.com/webmasters/community)
        
    *   [Submit a question for office hours](https://developers.google.com/search/help/office-hours)
        
    *   [Report spam, phishing, or malware](https://developers.google.com/search/help/report-quality-issues)
        
    *   [More support resources](https://developers.google.com/search/help)
        
*   ### Resources
    
    *   [Do you need an SEO?](https://developers.google.com/search/docs/fundamentals/get-on-google)
        
    *   [SEO Starter Guide](https://developers.google.com/search/docs/fundamentals/seo-starter-guide)
        
    *   [Status of Search systems](https://status.search.google.com/)
        
    *   [Search Console documentation](https://support.google.com/webmasters)
        
    *   [Case Studies](https://developers.google.com/search/case-studies)
        
*   ### Tools
    
    *   [Search Console](https://search.google.com/search-console)
        
    *   [Rich Results Test](https://search.google.com/test/rich-results)
        
    *   [PageSpeed Insights](https://pagespeed.web.dev/)
        
    *   [AMP Test](https://search.google.com/test/amp)
        

[![Google Developers](https://www.gstatic.com/devrel-devsite/prod/vb08cbdb02acf7f66ad9727ddfba9d81df8806422eb5dd63dba194c9c8c7997f7/developers/images/lockup-google-for-developers.svg)](https://developers.google.com/)

*   [Android](https://developer.android.com/)
    
*   [Chrome](https://developer.chrome.com/home)
    
*   [Firebase](https://firebase.google.com/)
    
*   [Google Cloud Platform](https://cloud.google.com/)
    
*   [Google AI](https://ai.google.dev/)
    
*   [All products](https://developers.google.com/products)
    

*   [Terms](https://developers.google.com/terms/site-terms)
    
*   [Privacy](https://policies.google.com/privacy)
    
*   [Manage cookies](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap#)
    

*   English
*   Deutsch
*   Español
*   Español – América Latina
*   Français
*   Indonesia
*   Italiano
*   Polski
*   Português – Brasil
*   Tiếng Việt
*   Türkçe
*   Русский
*   العربيّة
*   हिंदी
*   ภาษาไทย
*   中文 – 简体
*   中文 – 繁體
*   日本語
*   한국어