- What it isAnnotations linking language and region versions of a page
- Who it matters toSites with content in several languages or countries
- How it is measuredCrawler validation and the right URL showing per market
- Common mistakeMissing return links between the versions
- Related workInternational SEO and site structure planning
What is hreflang?
If you publish similar content for different languages or countries, search engines need help matching each searcher to the right page. Hreflang does that by declaring the set of alternate versions and the language, and optionally the region, each one targets.
A value combines a language code and an optional region code, such as en-PH for English in the Philippines or en-US for English in the United States. It affects which version appears, not how high a page ranks.
How do you add hreflang?
There are three accepted places to put the annotations. Choose one method and keep it consistent.
| Method | Where it goes | Best for |
|---|---|---|
| HTML link elements | In the head of each page | Smaller sites and simple templates |
| HTTP headers | In the server response | Non-HTML files such as PDFs |
| XML sitemap | Inside the sitemap entries | Large sites with many versions |
What rules must hreflang follow?
Hreflang fails quietly when the details are wrong, so a few rules matter.
- Make the links reciprocalIf page A lists page B, page B must list page A back.
- Include a self referenceEach page lists itself as part of the set.
- Use valid codesLanguage codes first, then an optional region code.
- Add an x-defaultThis marks the fallback page for users who match no listed version.
- Keep canonicals consistentEach version should canonicalize to itself, not to another language.
What are common hreflang mistakes?
The most frequent problems are missing return links, wrong codes and pointing to redirected or noindexed pages. Another is adding hreflang to pages that are not true equivalents. The annotation is for translations or regional variants of the same content, not for loosely related pages.
Check a crawl report for non-reciprocal and invalid entries, then spot check that searchers in each market see the intended version. Search engines make the final choice.
Need help with Hreflang on your site?
Tell us what is not working. We will check where this affects your search results and what to fix first.
Book a meetingInternational SEOQuestions people ask
Do I need hreflang for a single country site?
Usually not. If you publish one language for one audience, there are no alternate versions to declare. Hreflang becomes useful when you have equivalent pages in different languages or for different regions.
Does hreflang improve rankings?
It does not directly raise rankings. Its job is to help the correct language or regional version appear for the right user, which can reduce the wrong page showing and improve how relevant the result feels.
Can I use hreflang for same language, different country pages?
Yes. For example, English pages for the Philippines and the United States can be annotated separately, if the content really differs by market. If pages are near identical, consider whether you need separate versions at all.