What is hreflang and when should you use it?
Hreflang is an HTML attribute that tells search engines the language and regional targeting of a webpage. When your site has the same content in more than one language, hreflang helps Google show the right version to the right user. Without it, translated pages risk appearing in the wrong search results or being treated as duplicates, which costs you visibility in every market you serve.
The attribute lives inside the <head> section of a page, typically in a link tag. A Spanish page would specify its own language and point to the English and French alternatives so Google understands they are related translations, not copies. The relationship is bidirectional each version lists every other version.
When you need hreflang
If your business website serves visitors in more than one language, or if you have UK-specific and international versions of the same page, you probably need hreflang. The five most common scenarios are:
- A single domain with multiple language subdirectories (example.com/en/, /fr/, /de/)
- Separate country domains (.co.uk, .de, .fr) with translated or adapted content
- Language subdomains (en.example.com, fr.example.com)
- Same-language regional variants with different spelling, pricing or products
- A site offering content in multiple languages without changing the URL structure
Missing hreflang in any of these setups creates what Google calls language targeting errors. The wrong language version may rank in the wrong market, or Google may treat all translations as variations of one page and suppress them all. This is a common problem for ecommerce sites and SaaS platforms that expand internationally without updating their SEO setup.
How to implement hreflang
Each language version uses a self-referencing link tag in its page head that also points to every other translation. The three pages in our example would each carry link tags listing en, fr and de alongside a link to themselves. Google also supports an x-default value for a catch-all page that does not target a specific language or region.
A typical implementation for a site with UK and US variants might look like this in the page head:
<link rel="alternate" hreflang="en" href="https://example.co.uk/page/" /> <link rel="alternate" hreflang="en-us" href="https://example.com/page/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/page/" />
The x-default tag tells Google which page to show when no language or region matches the searcher. It acts as a sensible fallback.
Common mistakes
The most frequent error is implementing hreflang in one direction only. If the English page links to the French page but the French page does not link back, Google may treat the relationship as incomplete and ignore both sets of tags. Every language version must carry the full set of references.
Another mistake is using hreflang on pages that are not genuine translations. Hreflang is designed for equivalent content. If your English and French pages cover the same topic but with completely different structure and detail, Google may decide they are not translations and override your hreflang annotations.
Hreflang and technical SEO audits
Hreflang is best set up during the site build or at the point you launch a new language version. Retrofitting it across hundreds of existing pages is possible but tedious. A technical SEO audit can check whether your current hreflang implementation is complete and correct. Our SEO packages at https://victory.digital/seo-packages include technical audits that cover hreflang, canonical tags and other international signals. Start with a free SEO report at https://victory.digital/run-a-seo-report to see how search engines currently understand your site structure.
What are your Feelings?
Share your reaction
Click a reaction to share how useful this article was.
