Skip to content

Hreflang checker and generator

hreflang tags tell Google which pages are the same content in other languages or for other countries, so it can show searchers the right one. Google reads them only when both pages point to each other, each code is a language from ISO 639-1 with an optional country from ISO 3166-1, and every address is complete, starting with https:// or http://.

Language versions

Add a code and an address for each version to see the tags.

Serpwright finds the searches your site shows up for but has no page for, then writes and publishes the articles you approve, then checks in Search Console whether Google has indexed each one.

Start free trial

3 days free, no card.

Language and region codes Google reads

From Google's documentation, checked December 3, 2026.

hreflang code examples and whether Google reads them
CodeGoogleWhy
deReads itA language alone: German, for every country.
en-GBReads itEnglish for the United Kingdom. Language first, then the country.
fr-BEReads itFrench for Belgium.
zh-HantReads itChinese in Traditional script. A script code (ISO 15924) may come after the language.
x-defaultReads itThe page for anyone whose language you don't list, such as a language picker.
en-UKIgnores itUK isn't a country code Google reads. The United Kingdom is GB.
es-419Ignores itNumber regions like 419 (Latin America) aren't supported. Use one code per country.
usIgnores itA country code alone. The first code is always the language, so this would be English: en-US or en.
en_USIgnores itJoined with an underscore. Google's codes use a dash: en-US.
jpIgnores itjp is Japan's country code, not a language. Japanese is ja.

What Google says

Quoted from Google Search Central, checked December 3, 2026.

  • “Each language version must list itself as well as all other language versions.” “Alternate URLs must be fully-qualified, including the transport method (http/https).” (Tell Google about localized versions of your page, updated September 21, 2026)
  • “If two pages don't both point to each other, the tags will be ignored. This is so that someone on another site can't arbitrarily create a tag naming itself as an alternative version of one of your pages.” (Tell Google about localized versions of your page, updated September 21, 2026)
  • “The <link> tags must be inside a well-formed <head> section of the HTML.” Also, “don't combine hreflang annotations with other attributes such as media in a single <link> tag.” (Tell Google about localized versions of your page, updated September 21, 2026)
  • “Only language codes listed in ISO 639-1 and region codes listed in ISO 3166-1 Alpha 2 are supported; other codes that aren't listed in those standards, such as es-419, aren't supported.” “You can't specify the country code by itself.” (Tell Google about localized versions of your page, updated September 21, 2026)
  • “If you're using hreflang elements, make sure to specify a canonical page in the same language, or the best possible substitute language if a canonical page doesn't exist for the same language.” (How to specify a canonical URL, updated July 10, 2026)

The checker loads each page from our server as a crawler named SerpwrightBot, follows up to 10 redirects and waits up to 8 seconds per page. It reads the HTML the server sends, not tags a script adds later, and not your sitemap. To see why a version isn't indexed, use the noindex checker; to follow its redirects, the HTTP status checker.

New pages, checked until they're indexed

Serpwright reads your Search Console data, finds the searches your site shows up for but has no page for, then writes and publishes an article for each one you approve.

  • Articles go to WordPress, Ghost, Webflow or Shopify, with their title, description and schema markup.
  • With Search Console connected, it checks each article a day after it goes live, again after a week if it isn't indexed yet, and tells you in the app if it still isn't.
  • Nothing goes live until you approve it.

3 days free, no card.

Questions

What does an hreflang checker check?
This one loads your page, reads every hreflang link in the HTML head and the Link header, and checks each code against the lists Google reads. Then it loads up to 20 of the versions the page lists and checks that each one links back, answers 200, doesn't redirect and isn't noindexed. It also flags links that fall outside the head, pages that don't list themselves, and the same code pointing at two pages.
Why does Google ignore my hreflang tags?
The usual cause is a missing return link: if your English page lists the German one, the German page has to list the English one too, or Google ignores the pair. Other causes are codes Google can't read (en-UK, es-419, a country code alone), relative addresses, links that land in the body after an image or other element closes the head early, and tags that point at pages which redirect or aren't indexed.
Do I need x-default?
No, it's optional. x-default names the page for anyone whose language you don't list, and Google says it was designed for language picker pages. If your site has a picker or an international home page, point x-default at it; if not, you can leave it out or use your main language version.
Should a page list itself in its hreflang tags?
Yes. Google's rule is that each language version must list itself as well as every other version, so the set of links is the same on every version of the page.
HTML tags, Link header or sitemap: which should I use?
Google treats the three the same, so pick the one that's easiest to keep correct. HTML tags suit most sites. The Link header is for files that aren't web pages, like PDFs. A sitemap keeps the tags out of the pages, which helps when there are many languages. Using more than one gives no benefit in Search and is harder to keep in sync. The generator writes all three.
Can hreflang point to another domain?
Yes. Google says alternate addresses don't need to be on the same domain, so example.com and example.de can point to each other. Each address must be complete, starting with https:// or http://.
Does Google use hreflang to tell what language a page is in?
No. Google says it detects a page's language with its own algorithms and doesn't use hreflang or the HTML lang attribute for that. hreflang only tells Google which pages are versions of each other and who each one is for.
Does this tool save the pages I check?
No. The address goes to our server, which loads that page and up to 20 of the language versions it lists once each, and sends back their hreflang links; we don't store the addresses or the pages. The generator runs in your browser. We count one anonymous use per visit, recording whether anything needed fixing and roughly how many links the page had, or which format you copied, never an address.