Language and Region Tag Generator - by Federico Calò
Generate hreflang tags for your multilingual site in HTML head, XML sitemap, and HTTP headers.
Configure
Keep it brief
No generated output
Fill out the form and click the button to generate output.
What is the purpose of the hreflang tag and when should it be used?
The hreflang attribute is an HTML attribute that tells Google in which language and geographic region a page is intended. Use it when you have the same content in multiple languages or regional variations to avoid Google considering pages as duplicate content.
Where can I insert hreflang tags?
Puoi inserire hreflang in tre modi: nelle tag <link> del blocco <head> HTML, nei tag <xhtml:link> della sitemap XML, oppure nell'header HTTP Link. Tutti e tre i metodi sono validi e supportati da Google; scegli in base alla tua architettura.
What is the default value?
Default page for users whose country or language does not match any specified variants, usually pointing to the international home page or the primary language version of the site.
What languages are accepted for code formats?
Language codes are valid ISO 639-1 two-letter codes (e.g. "it", "en", "fr") or language-region combinations like "en-US", "pt-BR", "de-CH". The region part is optional and uses ISO 3166-1 alpha-2. The special value "x-default" is always valid.