Hreflang Generator
Tell Google which language version of a page to show to which users, for example English, Hindi and Telugu versions.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Output
Generated code
<link rel="alternate" hreflang="en-IN" href="https://example.com/" /> <link rel="alternate" hreflang="hi-IN" href="https://example.com/hi/" /> <link rel="alternate" hreflang="te-IN" href="https://example.com/te/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
Every language version must list all versions, including itself. Use x-default for the page shown to users whose language does not match. The XML option needs xmlns:xhtml="http://www.w3.org/1999/xhtml" on the urlset.
How to use Hreflang Generator
- Add each language version with its URL.
- Choose HTML tags or sitemap entries.
- Add the code to every language version of the page.
Frequently asked questions
What is x-default?
The fallback page for users whose language or region doesn’t match any listed version, often an English page or a language picker.
Do all versions need the same tags?
Yes. Every version must link to all others and itself, or Google may ignore the annotations.
Related tools
All Web & SEO →- XML Sitemap Generator Build a sitemap.xml for a small website or landing pages without plugins or crawlers.
- Meta Tag Generator Create every meta tag a page needs for search results and social sharing, with live previews of how it will look.
- .htaccess Redirect Generator Create redirect rules for Apache web servers without memorising mod_rewrite syntax.
- Screen & Browser Info Quickly find your screen size, viewport, device pixel ratio and other details that web developers and support teams ask for.
- Link Preview Checker Check how a page or bio link will appear when shared, and fix titles and images before your audience sees them.
- Favicon Checker Find out which favicon and app icon files a website provides.