NEWOur agents now make the SEO fixes on your site and check what worked →

Hreflang Checklist: Setup and Common Errors

/

Hreflang tells Google which language or regional version of a page to show each searcher. Every version must list itself and every other version, each pair must link back to each other or Google may ignore the tags, codes must be an ISO 639-1 language plus an optional ISO 3166-1 region (en-GB, not en-UK), and an x-default should catch everyone else.

Free spreadsheet

Get the Technical SEO Checklist

We email you the technical SEO checklist now, then 3 short emails on using it. Unsubscribe in one click. We never sell your data. Privacy

Hreflang is section 7 of our free technical SEO checklist. Need the tags written for you? Use the free hreflang generator.

Do You Need Hreflang?

Your siteHreflang?
One language, one countryNo
Same language, different countries with real differences (prices, spelling, delivery)Yes, for example en-US, en-GB, en-AU
Different languagesYes
Machine-translated copies with no real local valueFix the content first. Tags do not make thin pages useful
Only the navigation is translated, the main content is notNo. Google treats the page by its main content language

Google does not use hreflang or the HTML lang attribute to work out a page's language. It detects language from the content (Google, localized versions, updated September 21, 2026). Hreflang only tells Google which variants belong together.

Three Ways to Add Hreflang

Google treats all three the same. Pick one and use only that one.

MethodWhereBest forWatch out for
HTML <link> tagsIn the <head> of every versionMost CMS sites with a few languagesPage weight with many versions; tags must be in the head
HTTP Link headerServer responsePDFs and other non-HTML filesHard to audit without curl
XML sitemap<xhtml:link> entries per URLLarge sites, many versionsEvery URL must list every alternate, including itself

An HTML example for a page in US English, UK English and German:

Code
<link rel="alternate" hreflang="en-us" href="https://northwind-outdoors.com/us/tents/" />
<link rel="alternate" hreflang="en-gb" href="https://northwind-outdoors.com/uk/tents/" />
<link rel="alternate" hreflang="de" href="https://northwind-outdoors.com/de/zelte/" />
<link rel="alternate" hreflang="x-default" href="https://northwind-outdoors.com/tents/" />

The exact same four lines go on all four pages. That covers self-references and return links in one go.

Valid and Invalid Codes

CodeValid?Why
enYesLanguage only
en-GBYesLanguage plus region. Case does not matter
de-CHYesGerman for Switzerland
zh-Hant or zh-Hans-USYesScript variants are allowed
en-UKNoThe ISO region code for the United Kingdom is GB
en-EUNoEU is not a country code
GB or usNoRegion alone is not allowed: the language must come first
x-defaultYesReserved value for the fallback page

Google lists missing return links, region-only codes and invalid region codes like EU, UN and UK as the common mistakes.

The Rules, as a Checklist

  1. Self-reference: each page lists itself.
  2. Complete set: each page lists every other version of the same content.
  3. Return links: if page A points to page B, page B must point back to A. If not, Google may ignore the pair.
  4. Absolute URLs: full https:// addresses, not relative paths.
  5. Indexable targets: every URL in the set returns 200, is not noindex and is its own canonical.
  6. Canonical stays in its language: the German page's canonical points to the German page, never to the English one. Pointing all versions at one canonical tells Google they are duplicates and only one gets indexed.
  7. x-default: add one for your language picker or global page.
  8. One method: do not mix head tags and sitemap entries that disagree.

For same-language regional pages that are near duplicates (en-US and en-GB with the same text), Google recommends using rel="canonical" plus hreflang so the right regional URL is shown (Google, multi-regional sites, updated December 10, 2025).

The 8 Most Common Hreflang Errors and How to Fix Them

Error (as crawlers report it)What it meansFix
No return tagsB does not point back to AOutput the same full set on every version
Missing self-referenceA page leaves itself outAdd its own line
Invalid language or region codeen-UK, en-EU, uk for Ukrainian mixed up with UKUse ISO 639-1 and ISO 3166-1 Alpha 2 (Ukrainian is uk, the UK is GB)
Hreflang to a redirectThe URL in the tag 301sUse the final URL
Hreflang to a noindex or 404 pageTarget is not indexableFix the page or remove it from the set
Hreflang and canonical conflictCanonical points to another languageSelf-canonical per version
Relative URLs/de/zelte/ instead of the full URLAbsolute URLs
Tags outside the headA script or an unclosed tag pushes them into the bodyPut them early in the head and validate the HTML

Do Not Auto-Redirect by IP or Browser Language

Google says to avoid automatically redirecting users from one language version to another, and not to use IP analysis to adapt content. Most Google crawls come from the US, so an IP redirect can hide your other versions from Googlebot. Show a banner that suggests the local version instead, and let people choose.

How to Test

  1. Crawl the site with a crawler that has an hreflang report (Screaming Frog, Sitebulb). Filter for missing return links, invalid codes and non-200 targets.
  2. Spot check with curl -s URL | grep hreflang on one page per template.
  3. In Search Console, use URL Inspection on a few versions and check the Google-selected canonical stays in the right language.
  4. Watch Performance > Countries for the version Google shows in each market.

How to Use This with an AI Assistant

Connect SEOmatic at https://seomatic.ai/mcp and ask: "Sign me in with connect_seomatic, then use gsc_indexing (action: batch_inspect) on my English, UK and German versions of /tents/ and tell me if Google picked a canonical in the wrong language." SEOmatic does not crawl a whole hreflang set, so pair it with a crawler's hreflang report.

Let the Agents Fix the Technical Issues

SEOmatic's AI agents read your own Search Console data and fix technical issues directly in your CMS:

  • Redirects and broken links
  • Canonicals, noindex tags and robots.txt rules
  • Schema and sitemap submission

Each change can wait for your approval, one click undoes it, and the agents check it against how the rest of your site did. What they can change depends on your platform, and you see the full list before anything runs.

14-Day Trial for $1, credited to your first payment.

Frequently Asked Questions

digi-business-uk

Each local area page used to take us half a day to create and optimize.


With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.


It's transformed how we deliver scalable SEO solutions.

will-hawkins

Will Hawkins

Marketing Director, Digi-Business UK

Give Your Site an SEO Team

Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.

  • You decide what ships
  • Verified live
  • One-click rollback

14-Day Trial for $1, credited to your first payment.