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

  1. Add each language version with its URL.
  2. Choose HTML tags or sitemap entries.
  3. 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 →