Generate correct hreflang tags for multi-language and multi-region sites — pair each locale with its URL and copy the link tags into your <head>.
The Hreflang Tag Generator builds the <link rel="alternate" hreflang="…"> tags that tell Google which language and region version of a page to show each searcher. Add a row per locale (e.g. en-us, en-gb, fr-fr), paste each version's URL, optionally add an x-default, and the tool outputs the full, correctly-formatted set.
Hreflang is powerful but unforgiving — wrong language codes, missing return tags or absolute-URL mistakes silently break it. This generator enforces the right syntax so you don't have to memorise ISO codes or worry about formatting. Remember the golden rule: the same set of tags must appear on every alternate page (return tags), so they all reference each other.
Add a row for every language/region version you publish.
Include an x-default tag for users who don't match any locale.
Correct rel="alternate" hreflang link tags, ready to paste.
For each version, enter its hreflang code (e.g. en-gb) and full URL.
Grab the generated set of link tags.
Paste the same set in the of every alternate page so they reference each other.
Enter each language or region version with its full URL, then place the full set of tags on every version, including a self-referencing tag. Add x-default for the fallback page if you have one. Use valid ISO language codes and, where needed, region codes, such as en-in or hi-in. After publishing, check the pages in the source and confirm every URL returns a 200 status and points back to the others.
Missing return links are the most frequent error, because each page in the set must reference the others. Other mistakes include wrong codes, pointing to redirected or noindex URLs, and mixing hreflang with a canonical that points to another language. Hreflang helps match the right version to the searcher but does not translate or rank a page by itself.
Browse all 41 free technical seo tools, or see the full free SEO toolbox. If you would rather have this handled for you, take a look at our technical SEO services and the results from real projects.