What Is Hreflang?
Hreflang is an HTML tag that tells search engines about a page's counterparts in other languages and regions. On a multilingual site, correct hreflang usage makes Google show the Turkish page to Turkish users and the English page to English users; it prevents the wrong-language page from ranking and avoids duplicate-content penalties. This tool generates valid hreflang tags from the pairs you enter as "language_code | URL" on each line.
How to Use It
- Write one language and its full URL per line:
tr | https://example.com/sayfa. - Optionally add an x-default address — the default page shown to visitors whose language does not match.
- Click Generate and place the produced tags in each page's
<head>.
Key Rules
- Reciprocity: if page A points hreflang to B, B must point back to A, or Google ignores the tags.
- Self-reference: each page must also declare hreflang for its own language.
- Absolute URLs: use full addresses (starting with https://), not relative ones.
This tool validates the language code and URL format, skips faulty lines and reports how many it skipped. We can set up end-to-end i18n, hreflang and sitemap for your multilingual corporate site with our SEO optimisation and web design services. For a sitemap, see our Sitemap Generator.