AgenticSEO Start · ₹2,999

Free tool · no signup

Hreflang that does not sabotage itself.

Build the alternate tags for a page and check the two mistakes that break hreflang: a missing return link, and no x-default.

Hreflang generator runs in your browser

Nothing you type is sent anywhere. No account, no email, no rate limit — the page works offline once loaded.

Hreflang is a set, not a tag

Most hreflang failures are not syntax errors. They are set errors: the English page links to the Hindi page, the Hindi page links to nothing, and the whole cluster is discarded. Google requires every URL in a set to reference every other URL in that set, including itself.

  1. Reciprocity. A → B means B → A. Missing return links are the single most common failure.
  2. x-default. One URL must be declared as the fallback for users whose language is not in the set. Without it, Google chooses, and it often chooses badly.
  3. Valid codes. ISO 639-1 language, optionally with ISO 3166-1 region: hi-IN, en, not en_IN or english.
  4. Absolute URLs. Relative paths are ignored.

When not to use hreflang

If the pages are the same language and differ only by city — Mumbai versus Delhi for the same service — you do not need hreflang at all. You need one page, or two genuinely different pages. Hreflang does not merge near-duplicates; it tells Google which version to show to whom.

How to use it

  1. Add the URL that should be the default for unmatched languages.
  2. List every alternate with a valid code and an absolute URL.
  3. Copy the block into the head of every page in the set — the same block, every time.
  4. Verify reciprocity by checking each URL's source, not just the one you started with.

What this tool cannot tell you

  • It cannot check that the set is reciprocated on your live site; that needs a crawl of all versions.
  • It does not translate anything.
  • It cannot merge duplicate pages — if two URLs are near-identical, hreflang will not fix that.

Questions

Do I need hreflang for city pages?

No. Hreflang is for language and region targeting across genuinely different content. Same-language city pages are not an hreflang case.

Can hreflang be in the sitemap instead?

Yes, and it is often easier to maintain at scale. Pick one method, not both.

What if my pages are machine-translated?

Hreflang does not excuse thin translations. Poor machine translation of every page can outrank nothing but wastes crawl budget.