Free SEO tool

hreflang Generator

Generate correct hreflang tags for all your site's language versions — including x-default.


          

How to use this tool?

  1. Hit Add language for each version and enter its code and URL.
  2. Add the x-default URL as fallback (optional but recommended).
  3. Copy the tags into the of every site version.
FAQ

hreflang FAQs

What's the difference between ar and ar-eg?

ar is generic Arabic, ar-eg is Egyptian Arabic specifically. Use the country code when content targets a specific country.

Must every version link to all versions?

Yes — hreflang must be reciprocal: every page links to itself and all other versions, or Google ignores it.