Skip to content

Language URL Variants

HTML <head> Tags

<link rel="alternate" hreflang="hr" href="https://efortis.hr/seo-alati" />
<link rel="alternate" hreflang="en" href="https://efortis.hr/en/seo-tools" />
<link rel="alternate" hreflang="de" href="https://efortis.hr/de/seo-tools" />
<link rel="alternate" hreflang="x-default" href="https://efortis.hr/seo-alati" />

XML Sitemap (<xhtml:link>)

<url>
  <loc>https://efortis.hr/seo-alati</loc>
    <xhtml:link rel="alternate" hreflang="hr" href="https://efortis.hr/seo-alati" />
    <xhtml:link rel="alternate" hreflang="en" href="https://efortis.hr/en/seo-tools" />
    <xhtml:link rel="alternate" hreflang="de" href="https://efortis.hr/de/seo-tools" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://efortis.hr/seo-alati" />
</url>

Want to automate your entire SEO & AI visibility workflow?

EFORTIS AI unifies Google Search Console, WDF*IDF semantic optimization, AI article writing, GEO tracking, and direct WordPress publishing in one platform.

How to Generate Valid Hreflang Tags

Add your language URL variants and copy ready-to-use HTML or XML sitemap code.

  • Always include an x-default tag as a fallback for unmatched languages.
  • Every language variant should include return links to all other variants and itself.

1. Add Language Codes & URLs

Enter all language variants (e.g., en, hr, de) plus your x-default fallback URL.

ISO 639-1 + x-default

2. Copy HTML or XML Sitemap Output

Choose between <link rel='alternate'> tags for <head> or <xhtml:link> for sitemap.xml.

HTML & XML formats

Why Hreflang Matters for International SEO

The most frequent international SEO error is missing return links or forgetting the x-default fallback.

This tool outputs both HTML <head> link tags and XML sitemap <xhtml:link> blocks.

Right Language for Every Market

Users see the localized version of your page in their country's search results.

No Cross-Language Cannibalization

Helps Google distinguish regional variants cleanly.

FAQ

Which language code format should I use?+

Use ISO 639-1 language codes (e.g., en, hr, de) or language-region codes (e.g., en-GB, de-AT).

What is x-default used for?+

x-default specifies the fallback URL for visitors whose browser language doesn't match any explicit hreflang entry.

Do I need hreflang in both HTML and XML sitemaps?+

Either method works cleanly on its own as long as return links are consistent across all language versions.

What is a self-referencing hreflang?+

Each language page must include a hreflang tag pointing to itself in addition to all alternate language versions.

Explore more free SEO tools

Live Audit
Live AI Readiness & On-Page Checker
Enter any URL to inspect /llms.txt, robots.txt access for AI bots, Title, Meta Description, H1, image alt tags, and JSON-LD schemas.
On-Page SEO
Google SERP Simulator
Preview how your Title tag and Meta Description look on Google (desktop & mobile) with exact pixel-width measurement.
GEO & AI SEO
llms.txt & AI Crawler Generator
Generate a spec-compliant /llms.txt Markdown guide and robots.txt rules for ChatGPT, Claude, and Perplexity.
Technical SEO
robots.txt Generator & AI Bot Validator
Build a clean robots.txt for WordPress, SaaS, or e-commerce and live-test whether any URL path is allowed for Googlebot or AI bots.
Structured Data
JSON-LD Schema Markup Generator
Generate valid JSON-LD structured data for Article, FAQPage, LocalBusiness, Organization, and BreadcrumbList.
Content & On-Page
Content & Keyword Density Analyzer
Paste text or HTML to get instant word count, reading time, H1–H3 heading check, image alt audit, and top 1-word & 2-word phrases.
Analytics & Technical SEO
UTM & Canonical URL Builder
Build clean UTM campaign links and strip tracking parameters (fbclid, gclid, utm_*) to generate a clean rel=canonical tag.
Social & CTR
Open Graph & Social Share Preview
Preview how your link looks when shared on LinkedIn, X, and Facebook, and generate og:* and twitter:* meta tags.
Technical SEO
XML Sitemap Analyzer & Health Checker
Enter a domain or sitemap.xml URL to detect duplicates, http:// links, robots.txt conflicts, and live HTTP status codes.
Schema & CRO
FAQ Schema + Visual Accordion Generator
Build Q&A pairs and export valid FAQPage JSON-LD schema alongside a zero-JS responsive HTML/CSS accordion.