Use language and region codes in hreflang tags

  • Start with a supported language code such as en. Add a region when needed, such as en-US or en-GB. A country code by itself doesn't identify the language.

  • Use complete URLs and include the page itself among its alternatives. Google's localized-page guide describes the supported codes and annotations.

Keep return links between hreflang versions

When one language version names another, that page needs to link back. If the two pages don't both point to each other, Google ignores the tags.

Use hreflang x-default for an unmatched language

x-default names a fallback for readers whose language or region doesn't match the other versions. A language-selection page can be a suitable destination.

Frequently asked questions

Do hreflang tags replace a canonical tag?

No. Choose a canonical that fits the page's language. Google's canonical guidance recommends a canonical in the same language where possible.

  • SEO

    Find what's keeping your pages out of search results.

  • Canonical tags

    Resolve conflicting preferred URLs and understand Google's canonical-page statuses.