Jaipur, India · serving India, UAE and USA
Home/Free Tools/Technical SEO/Hreflang Tag Generator

Hreflang Tag Generator

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>.

100% free No signup Runs in your browser

Try it now

Generated hreflang tags
About this tool

What is the Hreflang Tag Generator?

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.

Why use it

Why use this tool

Any number of locales

Add a row for every language/region version you publish.

x-default support

Include an x-default tag for users who don't match any locale.

Valid syntax

Correct rel="alternate" hreflang link tags, ready to paste.

How it works

A few clicks to a better result

1

Add your locales

For each version, enter its hreflang code (e.g. en-gb) and full URL.

2

Copy the tags

Grab the generated set of link tags.

3

Add to every page

Paste the same set in the of every alternate page so they reference each other.

Written, edited and verified by Hemant Kumar, SEO consultant in Jaipur with about 8 years of experience in technical SEO, AEO and GEO. Last reviewed: Jun 2026.
Guide

How to read the result and act on it

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.

Common mistakes to avoid

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.

Next steps

Use this with

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.

Similar free tools

More free tools you may need

All free tools ↗
FAQ

Questions, answered

A language code, optionally with a region — like en, en-us or fr-ca. Use ISO 639-1 for language and ISO 3166-1 Alpha-2 for region.
x-default specifies the fallback page for users whose language/region doesn't match any of your other hreflang entries — often a language selector or your main version.
The most common cause is missing return tags — every alternate page must list the full set, including itself. Also use absolute URLs and valid codes.
WhatsApp Get your free proposal