Free Tool

hreflang Tag Checker

Detect hreflang tags on any page. Verify language alternate versions and find common implementation issues.

Want Deeper SEO Insights?

Recommended Tool

Affiliate

Take your SEO to the next level with Morningscore – an intuitive SEO tool that helps you track rankings, find opportunities, and grow your organic traffic. Perfect for agencies and businesses serious about SEO results.

Rank tracking & keyword research
Competitor analysis & backlink monitoring
Actionable SEO missions & guidance

Disclosure: We may earn a commission if you sign up through our link, at no extra cost to you. We only recommend tools we genuinely believe in. Your support helps us keep supporting this tool! ❤️

Why hreflang Matters for International SEO

If your website serves content in multiple languages or targets audiences in different countries, hreflang tags tell search engines which version to show each user. Without them, Google may display your English page to Spanish-speaking users, or index the wrong regional version for a country. Correct hreflang implementation prevents cannibalization between language versions and ensures each audience sees the most relevant content in search results.

What Are hreflang Tags?

hreflang is an HTML link attribute (rel="alternate" hreflang="xx") that specifies the language and optionally the region of an alternate page version. For example, hreflang="en-US" points to the American English version while hreflang="en-GB" points to British English. Search engines use these signals to serve the correct version in localized search results. hreflang tags can be implemented via HTML link elements in the head, HTTP headers, or XML sitemaps.

hreflang Best Practices

  • Every hreflang reference must have a return link. If page A points to page B with hreflang, page B must point back to page A. Missing return links cause search engines to ignore the hreflang entirely.
  • Always include a self-referencing hreflang tag. Each page should declare its own language version alongside its alternates to create a complete, unambiguous language map.
  • Use hreflang="x-default" to designate a fallback page for users whose language or region does not match any specific version. This is typically your main language or a language-selection landing page.
  • Always use absolute URLs in hreflang tags. Relative URLs are not supported by the specification and will be ignored by search engines.

Frequently Asked Questions

How do I implement hreflang tags?
There are three methods: HTML link elements in the page head, HTTP response headers (useful for PDFs and non-HTML files), or XML sitemap entries. HTML link elements are the most common and easiest to audit. Whichever method you choose, every alternate must include reciprocal links back to all other versions.
What is hreflang x-default?
The x-default value designates a fallback URL for users whose language or region does not match any declared hreflang version. It typically points to your primary language page or a language-selection page. While optional, Google strongly recommends it for sites with multiple language versions.
Do hreflang tags need to be self-referencing?
Yes. Google's documentation explicitly states that each page should include a self-referencing hreflang tag. Without it, the language map is incomplete and search engines may not process the other hreflang declarations correctly on that page.
Should I use hreflang in a sitemap or in link elements?
Both approaches are valid and produce the same result. HTML link elements are simpler for small sites and easier to audit visually. XML sitemap hreflang is better for large sites with thousands of pages because it centralizes the language mapping and avoids bloating the HTML head of every page.