Local and international SEO

Hreflang

Hreflang is an HTML attribute that tells search engines which language and region each version of a page targets, so they show the right version to each user.

If you have the same page in English for the UK, English for the US and Spanish for Mexico, hreflang annotations connect them and tell search engines which to show where.

In more detail

Hreflang can be added in the HTML head, in HTTP headers or in the XML sitemap. Each version must list every other version, including itself, and the references must be reciprocal. Codes use ISO language codes, optionally with a region, such as en-gb or es-mx. An x-default value covers users who match none of the versions. Errors are very common, such as missing return links or pointing at redirected URLs.

Why it matters

Correct hreflang prevents the wrong regional version from ranking, reduces duplicate content issues between similar language versions and improves the experience for international visitors.

Example

An online retailer's US pages keep ranking in Australia, showing US prices. Adding hreflang for en-us, en-au and en-gb versions fixes it, and Australian conversion rates rise.

FAQ

Hreflang: quick answers

Does hreflang work in all search engines?

Google and Yandex support it. Bing relies more on the content-language meta tag and other signals.

Is hreflang needed for one language in one country?

No. It is only needed when you have multiple language or regional versions of pages.

Free audit

Find out where you stand in search and AI answers.

Get a free audit of your SEO, AI visibility and email setup. We send a short, specific report with the three changes that would move the needle most.