hreflang codes Google cannot read
Some hreflang values are not valid language or country codes, such as en-UK or eng, so Google ignores those lines.
Why it matters #
Google reads hreflang as a language code (ISO 639-1), optionally followed by a country code (ISO 3166-1 alpha-2), such as en, en-GB or fr-CA. A value it cannot read, such as en-UK, english or eng, is ignored, so that version is not offered to the right people.
A very common mistake is en-UK: the country code for the United Kingdom is GB, so British English is en-GB.
How to fix it #
Correct each code: the language first, then the country, joined by a hyphen, for example en-GB, en-IE or de-AT. Use x-default for the fallback page. The same codes must be used on every version.
Multilingual plugins usually take the codes from their language settings, so fix them there rather than in the page. Check the tags with the Hreflang Checker.
What it looks like, and fixed #
<link rel="alternate" hreflang="en-UK" href="https://www.example.com/">
<link rel="alternate" hreflang="english" href="https://www.example.com/intl/">
UK is not a country code (the United Kingdom is GB), and "english" is not a language code, so Google ignores both lines.
<link rel="alternate" hreflang="en-GB" href="https://www.example.com/">
<link rel="alternate" hreflang="en" href="https://www.example.com/intl/">
Language (ISO 639-1), then optionally a hyphen and a country (ISO 3166-1 alpha-2).
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
Help me correct the hreflang tags on [your website address], built with [your platform, e.g. WordPress with WPML]. A checker says some hreflang values on [the page address] are not codes Google can read, such as en-UK, eng or english. First, read the page source and any hreflang entries in the sitemap (or ask me to paste them) and list every hreflang value. Explain plainly which codes are wrong and why: the language is ISO 639-1, the optional country ISO 3166-1 alpha-2 (the United Kingdom is GB), and x-default is the only other value. Then give me the corrected code for each line, and tell me where the codes are set: plugin language settings, theme templates or the sitemap. Rules: back up first, change only the codes, keep every address the same, keep the same code for each page on every version, and remove no versions. Give exact steps or code and where it goes. Finally, tell me to re-check with the URSY.com Hreflang Checker at ursy.com/hreflang-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress #
Multilingual plugins such as WPML and Polylang take the codes from their language settings. Correct the locale or code there, not in the page.
Shopify #
Shopify writes hreflang from your languages and markets. Wrong codes usually come from a theme or app adding its own tags, so remove those.
A hand-made site #
Correct the codes in your templates or sitemap, and use the same code for each page on every version.
Check it is fixed #
Run the Hreflang Checker again: every line should have a code Google can read, such as en-GB, fr-CA or x-default.
Official source #
Google Search Central: Tell Google about localized versions of your page
Questions #
Is en-UK really wrong? #
Yes. The country code for the United Kingdom is GB, so British English is en-GB. Google ignores en-UK.
Can I use only a country, such as hreflang="GB"? #
No. Google needs the language. A country can only follow a language, as in en-GB.
More problems in Languages and countries
- hreflang points to pages that do not work High priority
- Language versions do not link back High priority
- hreflang addresses are not written correctly Medium priority
- The hreflang tags leave out the page itself Medium priority
- The page language is not set Medium priority
- No x-default hreflang Low priority