SEO · Free tool
Hreflang Tag Builder
Map your page's language variants to their URLs. Hindi, Tamil, Telugu, Bengali and other Indic codes auto-suggested. Always include x-default.
Paste into <head> (on every language variant)
<link rel="alternate" hreflang="en" href="https://www.example.com/page" /> <link rel="alternate" hreflang="hi" href="https://www.example.com/hi/page" /> <link rel="alternate" hreflang="ta" href="https://www.example.com/ta/page" /> <link rel="alternate" hreflang="x-default" href="https://www.example.com/page" />
Three rules that prevent 90% of hreflang bugs
One — every language version must list every other version in its hreflang block, including a self-reference. Two — always include x-default pointing to your fallback (usually the English page). Three — URLs must be absolute and canonical; relative paths and non-canonical variants silently break the mapping.
India-specific guidance
Use the broad language code (hi, ta) unless your regional Hindi differs from another. If you serve Hindi to both India and the diaspora identically, hi is enough — adding hi-IN forces Google to pick between them and often gets it wrong. Pair this with the canonical tag generator and consult hreflang for Indian languages for the full Indic checklist.
After deployment
- Check Search Console → International Targeting for warnings.
- Validate the symmetry: A → B must always pair with B → A.
- Re-deploy the same block on every language variant — they all reference each other.
- If you have many variants, consider declaring hreflang in the sitemap to avoid per-page bloat.
FAQ
Do I need hreflang for English + Hindi versions of the same page?
Yes if both versions exist as separate URLs. Hreflang tells Google which language to serve which user; without it, Google may show the English version to Hindi searchers and vice versa.
What is x-default and do I need it?
x-default tells Google which page to show when no language match exists. Use it on the global / English fallback page. Without x-default, Google guesses, often badly.
Hreflang for regional Hindi (hi-IN) or just hi?
Use the broader language code (hi) unless the content genuinely differs by region. Currency, examples and tone can differ - but if pages are identical, hi alone is enough.