Automatic Hreflang Sitemap Generator

If your website uses multiple languages, you can automatically include alternate hreflang information in your XML sitemaps.

Note: We have a video tutorial:

XML Sitemaps and Hreflang Sitemaps

XML sitemaps allow each page URL to include a list of URLs with its alternate language versions. This specific concept is often referred to as HREFLang sitemaps, and it helps search engines finding language translations of the same content.

The process is the same as when creating a standard XML sitemap in A1 Sitemap Generator.

Simply enter website root path, hit the Start scan button and wait for the website crawl to finish.

xml sitemaps website scan

Before building the actual XML sitemap files, enable the option Create sitemap | Include "hreflang" alternate URLs in sitemap files.

create XML sitemaps with hreflang information

You can now build the XML sitemap with the additional hreflang information:

generate xml sitemap

The way page URLs are identified as containing the same content in different languages are a combination of:
  • HTML page markup including <link rel="alternate" href="http://example.com" hreflang="xxx" />.
  • Page language detection based on a variety of methods explained here.
  • URL similarity between different language variations.
A1 Sitemap Generator
A1 Sitemap Generator | help | previous | next
Build all kinds of sitemaps including text, visual HTML / CSS, RSS, XML, image, video, news and mobile for all your websites no matter the platform they use.
This help page is maintained by
As one of the lead developers, his hands have touched most of the code in the software from Microsys. If you email any questions, chances are that he will be the one answering.
Share this page with friends   LinkedIn   Twitter   Facebook   Pinterest   YouTube  
 © Copyright 1997-2023 Microsys

 Usage of this website constitutes an accept of our legal, privacy policy and cookies information.