SEO

Hreflang: How to Tell Google About Language and Regional Versions

By · · 3 min read

Short answerUse hreflang when you have multiple language or regional versions of the same page. Google's documentation says each version must list itself and every other version, the links must be reciprocal, and URLs must be fully qualified. You can add it in HTML link tags, HTTP headers or an XML sitemap; Google treats them equally, so pick one.

Key takeaways

  • Hreflang is for pages that exist in several languages or regional variants; a single-language, single-region site does not need it.
  • Google accepts HTML link tags, HTTP Link headers or XML sitemap entries and treats all three equally.
  • Annotations must be reciprocal: if page A points to page B, B must point back to A or Google ignores them.
  • Google does not use hreflang or the HTML lang attribute to detect a page's language; it uses its own algorithms.
  • Use x-default for a fallback page such as a country or language selector.

What is hreflang and when should you use it?

Hreflang is an annotation that tells Google which pages are language or regional variations of the same content. Google's documentation says to use it when you have more than one version of a page, and it describes three situations: only the template (navigation, footer) is translated, the content differs slightly by region within one language, or the whole site is fully translated. Google may find alternate versions on its own, but the documentation says explicit annotations are usually better.

If your business serves one language in one region, you do not need it.

What are the three ways to add it?

Google treats the three methods equally. Using more than one adds maintenance work without any stated benefit, so choose the one your site can maintain most easily.

What rules must the annotations follow?

Which language and region codes are valid?

The first part is an ISO 639-1 language code. An optional second part is an ISO 3166-1 Alpha-2 region code. Codes are case-insensitive, although uppercase region codes are the convention. A country code on its own is invalid, because Google will not infer a language from it. Script codes, such as those for Traditional and Simplified Chinese, are supported, and region codes can be added to them.

Does hreflang tell Google what language a page is in?

No. Google's documentation says it does not rely on hreflang or the HTML lang attribute to determine a page's language, and uses its own algorithms instead. Hreflang's job is to connect variants, not to label them.

Does hreflang prevent duplicate content problems?

Google says localized versions are considered duplicates only when the main content stays untranslated. A fully translated page is a different page for this purpose.

What are the common mistakes?

The documentation lists missing return links, invalid language or region codes, and reserved region codes. Google does not maintain or endorse third-party hreflang validators, so if you use one, treat its output as a lead to check, not as a verdict.

A practical checklist

  1. Confirm you really have multiple language or regional versions.
  2. Choose one method: link tags, headers or sitemap.
  3. List every version, including the page itself, on every version.
  4. Check that every pair links both ways.
  5. Add an x-default fallback if you have a selector page.
  6. Verify each code is a valid language, or language plus region, combination.

This article summarizes Google's published documentation as retrieved on the date above. Google can revise its guidance, and hreflang does not by itself guarantee which version appears in results.

Frequently asked questions

Do I need hreflang for a single-language website?

No. Google's documentation describes it for pages with multiple language or regional versions.

Which hreflang method does Google prefer?

None. Google treats HTML link tags, HTTP headers and XML sitemap entries equally.

Why does Google ignore my hreflang tags?

A common cause is a missing return link. Annotations must be reciprocal, so if page A points to page B, B must point back to A.

Does hreflang tell Google which language my page is written in?

No. Google says it uses its own algorithms to detect language, not hreflang or the HTML lang attribute.

Sources

  1. Tell Google about localized versions of your page — Google Search Central
KC
Kathy P. Carr

CEO of AIrecommend.ai and Skyview Business Consulting. Writes on answer engine optimization, franchising and building AI-first companies.

Connect on LinkedIn

Keep reading

Want to be the answer AI recommends?
See how AIrecommend.ai helps businesses get found and recommended by AI assistants.