Generate hreflang alternate link tags from a list of language/URL pairs, telling search engines which language or region each page version targets.
Google AdSense Banner
This area will contain advertisements after approval.
Google AdSense Banner
This area will contain advertisements after approval.
hreflang tags tell search engines that multiple URLs are language or region-specific versions of the same content, so the right version is shown to users in each locale, rather than the pages being treated as duplicate content or the wrong version ranking for a given region. The same complete set of tags (listing every language version) is meant to be placed on every page in the set, including a page listing itself.
The x-default entry specifies which version to show visitors whose language or region doesn't match any of your other listed versions, commonly your default or a language-selector page. It's optional but recommended for sites targeting multiple locales.
Entering en, https://example.com/en on one line, fr, https://example.com/fr on the next, and es, https://example.com/es on a third, with x-default enabled and set to https://example.com/en, produces four link tags: one hreflang="en" tag, one hreflang="fr" tag, one hreflang="es" tag, each pointing to its respective URL, plus a final hreflang="x-default" tag pointing to the English version. All four tags together are the block that belongs on every one of these three pages, not just the English one.
Placing only the tags relevant to other languages on each page, and omitting the self-referencing tag, Google's guidelines require each page to include a hreflang tag pointing to itself as well as to every alternate version.
Putting the complete set of tags only on the homepage instead of on every page in the set, each language/region version needs the identical full block of hreflang tags, not just the default version.
Using inconsistent language/region codes across the site (like 'en' on one page and 'en-US' on another) for what's meant to be the same version, pick one consistent scheme and use it in every hreflang tag referencing that version.
Use ISO 639-1 language codes (like 'en', 'fr', 'es'), optionally combined with an ISO 3166-1 region code (like 'en-us' or 'en-gb') for region-specific targeting.
Yes, each page's hreflang set should include a tag pointing to itself as well as to all other language versions, this tool's output is the same complete block meant to be placed on every page in the set.
Google AdSense Banner
This area will contain advertisements after approval.