Home / Tools / Hreflang tag generator

Hreflang tag generator


Build hreflang tags for every language and country version of a page, ready to paste into your site or sitemap.

SEO

About this tool

Show the right version to each audience

If you run pages for different countries or languages, such as an English page for the UK and an Urdu page for Pakistan, hreflang stops search engines showing the wrong one.

List each version once with its language and address. The tool checks the codes and gives you the tags for the page head, or the XML version for your sitemap.

FAQ

Questions about this tool

What is x-default?

The page to show when no version matches the visitor, often a country picker or your main site.

Do I need the tags on every version?

Yes. Each version must carry the full set, including a link to itself.

Is it en-UK or en-GB?

en-GB. The country code for the United Kingdom is GB.

Weekly playbook

Get a new tool or playbook every week

One email a week. Ten minutes to read, one thing to run.