Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information

Accept all cookies

Hreflang

Hreflang tags tell Google which pages are for which countries and languages. Learn when to use them and how to avoid common mistakes.

Man with dark hair and beard wearing a light brown shirt speaks in front of a microphone on a podcast or recording setup.Portrait of a man with short dark hair wearing a white shirt and dark jacket, looking directly at the camera with a neutral expression.Man with short dark hair, beard, and clear glasses wearing a black t-shirt with a white circular logo, standing in front of a stone wall.Celio fabianoSmiling young woman with long brown hair wearing a red top and necklace, outdoors in a tree-filled background.photo de profil du client Xavier Breull
+ 9'000 subscribers
Illustration of a globe with flags representing different countries, showing hreflang relationship mapping between language versions.
Upload UI element
Thibault Besson-Magdelain fondateur de Sorank

About Author

Thibault Besson-Magdelain

Founder of Sorank, 5+ years of experience in SEO, GEO enthusiast.
Share on

Summary: Hreflang tags tell Google which pages are versions of the same content in different languages or regions. They prevent duplicate content issues in international SEO.

Hreflang tags solve a specific problem: when your content lives in multiple languages or regions, which version should Google rank for each user? Without hreflang, Google may serve an English user the German version, or a Canadian the American version.

Hreflang is not a ranking factor. It does not boost SEO; it clarifies which version is for which audience. Google's International SEO guide recommends hreflang for any site with multi-language or multi-region content.

When to use hreflang

Use hreflang when you have the same content in multiple languages or country-specific versions. Examples: English homepage for US, UK, and Australia; French content for France and Canada; Spanish for Spain and Mexico.

Hreflang syntax and implementation

Add hreflang links in the HTML head of each version with hreflang="language-country" format using ISO codes. Place hreflang tags on every version of the page, including self-references. Each page links to all its alternatives plus itself.

URL structure patterns for hreflang

Three common patterns: subdomain (en.example.com), subfolder (example.com/en/), or parameter (example.com?lang=en). Subfolder approach is most common. Choose one pattern and stick with it.

Hreflang in XML sitemaps

For large sites with dozens of language versions, hreflang in the HTML head becomes unwieldy. Use XML sitemaps instead. Most modern CMS platforms support hreflang in sitemaps natively.

Testing hreflang with Google Search Console

Submit all versions to Google Search Console. Look for hreflang errors in the report. Common issues: broken links, missing self-references, incorrect language codes, and circular references. Use the XML sitemap approach for large sites.

Conclusion

Hreflang tags are essential for any international site. They prevent duplicate content confusion and ensure users and Google see the right language version. Implement hreflang consistently across all language and regional versions. Our GEO platform supports hreflang annotation across all locales and detects hreflang errors during audits.

Frequently questions asked

Do I need hreflang if I have one version per language?

Yes. If you have English US, English UK, and French versions, hreflang tells Google which is which. Without it, Google may serve the wrong version to users.

What happens if I get hreflang wrong?

Google may ignore your hreflang annotations and serve the wrong version to users. Test in Search Console to verify Google understands your setup.

Can I use hreflang for US vs UK English?

Yes. Use hreflang with language-country codes: en-US, en-GB, en-AU. This differentiates English dialects and local variations.

Our Blog for Ambitious Company