What is Hreflang?
Hreflang is an HTML attribute that tells search engines which language and regional version of a page to show to users in different locations. It prevents duplicate content issues across multilingual sites.
On This Page
What is Hreflang?
Hreflang is an HTML attribute (rel=“alternate” hreflang=“x”) that signals to Google and other search engines which language and country a specific page version targets.
If your site has pages in multiple languages or region-specific versions (English for US vs. English for UK), hreflang prevents Google from treating them as duplicate content. Without it, Google picks one version to show globally — and it might not be the right one for each audience.
An Ahrefs study found that only 19% of multilingual sites implement hreflang correctly. The remaining 81% have errors ranging from missing return tags to broken URLs. It’s one of the most commonly misconfigured technical SEO elements.
Why Does Hreflang Matter?
Getting hreflang right directly impacts whether the correct audience sees the correct page.
- Correct language serving — Users in France see the French version, users in Germany see the German version, without manual redirecting
- Prevents duplicate content filtering — Google understands that your /en/ and /de/ pages aren’t duplicates but intentional translations
- Better user experience — Visitors landing on a page in their native language are more likely to convert and less likely to bounce
- Regional pricing and content — Ecommerce sites serving different prices or products by region need hreflang to ensure the right version appears in each market
Any business operating in multiple countries or languages needs hreflang. Period.
How Hreflang Works
Implementation Methods
You can implement hreflang three ways: HTML link tags in the <head>, HTTP headers (for PDFs and non-HTML files), or in your XML sitemap. Google recommends choosing one method and sticking with it. The sitemap approach works best for large sites with hundreds of language variants.
The Return Tag Rule
Every hreflang annotation must be bidirectional. If page A says “my French equivalent is page B,” then page B must also say “my English equivalent is page A.” Missing return tags are the #1 implementation error. Google ignores hreflang annotations without proper return tags.
The x-default Tag
The x-default hreflang value tells Google which page to show when no specific language/region match exists. It’s your fallback — typically your English or main-market version. Without x-default, Google guesses, and it doesn’t always guess right.
Hreflang Examples
Example 1: An ecommerce store with US and UK versions
An online retailer has example.com/us/shoes (prices in USD) and example.com/uk/shoes (prices in GBP). Without hreflang, Google might show UK users the US page. With proper hreflang tags, each audience sees the correct pricing and currency. The canonical URL stays independent for each version.
Example 2: A SaaS company with translated pages A project management tool has their homepage in 8 languages. They implement hreflang via XML sitemap, with each language version pointing to every other. German searchers see the /de/ page, Spanish searchers see /es/, and everyone else hits the x-default English version.
Common Mistakes to Avoid
SEO mistakes compound just like SEO wins do — except in the wrong direction.
Targeting keywords without checking intent. Ranking for a keyword means nothing if the search intent doesn’t match your page. A commercial keyword needs a product page, not a blog post. An informational query needs a guide, not a sales pitch. Mismatched intent = high bounce rate = wasted rankings.
Neglecting technical SEO. Publishing great content on a site that takes 6 seconds to load on mobile. Fixing your Core Web Vitals and crawl errors is less exciting than writing articles, but it’s the foundation everything else sits on.
Building links before building content worth linking to. Outreach for backlinks works 10x better when you have genuinely valuable content to point people toward. Create the asset first, then promote it.
Key Metrics to Track
| Metric | What It Measures | Where to Find It |
|---|---|---|
| Organic traffic | Visitors from unpaid search | Google Analytics |
| Keyword rankings | Position for target terms | Ahrefs, Semrush, or GSC |
| Click-through rate | % who click your result | Google Search Console |
| Domain Authority / Domain Rating | Overall site authority | Moz (DA) or Ahrefs (DR) |
| Core Web Vitals | Page experience scores | PageSpeed Insights or GSC |
| Referring domains | Unique sites linking to you | Ahrefs or Semrush |
Implementation Checklist
| Task | Priority | Difficulty | Impact |
|---|---|---|---|
| Audit current setup | High | Easy | Foundation |
| Fix technical issues | High | Medium | Immediate |
| Optimize existing content | High | Medium | 2-4 weeks |
| Build new content | Medium | Medium | 2-6 months |
| Earn backlinks | Medium | Hard | 3-12 months |
| Monitor and refine | Ongoing | Easy | Compounding |
Frequently Asked Questions
Does hreflang affect rankings?
Hreflang doesn’t boost rankings directly. It tells Google which version to show in which market. But showing the right language to the right audience improves engagement signals (lower bounce rate, higher dwell time) that can indirectly influence rankings over time.
Can I use hreflang for the same language in different countries?
Yes. That’s exactly what hreflang handles well. English for the US (en-us), English for the UK (en-gb), and English for Australia (en-au) can all have separate hreflang annotations. Google uses the country code, not just the language, to determine which version to serve.
What happens if hreflang is implemented incorrectly?
Google ignores the annotations entirely and falls back to its own judgment about which version to show. No penalty — just lost control over which page appears in each market. Use Google Search Console’s International Targeting report to identify hreflang errors.
Want your site’s content optimized for search from day one? theStacc publishes 30 SEO-optimized articles to your site every month — automatically. Start for $1 →
Sources
- Google Search Central: Hreflang Implementation
- Ahrefs: Hreflang Tags Guide
- Moz: The Ultimate Guide to Hreflang
Related Terms
A canonical URL tells search engines which version of a page is the master copy. Learn how canonicalization prevents duplicate content issues and how to implement it.
Duplicate ContentDuplicate content is identical or substantially similar content appearing at multiple URLs. It confuses search engines and dilutes ranking signals across competing pages.
GeotargetingGeotargeting delivers different content, ads, or search results based on a user's geographic location. In SEO, it means optimizing content to rank for location-specific searches.
HreflangHreflang is an HTML attribute that tells search engines which language and regional version of a page to show to users in different locations. It prevents duplicate content issues across multilingual sites.
Meta Robots TagThe meta robots tag is an HTML element that instructs search engines how to crawl, index, and display a specific page. Directives include noindex, nofollow, nosnippet, and more.