Hreflang tag generator

Hreflang is ignored unless it is reciprocal — every version must list every other version, including itself. Enter your URLs and get tags that satisfy that rule, plus the x-default most people forget.

Every version lists every other version, including itself. That reciprocity is what makes Google honour the tags.

HTML — put this in every page's <head>
<link rel="alternate" hreflang="en" href="https://example.com/pricing" />
<link rel="alternate" hreflang="tr" href="https://example.com/tr/pricing" />
<link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
XML sitemap — one <url> block per version
  <url>
    <loc>https://example.com/pricing</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing" />
    <xhtml:link rel="alternate" hreflang="tr" href="https://example.com/tr/pricing" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  </url>
  <url>
    <loc>https://example.com/tr/pricing</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing" />
    <xhtml:link rel="alternate" hreflang="tr" href="https://example.com/tr/pricing" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  </url>
  <url>
    <loc>https://example.com/de/pricing</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing" />
    <xhtml:link rel="alternate" hreflang="tr" href="https://example.com/tr/pricing" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  </url>

Free SEO tools

Your competitors published today.

Bora is an automated SEO tool that researches keywords, writes articles with schema, FAQ and internal links, and publishes them to your site every day — in any of 40 languages, to WordPress, Webflow, Shopify, Wix, Ghost, Notion or Next.js, from $39 a month per website.

Pricing
Hreflang tag generator — multilingual SEO made correct · Bora