Hreflang Tag Generator
International SEO ยท Multi-language link tags ยท XML sitemap entries
โ† Portfolio
TOOL #08
๐ŸŒ International SEO

Hreflang Tag Generator

Generate correct hreflang link tags for multilingual and multi-regional websites. Add language/country pairs, enter URLs, and get <link> tags, HTTP headers, and XML sitemap code โ€” instantly.

โšก Quick Language Sets
โš™๏ธ Base Settings
How it works: Add one row per language/region version of your page. The "x-default" tag tells Google which URL to show when no other language matches โ€” usually point it to your English or primary version.
๐Ÿ—ฃ๏ธ Language / Region Pairs
Language Code Page URL
๐Ÿ“„ Generated Output
For Apache (.htaccess): Add these Header directives to your .htaccess. Alternative to <link> tags โ€” useful for PDFs and non-HTML resources.
Usage: Add this <url> block to your sitemap.xml. Don't forget to add the xhtml namespace to your urlset: xmlns:xhtml="http://www.w3.org/1999/xhtml"
Add language pairs to see a preview table
๐Ÿ“š Language Codes Reference
en โ€” English
en-IN โ€” English (India)
en-US โ€” English (US)
hi โ€” Hindi
ta โ€” Tamil
te โ€” Telugu
kn โ€” Kannada
ml โ€” Malayalam
mr โ€” Marathi
de โ€” German
fr โ€” French
x-default โ€” Fallback
๐Ÿ’ก Key rules: Every page must self-reference its own hreflang. Include x-default pointing to your primary/default page. Language codes must match exactly on all pages. Test with Google Search Console after deployment.