Skip to content
Back to Glossary

Hreflang Tag

Hreflang tags are HTML attributes that tell search engines which language and regional version of a page to serve to users based on their location and language preferences, preventing duplicate content issues across multilingual or multi-regional websites.

What Hreflang Tag Means in Practice

Hreflang is one of those technical SEO elements that most businesses never need to think about, but when you do need it, getting it right is critical. The tag exists to solve a specific problem: when your website has multiple versions of the same page in different languages or for different countries, search engines need a signal to understand the relationship between those pages and serve the right version to the right user.

The most common scenario is a business operating in multiple countries with localized content. A healthcare technology company with separate sites for the US (English), Spain (Spanish), and Brazil (Portuguese) needs hreflang tags to tell Google that these three pages are regional variants of the same content, not duplicate pages competing with each other. Without hreflang, Google might decide on its own which version to index for each market, and it doesn’t always choose correctly.

The syntax follows a consistent pattern. Each hreflang tag specifies a language code (following ISO 639-1 standards) and optionally a region code (following ISO 3166-1 Alpha 2 standards). English content for the US is en-us. Spanish content for Spain is es-es. Spanish content for Mexico is es-mx. The language and region codes are separated by a hyphen, and every page variant must reference every other variant, including itself. This bidirectional referencing is where most implementation errors occur.

There’s also the x-default tag, which serves as a fallback. It tells search engines which page to show when no other hreflang tag matches the user’s language or region. Most implementations point x-default to the primary English version or to a language-selection landing page. Skipping x-default isn’t technically an error, but it removes your ability to control the fallback experience and leaves that decision to Google’s algorithm.

Implementation happens through one of three methods: HTML <link> elements in the <head> of each page, HTTP headers (used for non-HTML documents like PDFs), or XML sitemap annotations. For most websites, the HTML <link> approach is the simplest and most maintainable. The sitemap approach scales better for very large sites with thousands of localized pages because it centralizes the hreflang declarations rather than distributing them across every page’s HTML.

A critical distinction that many teams miss: hreflang is about language and region targeting, not content translation quality. Google won’t verify that your Spanish page is actually a good translation of your English page. Hreflang simply tells Google that these pages serve the same purpose for different audiences. The quality of the localized content is a separate ranking factor entirely. We’ve seen sites implement hreflang correctly but still underperform in international markets because their translated content was machine-generated without localization, meaning the search intent match was poor even though the technical signaling was correct.

For businesses operating only in one country and one language, hreflang is unnecessary. A US-based dermatology group with 100+ locations doesn’t need hreflang tags because all content serves the same language and region. The resources required for hreflang implementation are better spent elsewhere. Where hreflang becomes essential is for ecommerce brands selling internationally, SaaS companies with localized product pages, or any organization with meaningful web presence across multiple language markets.

Why Hreflang Tag Matters for Your Marketing

When hreflang is implemented correctly on a site that needs it, the impact on international search visibility is significant. Without hreflang, search engines may consolidate your regional pages into a single indexed version, effectively making your localized content invisible in the markets it was created for. You invested in translating and localizing content, but Google doesn’t know those pages exist for specific audiences.

Google’s own documentation on hreflang confirms that these tags are the primary mechanism for indicating language and regional targeting. Sites that implement hreflang correctly see their regional pages appear in the appropriate local search results, while sites without hreflang frequently experience the wrong language version ranking in the wrong market. For an ecommerce brand, that means a Spanish-language product page might not appear in Google.es results because Google chose to index the English version instead.

The business cost of incorrect or missing hreflang implementation compounds over time. Every month that your French product pages don’t appear in French search results is a month of lost organic traffic and revenue in that market. For businesses with significant international revenue, the SEO impact of proper hreflang implementation can represent a meaningful percentage of organic acquisition across non-primary markets.

How Hreflang Tag Works

Hreflang tags work through a system of mutual references. Every page that’s part of a language or regional set must declare its relationship to every other page in the set, including itself. This bidirectional requirement is the single most common source of implementation errors.

Here’s how a correct implementation looks for a page with US English, UK English, and Spanish variants. Each of the three pages includes three hreflang <link> tags in its <head>: one pointing to itself with its own language-region code, one pointing to each of the other two variants, and optionally one x-default pointing to the fallback page. If the US English page references the Spanish page but the Spanish page doesn’t reference the US English page back, Google may ignore the hreflang signals entirely. Both sides must confirm the relationship.

Common implementation errors include mismatched return tags (page A references page B, but page B doesn’t reference page A), incorrect language or region codes (using en-uk instead of the correct en-gb), pointing hreflang tags to pages that return non-200 HTTP status codes, and failing to include self-referential tags. Google Search Console reports hreflang errors under the International Targeting section, and monitoring this report is essential for any site with hreflang implementation.

What good implementation looks like: Every localized page references all variants including itself. Language and region codes follow ISO standards exactly. All referenced URLs return 200 status codes. The x-default tag points to a sensible fallback. And the XML sitemap includes hreflang annotations that match the on-page declarations. The sitemap and on-page signals should be consistent, not contradictory.

What bad implementation looks like: Partial tag coverage where some pages have hreflang and others don’t. Mixed methods where some pages use HTML tags and others rely on sitemap annotations with conflicting values. Incorrect codes that don’t follow ISO standards. And orphaned references where tags point to pages that have been deleted, redirected, or moved. Bad implementation can actually be worse than no implementation because it sends conflicting signals that confuse search engines about your site’s international structure.

For technical SEO teams managing hreflang at scale, automated validation is essential. Manual auditing breaks down once you’re managing hreflang across hundreds or thousands of pages. Tools that crawl your site and validate bidirectional tag consistency, status codes, and code accuracy save hours of manual checking and catch errors before they impact international rankings.

External Resources

Frequently Asked Questions

What is an hreflang tag in simple terms?

An hreflang tag is a piece of HTML code that tells Google which language and country a web page is intended for. If you have the same page in English and Spanish, hreflang tags tell Google to show the English version to English-speaking searchers and the Spanish version to Spanish-speaking searchers. Without these tags, Google guesses on its own, and it doesn’t always get it right.

Do I need hreflang tags if my website is only in English?

If your website serves one language in one country, you don’t need hreflang tags. They’re specifically designed for sites with multiple language or regional versions of the same content. A US-only business with English-only content has no use case for hreflang. Your resources are better spent on other technical SEO priorities that directly impact your rankings.

What is the x-default hreflang tag?

The x-default tag is a fallback signal that tells search engines which page to show when a user’s language or region doesn’t match any of your specified hreflang variants. Most sites point x-default to their primary language version or to a language-selection page. It’s technically optional, but omitting it means Google decides the fallback on its own, which removes your control over the default experience.

How do hreflang tags relate to SEO services?

Hreflang implementation is a component of technical SEO for businesses operating across multiple languages or regions. Correct implementation ensures that localized content appears in the right markets, preventing duplicate content issues and wasted crawl budget. At DeltaV, we audit and implement hreflang as part of technical SEO engagements for clients with international web presence, ensuring every regional page is properly indexed in its target market.

Can hreflang tags hurt my SEO if implemented incorrectly?

Yes. Incorrect hreflang implementation can be worse than no implementation at all. Mismatched return tags, invalid language codes, or tags pointing to non-existent pages send conflicting signals that confuse search engines about your site’s structure. The result can be the wrong language version appearing in search results, pages being deindexed, or regional content losing visibility entirely. Always validate hreflang implementation through Google Search Console’s International Targeting report.

What’s the difference between hreflang tags and content translation?

Hreflang tags handle the technical signaling that tells search engines page relationships exist. Translation handles the actual content. You need both for international SEO to work. A perfectly implemented hreflang setup won’t help if the translated content is low quality or doesn’t match local search intent. And excellent translated content won’t reach the right audience if hreflang tags are missing or misconfigured. The technical layer and the content layer must work together.

Related Resources

Related Glossary Terms

  • Technical SEO: The practice of optimizing a website’s infrastructure for search engine crawling and indexing. Hreflang is one of several technical SEO elements that ensure search engines understand and properly index your site’s structure.
  • 301 Redirect: A permanent redirect from one URL to another. Hreflang tags must never point to URLs that redirect, as this creates conflicting signals about page location and language targeting.
  • Robots.txt: A file that controls how search engines crawl your site. Pages referenced in hreflang tags must be crawlable and not blocked by robots.txt, or the language signals will be ignored.
  • Google Search Console: Google’s free tool for monitoring site performance in search. Search Console’s International Targeting report is the primary tool for identifying and troubleshooting hreflang implementation errors.