What Are Hreflang Tags and How to Use Them for International SEO
Hreflang Tags Explained: Implementation for International SEO
Learn what hreflang tags are, how they work, and how to implement them correctly across multilingual and multi-regional sites.

Scale Your International SEO Without Manual Tag Work
Discover how automated SEO tools handle international page structure at scale, from hreflang to sitemaps.
What Hreflang Tags Actually Do
Hreflang tags are HTML attributes that tell search engines which language and regional version of a webpage to serve to a given user, based on that user's location and browser language settings. Without them, a search engine crawling your French, German, and English pages sees three pages covering the same topic and may treat them as duplicate content, suppressing some or all of them in results.
The tags work by building a logical cluster. Google reads the hreflang annotations across your alternate pages and understands that `/en/page/`, `/fr/page/`, and `/de/page/` are the same asset serving different audiences, so none of them are penalized as duplicates and each is matched to the right audience. They are not a directive Google must obey, but correct implementation meaningfully influences which version gets shown to which user.
The Code Format and Where to Place It
Each hreflang tag uses three HTML attributes: `rel="alternate"`, `hreflang="language-region"`, and `href="URL"`. The language portion follows the ISO 639-1 two-letter code (for example, `en` for English, `fr` for French), and the optional region portion follows the ISO 3166-1 alpha-2 code (for example, `GB` for the United Kingdom), combined as `en-GB`.
Always use fully qualified URLs including `https://`, because relative URLs can cause crawling errors or cause the annotations to be ignored entirely.
You can place hreflang tags in three locations: the `
` section of each HTML page, an XML sitemap, or HTTP response headers. The HTML head approach is the most common and easiest to audit. The sitemap approach suits large sites where editing every page's HTML is impractical. For non-HTML files such as PDFs, HTTP headers are the only option.Reciprocal Tagging and the Self-Reference Rule
The most critical implementation rule is reciprocity. Every alternate version of a page must reference all other versions, and it must also reference itself. If your English page points to the French page but the French page does not point back, Google ignores the entire cluster and treats both pages as independent duplicates.
Missing return tags are one of the most common hreflang errors, and they silently break the whole implementation. A self-referencing tag must always be present on every page in the set. This is non-negotiable: a page that omits its own hreflang annotation gives search engines no confirmation that it belongs to the cluster.
For sites with many regional variants, this means a page targeting five markets must carry five hreflang tags, one per market plus itself. Managing this manually across hundreds of pages is where errors accumulate, which is part of why an automated sitemap generation approach becomes valuable at scale.
The x-default Tag and Fallback Behavior
When no language or region in your hreflang set matches a visitor's locale, search engines need a fallback. The `x-default` tag handles this. It designates a page as the default when no specific regional match exists, typically a language-selector page or your primary English version.
Without an `x-default` entry, search engines must guess which version to show a visitor whose locale is not covered, and that guess is often wrong. Adding `hreflang="x-default"` alongside your regional tags closes this gap and gives you control over the experience for unmatched visitors.
Common Mistakes That Break Hreflang
An Ahrefs study found that 67% of websites have issues with their hreflang tags, which means implementation errors are the norm, not the exception. The most frequent problems are missing return tags, using relative URLs instead of absolute ones, incorrect language or region codes, and misusing hreflang for content that is genuinely identical across regions rather than translated or localized.
Hreflang is not the right tool for serving the same English content to US and UK audiences with no meaningful differences. It is designed for pages that are distinct by language or meaningfully adapted for a regional audience. Using it incorrectly can create more confusion for crawlers than having no tags at all.
For teams running international local SEO landing pages across multiple countries, pairing correct hreflang implementation with schema markup gives search engines the clearest possible picture of each page's intended audience.
A single missing return tag is enough for Google to ignore your entire hreflang cluster and treat every regional page as a duplicate.
How to Implement Hreflang Tags Step by Step
Map Your Language and Region Variants
List every version of each page you want to target, identifying the language and country for each. Use ISO 639-1 codes for language (e.g. `en`, `fr`, `de`) and ISO 3166-1 alpha-2 codes for region (e.g. `US`, `GB`, `FR`). Decide whether you need language-only tags (e.g. `fr` for all French speakers) or language-plus-region tags (e.g. `fr-FR` for France specifically). This mapping becomes the source of truth for every tag you write.
Choose Your Implementation Method
Decide whether to place hreflang tags in the HTML `
` of each page, in an XML sitemap, or in HTTP headers. HTML head placement is easiest to audit and suits most sites. XML sitemaps work well for large sites where editing page-level HTML is impractical. HTTP headers are reserved for non-HTML files. Pick one method and use it consistently across the site; mixing methods can create conflicts.Write Reciprocal Tags with Absolute URLs
For each page, write a `` tag for every alternate version, including the page itself. Every URL must be fully qualified with `https://`; relative URLs cause crawling errors. The self-referencing tag is not optional. If a page targets five regional variants, it carries five hreflang tags.
Add an x-default Fallback Tag
Include a tag with `hreflang="x-default"` pointing to the page you want shown when no regional or language match exists, usually a language-selector page or your primary version. This prevents search engines from guessing and sending unmatched visitors to an irrelevant regional page. Every hreflang cluster should have exactly one x-default entry.
Validate and Audit the Implementation
Use Google Search Console's International Targeting report to identify hreflang errors after deployment. Common issues flagged include missing return tags, invalid language codes, and unreachable URLs. Re-audit whenever you add new regional pages, because a single missing return tag breaks the entire cluster for that page set, not just the page where the tag is absent.
Benefits
Prevents International Duplicate Content
Hreflang tags tell search engines that similar pages in different languages or regions are intentional variants, not duplicates, protecting each version from being suppressed in search results.
Directs Users to the Right Version
When implemented correctly, hreflang influences which page version a user sees based on their language and location, improving relevance and reducing bounce rates from mismatched regional content.
Gives You Control Over Fallback Behavior
The x-default tag ensures that visitors whose locale does not match any targeted region are sent to a designated fallback page rather than a random regional variant chosen by the search engine.
Supports Independent Ranking Per Market
Each correctly tagged regional page can rank independently in its target market. A UK page and a US page covering the same service compete in their own markets rather than cannibalizing each other.
Hreflang in Practice: Real Scenarios
E-Commerce Site Expanding to UK and Australia
A US-based online retailer adds UK and Australian storefronts with localized pricing, spelling, and product names. Without hreflang, Google may index all three versions as duplicate content and suppress two of them. With correct hreflang tags (`en-US`, `en-GB`, `en-AU`) and reciprocal linking between all three, each regional version ranks independently in its target market. The x-default tag points to the US version for visitors from other English-speaking countries not explicitly targeted.
SaaS Platform Serving French and German Markets
A software company translates its marketing pages into French and German. Each translated page shares the same topic as the English original, which risks a duplicate content flag. Adding hreflang tags with `en`, `fr`, and `de` codes, each referencing all three versions, tells Google these are the same content for different language audiences. Visitors in France see the French page in search results; German speakers see the German page. For teams also building AI-visible content, pairing this with GEO optimization ensures the right language version also surfaces in AI-generated answers.
Multi-Location Business with Country-Specific Landing Pages
A service business operating in Canada, the UK, and Australia creates separate landing pages for each market. The pages cover the same service but reference local regulations, pricing norms, and contact details. Hreflang tags signal to search engines that these are regionally distinct pages, not duplicates. This is especially important for businesses using local SEO landing pages at scale, where page similarity across markets is high and the risk of duplicate content flags is real.
What Are Hreflang Tags: Common Questions
What are hreflang tags and how do they work for international SEO?
Hreflang tags are HTML attributes that tell search engines which language and regional version of a page to serve to a given user. They work by grouping alternate versions of a page into a cluster, so Google understands that `/en/page/` and `/fr/page/` are the same content for different audiences rather than duplicate pages competing against each other.
Do hreflang tags guarantee Google will show the correct regional version?
No. Hreflang tags are not a directive that Google must follow. Google may consider other SEO factors when deciding which version is most relevant to a user, but correct implementation meaningfully influences the outcome and is the strongest signal available for international targeting.
What happens if I miss a return tag in my hreflang implementation?
Missing a return tag is one of the most common hreflang errors. When a page in a cluster does not reference back to all other versions, Google ignores the entire cluster for that page set and treats the pages as independent duplicates, which can result in duplicate content penalties and incorrect regional targeting.
When should I use a language-only code versus a language-region code?
Use a language-only code (e.g. `fr`) when you want to target all speakers of that language regardless of country. Use a language-region code (e.g. `fr-FR` or `fr-CA`) when the page is specifically adapted for a particular country, such as different pricing, regulations, or spelling conventions. Mixing both is valid if you have a general French page and a France-specific one.
Can I implement hreflang in a sitemap instead of the HTML head?
Yes. XML sitemap implementation is a valid alternative to HTML head tags and is particularly useful for large sites where editing every page's HTML is impractical. The reciprocal tagging and self-reference rules apply equally; every URL in the sitemap cluster must reference all other versions and itself.
Build International SEO Pages That Search Engines Understand
If you are building landing pages across multiple countries or languages, getting hreflang right is only one part of the puzzle. Explore how automated page generation can handle the structural SEO requirements of international and multi-location campaigns at scale, without manual tag management for every new page.