Catalog/Invalid hreflang language code
SEO issue

Invalid hreflang language code: how to fix it

Invalid hreflang codes break international targeting. Find hreflang tags with errors in their language or region codes and learn the correct format.

9
audited sites affected

What it means

Google has parsed an hreflang tag on your page but cannot recognize the language code inside it. The code is either malformed (a region-only value like GB instead of en-GB), non-standard (like es-419 or EU or UK), or missing required hyphenation.

Why it matters

Invalid hreflang codes break the bidirectional return-tag relationship: if one version points to another with a bad code, the partner page won't point back, so Google may treat each version as a separate page rather than as language variants. This dilutes ranking signals across regions and can cause the wrong language version to appear in regional SERPs or AI Overviews.

How to fix it

  1. Replace every region-only code with a language prefix (e.g., GBen-GB, UKen-GB).
  2. Verify all hreflang values are standard ISO 639-1 language codes, optionally followed by a hyphen and ISO 3166-1 Alpha-2 region code (e.g., de, en-GB, zh-Hant).
  3. Confirm every version lists itself plus all others, and that all URLs are absolute and fully qualified.
  4. Validate the markup with a hreflang checker to catch missing return links and malformed HTML silently breaking the tags.

When it's not a problem

This is a false alarm if the code happens to be valid (e.g., de or en-GB) and the tag is correctly self-referential and bidirectional — the warning may be from an overly strict validator. It is also fine when the language variant is genuinely not targeted and you intentionally omit it.

How common is it?

9 audited sites in our corpus currently show this issue. The breakdowns below show which platforms, gatekeepers, verticals and countries are most exposed.

Related guides

Breakdowns

CMS

View breakdown →

Category

View breakdown →

Related
Catalog Category CMS Self hreflang language disagrees with html lang hreflang set has no self-reference hreflang has no return link (not reciprocal)

Audit your own site — free

157 checks, internal PageRank, render-diff. No signup, results in ~30s.

Scan your site →