Tool

hreflang return links: check a sitemap or a set of link tags

Paste an XML sitemap with hreflang alternates, or the hreflang link tags of several pages. The checker builds the set and reports problems page by page. It finds missing return links, pages that do not list themselves, URLs that are not fully qualified and values that point two ways. Every result names the line that decided it and links the Google page behind the rule. It runs in your browser. Nothing you paste is sent, fetched or stored on a server.

Google lists missing return links as a common mistake. If page X links to page Y, page Y must link back to page X. Google: Tell Google about localized versions of your page

It reads the text you paste and does not fetch your pages. To fetch a page and read what came back, use the instant audit. To check values one at a time against the ISO lists, use the hreflang code lookup.

Updated

Your pages

Paste an XML sitemap with xhtml:link alternates. Or put each page's URL on its own line, with that page's link elements under it. Nothing leaves this page.

What the set says

Paste a sitemap or link tags, or load an example. The result shows here as you type.

How to paste your pages

A sitemap is read as it is. Each url element is one page, named by its loc, and its xhtml:link elements are that page's alternates.

For link tags, put each page's URL on its own line, then the link elements from that page's head under it. The next URL on its own line starts the next page. Other tags in the paste are left alone.

https://example.com/en/
<link rel="alternate" hreflang="en" href="https://example.com/en/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/" />

https://example.com/de/
<link rel="alternate" hreflang="en" href="https://example.com/en/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/" />

A paste can hold up to 300,000 characters. For a bigger sitemap, paste the entries of one set of pages at a time. A link to a page that is not in the paste is listed, and its return link is not checked.

What it checks, and where each rule comes from

The checker reports a problem only when it holds a Google sentence for the rule. Each statement below is ours, and under it is the sentence it rests on, as written on the linked page. We read both pages on 15 Nov 2026. Value format goes through the same parser as the hreflang code lookup, with the ISO lists that page cites.

Google says that if two pages do not both point to each other, the tags are ignored.
If two pages don't both point to each other, the tags will be ignored. Google: Tell Google about localized versions of your page
Google lists missing return links as a common mistake. If page X links to page Y, page Y must link back to page X.
Missing return links: If page X links to page Y, page Y must link back to page X. Google: Tell Google about localized versions of your page
Google says annotations without return links may be ignored or read wrongly.
If this is not the case for all pages that use hreflang annotations, those annotations may be ignored or not interpreted correctly. Google: Tell Google about localized versions of your page
Google says you can leave some languages off some pages, and it still processes the pairs that point to each other.
If it becomes difficult to maintain a complete set of bidirectional links for every language, you can omit some languages on some pages; Google will still process the ones that point to each other. Google: Tell Google about localized versions of your page
Google says each language version must list itself as well as every other language version.
Each language version must list itself as well as all other language versions. Google: Tell Google about localized versions of your page
Google says each version of the page has one link for each variant, itself included.
For each variation of the page, include a set of <link> elements in the <head> element, one link for each page variant including itself. Google: Tell Google about localized versions of your page
Google says each url element in a sitemap lists every alternate version of the page, itself included.
Each <url> element must have a child element <xhtml:link rel="alternate" hreflang="supported_language-code"> that lists every alternate version of the page, including itself. Google: Tell Google about localized versions of your page

URL not fully qualified

Google says alternate URLs must be fully qualified, with http or https, and names //example.com/foo and /foo as wrong.
Alternate URLs must be fully-qualified, including the transport method (http/https), so: https://example.com/foo, not //example.com/foo or /foo Google: Tell Google about localized versions of your page
Google says to use fully qualified, absolute URLs in a sitemap.
Use fully-qualified, absolute URLs in your sitemaps. Google: Build and submit a sitemap

One value, two URLs

Google says the set of links is the same on every version of the page.
The set of links is identical for every version of the page. Google: Tell Google about localized versions of your page
Google says that in a sitemap the entry for each version has the same child entries.
Therefore if you have 3 versions of a page, your sitemap will have entries for the URLs of each version, and each entry will have 3 identical child entries. Google: Tell Google about localized versions of your page

x-default differs

Google says the set of links is the same on every version of the page.
The set of links is identical for every version of the page. Google: Tell Google about localized versions of your page
Google says that in a sitemap the entry for each version has the same child entries.
Therefore if you have 3 versions of a page, your sitemap will have entries for the URLs of each version, and each entry will have 3 identical child entries. Google: Tell Google about localized versions of your page
Google says x-default is used when no other language or region matches the browser setting.
The reserved x-default value is used when no other language/region matches the user's browser setting. Google: Tell Google about localized versions of your page

Value format

Google says the value is an ISO 639-1 language code, then an optional ISO 3166-1 alpha-2 region code.
The first code of the hreflang attribute is the language code (in ISO 639-1 format) followed by an optional second code that represents the region code (in ISO 3166-1 Alpha 2 format) of an alternate URL. Google: Tell Google about localized versions of your page
Google says only codes from those two lists are supported, and es-419 is not.
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. Google: Tell Google about localized versions of your page
Google says the value is one or two codes separated by a dash.
The hreflang attribute's value is comprised of one or optionally two values, separated by a dash. Google: Tell Google about localized versions of your page
Google says a country code cannot stand alone.
You can't specify the country code by itself. Google: Tell Google about localized versions of your page
Google says a script can be given too, in ISO 15924 format.
You can also specify the script itself explicitly using ISO 15924, like this: Google: Tell Google about localized versions of your page
Google says Search ignores a reserved region code such as EU, UN or UK.
If you use codes that are listed as reserved for something else, Google Search ignores that part of the annotation (for example, using EU, UN, or UK in hreflang annotations doesn't have an effect on Google Search). Google: Tell Google about localized versions of your page

url with no loc

Google says each url element must have a loc child with the page URL.
Each <url> element must include a <loc> child indicating the page URL. Google: Tell Google about localized versions of your page

xhtml namespace not declared

Google says a sitemap with alternates declares the xhtml namespace as xmlns:xhtml="http://www.w3.org/1999/xhtml".
Specify the xhtml namespace as follows: xmlns:xhtml="http://www.w3.org/1999/xhtml" Google: Tell Google about localized versions of your page

What it leaves alone

The checker does not flag an alternate on another domain. Nor does it flag one URL that carries two values, such as a page that is both en and en-GB. It does not ask for x-default, and it reports one only when the pages disagree about it. A value given twice on one page is not flagged either. Google's pages hold no sentence on it, so the checker only compares a value across pages.

Google says alternate URLs do not need to be on the same domain.
Alternate URLs do not need to be in the same domain. Google: Tell Google about localized versions of your page
Google says the generic page for a language can be one of the regional pages.
For example, if you have specific URLs for English speakers in Ireland (en-IE), Canada (en-CA), and Australia (en-AU), provide a generic English (en) page for searchers in the US, UK, and all other English-speaking locations. It can be one of the specific pages, if you choose. Google: Tell Google about localized versions of your page
Google says the link tags must be inside a well formed head section of the HTML.
The <link> tags must be inside a well-formed <head> section of the HTML. Google: Tell Google about localized versions of your page
Google says the variants can also be given in an HTTP header sent with the page.
You can return an HTTP header with your page's GET response to tell Google about all of the language and region variants of a page. Google: Tell Google about localized versions of your page

What it cannot tell you

It cannot tell you what a search engine does with your set. It reads the text you paste and repeats what Google's pages say about it.

It does not fetch your pages, so it cannot see whether the link tags really sit in each page's head, or what each URL returns. The instant audit fetches one page from our server and reads its raw HTML.

It compares URLs as the URL standard writes them, so letter case in the host and a default port do not count. A trailing slash, a different scheme or a different path does count. Where a page lists a near match, the result says so.

It does not read hreflang sent in an HTTP Link header. It reads a sitemap and link tags only.

What happens to the text you paste

It stays in your browser. The checker makes no request with it, and closing or reloading the tab discards it. The CSV is built in your browser too. The session recording and the click analytics on the rest of this site read text off a page, so this page does not load them.

The checker reads a sitemap with its own small reader. It runs nothing in the paste, loads no file the paste names, and does not read a DOCTYPE. There is no link to share a result, because a link would carry the paste.