Hreflang is the single most error-prone thing in SEO. I’ve audited sites with hundreds of hreflang tags, every one of them technically present and every one of them wrong, quietly sending French pages to US searchers across the whole site. It’s fiddly, it’s unforgiving, and it breaks silently — no error message, just the wrong page ranking in the wrong country. But the concept is simple once you strip away the syntax panic. Here’s how hreflang actually works and how to implement it without the classic mistakes.
Hreflang in one breath
- It tells Google which language and region version of a page to show which user.
- It stops your translated pages from competing with each other.
- Every tag needs a return tag pointing back, or the whole set is ignored.
- It’s a signal, not a redirect — it doesn’t send users anywhere, it guides which version ranks.
- Add x-default for everyone your specific versions don’t cover.
What hreflang does, plainly
Say you have the same page in English for the US, English for the UK, and French for France. Without hreflang, Google sees three similar pages and may show the US English version to a French searcher, or let your UK and US pages fight each other for the same British query. Hreflang tags are annotations that say “these three pages are the same content in different languages and regions — here’s which one to show whom.” A searcher in France gets the French page; a searcher in Britain gets the UK English page. That’s the entire job.
The critical mental model: hreflang is a signal, not a redirect. It does not physically send a user from one page to another. It tells Google which version to rank for which audience. People confuse it with geo-redirects constantly, and that confusion is where a lot of the damage starts.
The syntax, and the one rule that breaks everything
Each hreflang annotation names a page and the language-region it serves, using a language code and optionally a region code — “en” for English, “en-gb” for English in Great Britain, “fr” for French, “fr-ca” for French in Canada. Language first, region second; the region alone is never valid. “en-us” is fine; “us” on its own is not.
Then the rule that sinks most implementations: hreflang must be reciprocal. If your English page links to the French page with hreflang, the French page must link back to the English one. Every page in a set must reference every other page in the set, including itself. If the return tag is missing, Google treats the whole annotation as unreliable and ignores it — no warning, no partial credit. Most “my hreflang isn’t working” audits come down to missing return tags.
The hreflang implementation checklist
- List every versionMap all the language-region variants of each page before writing a single tag.
- Use valid codesLanguage first, region optional and second: en, en-gb, fr, fr-ca. Never region alone.
- Make them reciprocalEvery page references every other version and itself — including the return tags.
- Add x-defaultPoint a fallback at the version for users your specific locales don’t cover.
Where to put the tags
You have three options, and you pick one — never mix them. Tags in the HTML head of each page are the most common and the easiest to inspect. An XML sitemap can carry hreflang instead, which is cleaner for large sites because you manage everything in one file rather than editing thousands of page heads. HTTP headers are the choice for non-HTML files like PDFs. For most sites I recommend the sitemap method once you get past a handful of pages — it scales, it’s auditable in one place, and it keeps your page templates clean.
The x-default tag
x-default is the fallback. It names the page to show anyone your specific language-region versions don’t cover. If you’ve specified English-US, English-UK and French-France, a searcher in Germany matches none of them — x-default tells Google which version to give them, usually your primary or an international English page. It’s not strictly required, but leaving it out means Google guesses for every unmatched user, and its guess is often wrong. I treat x-default as mandatory on any real international setup.
Hreflang: do and don’t
✓ Do
- Include a return tag on every version
- Use absolute URLs, not relative ones
- Point tags at the canonical version of each page
- Add x-default for unmatched users
✕ Don’t
- Use a region code with no language
- Let hreflang and canonical contradict each other
- Mix head, sitemap and header methods
- Confuse hreflang with a geo-redirect
The conflict that silently cancels your work
Hreflang and canonical tags have to agree. If your French page carries a canonical pointing at the English version — a common mistake when a template is copied without updating it — you’re telling Google two contradictory things: “this French page is the canonical for French” via hreflang, and “no, the English page is canonical” via the canonical tag. Google resolves the conflict by ignoring the hreflang, and your careful setup does nothing. Each language version must canonicalize to itself. I check this pairing on every international audit because it’s invisible until you look for it, and it’s part of the same technical SEO discipline that catches crawl and index problems before they cost you.
Translation is not localization
Hreflang gets the right version to the right person, but it can’t save a bad version. The most common international SEO failure isn’t technical at all — it’s assuming a literal translation of your English page will rank in another market. It won’t, because keywords, intent and competition differ by country. The French term for your product may not be the direct translation, and the questions French buyers ask may differ from the ones your English page answers. Real international SEO means researching each market’s actual search terms — the same keyword work you’d do at home, redone in-market — and adapting the content, not just swapping the words.
Hreflang is the plumbing; localization is the water. Get the plumbing right so the correct page reaches the correct audience, then make sure each page is genuinely built for the market it serves. Both together are what international SEO actually is. One without the other is wasted effort.
Same language, different countries — the case people miss
Hreflang isn’t only for different languages. One of its most useful jobs is separating the same language across countries: English for the US, the UK, Australia and Canada. The content is nearly identical, but the currency, spelling, shipping terms and sometimes the product lineup differ, and without hreflang these pages cannibalize each other mercilessly — Google can’t tell which English page to show a British searcher, so it often picks the wrong one. Region-qualified codes like en-us, en-gb and en-au resolve it cleanly, giving each market its own version while telling Google they’re deliberate regional variants, not duplicates. If you serve one language across several English-speaking markets, this is the exact problem hreflang was built to fix.
How to test it before you trust it
Because hreflang fails silently, never assume it works just because the tags are present. After implementing, validate: run the pages through a hreflang testing tool that checks for missing return tags and invalid codes, and watch the International Targeting report in Search Console for errors Google flags on your live pages. I check a fresh implementation, then recheck after any template change or migration, because that’s exactly when return tags and canonicals quietly break. A five-minute validation pass is far cheaper than discovering months later that your German pages have been serving US searchers the whole time.
Frequently asked questions
What are hreflang tags used for?
They tell search engines which language and regional version of a page to serve which users, so your translated or localized pages reach the right audience and don’t compete against each other for the same searches.
Is hreflang a ranking factor?
Not directly. It doesn’t make a page rank higher — it makes sure the correct version ranks for the correct audience and prevents your own versions from cannibalizing each other. Done wrong, it can quietly send the wrong page to the wrong country.
What is the x-default hreflang value?
x-default names the fallback page for users whose language and region don’t match any of your specific versions. Without it, Google guesses which version to show unmatched searchers, and that guess is often wrong, so it’s worth setting on any real international setup.
Why is my hreflang not working?
The most common causes are missing return tags — every page in a set must reference every other version and itself — and a canonical tag that contradicts the hreflang. Either one makes Google ignore the annotation entirely, with no error message to warn you.
Does hreflang redirect users to the right page?
No. Hreflang is a signal to search engines about which version to rank for which audience, not a redirect. It doesn’t physically send a user anywhere — confusing it with a geo-redirect is a common and costly mistake.
