★★★★★ Rated 4.9/5 from 240+ reviews on Google & Clutch
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>.

4.7 (3,360) 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

Built to win the click, not just the ranking

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.

Similar free tools

People who used this also liked

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.