In short
Hreflang is an annotation that tells search engines which language, and optionally which region, a page is meant for, and which other versions of the page exist. It helps show the right version to each searcher.
What is hreflang?
If your site has the same or similar content in several languages or for several countries, search engines need to know which version to show to whom. Hreflang annotations connect those versions as a group of equivalents.
For example, a page in English for the United States, one in English for the United Kingdom and one in Spanish for Mexico can all reference each other. Google then tries to show the version that matches the searcher's language and location.
Hreflang syntax
A hreflang value combines a language code in ISO 639-1 format, optionally followed by a region code in ISO 3166-1 Alpha 2 format:
- en: English, any region
- en-gb: English for the United Kingdom
- es-mx: Spanish for Mexico
- x-default: the fallback for users who match no listed language or region
A page may include several annotations, one for each version, including a reference to itself.

How to implement hreflang
There are three equivalent methods. Choose one and keep it consistent:
- HTML link elements in the head of each page
- HTTP headers for non-HTML files such as PDFs
- XML sitemap entries that list every alternate for each URL
For sites with many versions, the sitemap method keeps pages lighter and is easier to maintain.
Hreflang rules to remember
- Annotations must be reciprocal. If page A points to B, B must point back to A.
- Every page should include a self-referencing entry.
- Use absolute URLs and link to canonical, indexable versions.
- Use valid language and region codes. Region alone, such as gb, is not valid, and the language comes first.
- Add an x-default for language selectors or global fallbacks.
Search engines treat hreflang as a hint, not a directive.

Common hreflang errors
- Missing return links between versions
- Pointing hreflang to redirected, noindex or error URLs
- Invalid codes such as en-uk instead of en-gb
- Conflicts between hreflang and canonical tags, for example canonicalising every version to one page
- Annotating only some versions of a set
Crawling tools and Search Console reports help catch these, and they should be re-checked after migrations.
When do you need hreflang?
You need it when you publish equivalent content for different languages or regions. You do not need it just because you serve visitors from many countries with one English page. Translating only a few pages is fine, as long as the annotations cover the pages that do have equivalents.
Good international SEO also involves clear URL structure, such as subfolders or country-code domains, localised content and sensible currency and contact details.
Hreflang and URL structure
Hreflang works with any sensible URL structure, but the structure affects how easy the site is to manage. Common options are country-code domains such as example.de, subdomains such as de.example.com and subfolders such as example.com/de/.
Subfolders are often the easiest to maintain, because they share the main domain's authority and need a single set of technical settings. Country-code domains give the clearest geographic signal but cost more to build and run.
Testing and monitoring hreflang
Hreflang problems are easy to introduce and easy to miss. Crawl your site and export every alternate set, then check that each URL returns a 200 status, is indexable, references itself and is referenced back by every alternate.
- Re-check after migrations, redesigns and URL changes
- Compare language targeting with the content on the page, since mismatched content confuses searchers
- Make sure translations are real, not auto-generated placeholders
Key takeaways
- Hreflang links equivalent pages in different languages or regions
- Use language codes, optionally with region codes
- Annotations must be reciprocal and self-referencing
- Add x-default as a fallback where useful
- Keep hreflang and canonical tags consistent
How Creolume can help with Hreflang
We audit crawling, indexing, rendering and speed, then give your team a prioritised list of fixes. If Hreflang is on your list of priorities, our team can review where you stand, explain what matters for your site and your market, and agree a realistic plan.
You can explore our Technical SEO & Audit service or contact us for a short, no-obligation conversation. We will tell you honestly what is worth doing first and what can wait.
Hreflang FAQs
What does hreflang do?
It tells search engines which language and region each version of a page targets, so searchers can be shown the right one.
Is hreflang a ranking factor?
No. It does not boost rankings. It helps match the right language version to the searcher and reduces duplicate-content confusion.
What is x-default in hreflang?
It marks the fallback page for users whose language or region does not match any listed version, often a language selector or a global page.
Do I need hreflang for English variants?
Only if you publish distinct versions, such as for the US and the UK. If the content is identical, one page may be enough.
Does Bing support hreflang?
Bing mainly uses the content-language meta tag and other signals instead. Hreflang is primarily used by Google and Yandex.
Can I use hreflang for pages with different content?
Hreflang is for equivalent pages. Using it between pages with different content can confuse search engines and users.
Do I need to translate every page for hreflang?
No. Annotate only the pages that have equivalents in other languages or regions.
Not sure where to start?
Tell us about your site and your goals. We will reply with an honest view of what to fix first.
