Free tool
Hreflang that every version agrees on.
Generate the tags for every language and country version of a page, or paste what you have and see which return links are missing, which codes Google will ignore and where x-default disagrees.
- Runs in your browser
- Nothing is uploaded or stored
- Free, no sign-up
Where everyone else should go: often the main version or a language picker. Optional.
Paste the urlset with its xhtml:link entries.
Pasted HTML and XML are read as plain text. Nothing in them is loaded or run, and nothing is uploaded.
Columns: group, hreflang, url. Rows with the same group are versions of one page; every version gets its own entry listing all of them.
Running a site across the UK, the US and Türkiye? International SEO is one of the things we do most.
International SEOHow it works
Method, data and limits
The rules come from Google’s guide to localized versions (updated 21 September 2026): an ISO 639-1 language code, optionally an ISO 15924 script and an ISO 3166-1 alpha-2 region; x-default for the fallback; every version listing itself and all the others; fully qualified URLs. Codes are checked against the complete ISO lists, and the cases Google calls out are flagged: a region on its own, UK instead of GB, EU, UN and numeric regions such as es-419.
Return links are checked across the pages you paste: if page A lists page B, page B must list page A. Pages you didn’t paste are marked as not checked rather than guessed. Pasted HTML and XML are read as plain text, so nothing in them is rendered, loaded or run.
What hreflang does
Hreflang annotations tell Google which URLs are language or regional versions of the same page, so Google Search can point each user to the most appropriate one. The aim is that a searcher in Manchester sees your en-GB page with prices in pounds, one in Texas sees your en-US page, and a Turkish speaker sees your Turkish page.
What hreflang doesn’t do is tell Google which language a page is in. Google works that out from the visible content and uses neither hreflang nor the HTML lang attribute for it. Translating only the menus and footer isn’t enough either: Google treats language versions as duplicates when their main content is in the same language.
Codes that work, and codes that don’t
Each value is an ISO 639-1 language code, optionally followed by an ISO 15924 script code and an ISO 3166-1 alpha-2 region code: en, en-GB, zh-Hant. The language always comes first and is never optional, because Google doesn’t derive a language from a country code. Case doesn’t matter, so en-gb and en-GB are the same.
In audits, these are the code errors we see most:
en-UK. Google saysUK, likeEUandUN, has no effect; the United Kingdom’s code isGB, so useen-GB.ukon its own, which means Ukrainian, not British English.gboruswith no language in front: a region on its own is invalid.es-419for Latin American Spanish, which Google doesn’t support.
Return links, URLs and canonicals
Each version must list itself and every other version. Annotations work in pairs: if your en-GB page points to your tr-TR page but the Turkish page doesn’t point back, Google ignores that pair, while pairs that do point to each other still count. URLs must be fully qualified, including https://, and HTML link tags must sit inside a well-formed head section.
List the URL you want indexed in each market: the final address, not one that redirects or carries noindex. Keep canonicals in step. Google’s guidance is to give a localised page a canonical in the same language, so never point your Turkish page’s canonical at the English one; on most sites each version is simply its own canonical.
If your UK and US pages are essentially the same English content, Google may treat them as duplicates and pick one. It recommends using hreflang alongside canonicals to help it show the right regional URL, but the stronger fix is to localise the pages properly, with their own prices, spelling and delivery terms.
Annotations can go in the HTML head, in HTTP Link headers, which suit PDFs, or in an XML sitemap using the xhtml namespace. Google treats the three as equivalent, so choose the one you can keep accurate. In a sitemap, each url entry lists every version, itself included.
Setting up the UK, US and Türkiye
Use regional codes only where versions differ. If one English page serves everyone, en is enough. If you run separate UK and US pages with their own prices, spelling and delivery terms, label them en-GB and en-US, and consider an en page as the catch-all for English speakers elsewhere, as Google’s own example does.
The same logic applies to Turkish. tr describes a page for Turkish speakers anywhere and tr-TR one for users in Türkiye. With a single Turkish version, tr is usually the simpler and more accurate label; a region code earns its place when you have two Turkish versions to tell apart.
Google recommends x-default for the fallback: the page people see when no version matches their language or region. Point it at your international English page or a language selector, and use the same URL across the whole cluster.
Don’t redirect visitors automatically by IP address or browser language. Google advises against it, because such redirects can stop users and search engines seeing all your versions, and Googlebot usually crawls from the US. Link to the other versions instead and let people choose.
Keeping clusters in sync
Hreflang fails quietly: nothing looks broken, but the wrong version appears in the wrong market. In audits it has usually gone wrong when the site changed, with a new market added to some templates but not others, a page retired in one language only, or a migration that changed URLs while the annotations kept the old ones.
Treat each cluster as one unit. When you add a version, update every page in the cluster in the same release; when you remove one, take it out of every annotation and redirect or retire the URL. Generate annotations from the same data as your canonicals and sitemaps, not from a hand-kept list.
When you work through the validator above, fix missing return links first, since Google ignores those pairs, then invalid codes, then URLs that redirect or aren’t canonical. Search Console’s International Targeting report has been deprecated, so check the Google-selected canonical in URL Inspection for key pages, and validate again after any release that touches templates or URLs.
FAQ
Questions people ask
Should I use en-GB or just en?
Use en if one English page serves everyone. Use en-GB and en-US only when you have a separate version for each market, and consider an en page as the catch-all for English speakers elsewhere.
Is en-UK a valid hreflang value?
No. The United Kingdom’s ISO 3166-1 code is GB, and Google says UK has no effect in hreflang. Use en-GB.
Do I need x-default?
It isn’t required, but Google recommends it to name the fallback for users whose language or region matches none of your versions. Pick one URL, such as a language selector or your international page, and use it on every page in the cluster.
Should I use HTML tags, HTTP headers or a sitemap?
Google treats them as equivalent, so use the method you can keep accurate. HTTP headers are useful for PDFs and other non-HTML files, sitemaps keep large sites in one place, and mixing methods only gives them room to disagree.
Does Google use the lang attribute to detect a page’s language?
No. Google says it uses neither hreflang nor the lang attribute for that; it relies on the page’s visible content. Make sure the main content of each version really is in its language.
Can I check hreflang in Search Console?
Not directly. The International Targeting report has been deprecated, although Google says it still supports and uses hreflang. URL Inspection shows the Google-selected canonical, which tells you whether Google has folded one version into another.
Insights
From the blog
International SEO
Seven hreflang mistakes we find on international sites
The hreflang errors that show the wrong page in the wrong country, from missing return links and invalid codes to clashing canonicals, and how to audit them.
Read articleInternational SEO
UK vs US SEO: what changes when you sell on both sides of the Atlantic
Spelling, search behaviour, local SEO, Bing share, regulation and site structure: a practical guide to running SEO for the UK and US markets at the same time.
Read articleInternational SEO
Entering the Turkish market: an SEO guide for UK and US brands
How UK and US brands can win Turkish search: keyword research in Turkish, the right site structure, lira pricing and taksit, KVKK, marketplaces and local PR.
Read articleMore free tools
- SERP preview & pixel checkerWriting titles and descriptions, or checking a whole site’s at once.
- robots.txt tester & AI crawler generatorBefore you publish a robots.txt change, or when deciding which AI crawlers to allow.
- GA4 UTM builderTagging newsletters, Business Profile links, PR placements, QR codes and paid campaigns.
- SEO-friendly URL slug generatorPlanning new pages, migrating a site or cleaning up URLs in bulk.
Get a free SEO audit
See what’s holding your search growth back.
Send us your URL. Within 48 hours a senior strategist will send you a personalised audit with your biggest opportunities, completely free.
- No obligation, no sales pitch
- Reviewed by a human expert
- Google, Bing & AI search