Home/Hreflang Tag Generator

Hreflang Tag Generator

Create error-free hreflang tags for multilingual and multi-regional sites. Language/region code validation, x-default check; HTML, XML sitemap and HTTP header outputs.

Language-region codeFull page URL



Frequently Asked Questions

What is hreflang for?

It tells search engines about different language or regional versions of the same content. That way a user in Turkey sees the Turkish page, a user in Germany the German page, and the versions aren't treated as duplicates.

Which pages should get the tags?

You should put the whole tag group on every page in the list. Each version must point to itself and all other versions; hreflang tags without a reciprocal (return) link are ignored by Google.

When is x-default used?

It's the page shown when there's no version matching the user's language/region; usually a language selection page or the English version. It's not required but recommended.

What are common code mistakes?

Write "en-GB" instead of "en-UK" and "tr-TR" instead of "tr_TR". A region can't be used alone ("TR" is invalid); the language comes first. Language codes follow ISO 639-1 and region codes ISO 3166-1 alpha-2.