Hreflang Checker: Free Online Tag Validator

Hreflang Checker

Test the language versions of a page, and whether they link back to each other.

Reads the HTML, the HTTP header and the sitemap, then opens up to 30 of the listed pages.

The sitemap has another address

Left empty, the sitemaps named in robots.txt are read, or /sitemap.xml.

A sitemap, a compressed sitemap (.gz) or a sitemap index, of which the first 5 files are read.

All entries are compared with each other. One page and its versions are also opened: this one, or the first with a problem.

Useful before a page goes live, or when a website blocks automated visits.

Test a code

Separate several with spaces or commas.

  • en-UKNot supportedUse en-GB

    The country code of the United Kingdom is GB. UK is only reserved in ISO 3166-1, and Google ignores it.

  • de-ATSupported

    German (Austria)

  • jpNot supportedUse ja

    JP is a country code (Japan). A code has to start with a language.

Common wrong codes and the right ones

WrittenUseWhy
en-UKen-GBThe country code of the United Kingdom is GB. UK is only reserved in ISO 3166-1, and Google ignores it.
uken-GBuk is the language Ukrainian. The country code of the United Kingdom is GB.
en_USen-USThe parts are joined with an underscore. Google expects a hyphen.
GB-enen-GBThe order is reversed: the language comes first, then the country.
jpjaJP is a country code (Japan). A code has to start with a language.
cnzhCN is the country China. Use zh, or zh-Hans and zh-Hant for the two scripts.
sesvse is the language Northern Sami. It does not stand for the country (Sweden).
benl-BEbe is the language Belarusian. For Belgium write nl-BE, fr-BE or de-BE.
es-419es419 is the UN number for Latin America. Google names es-419 as a code it does not support.
en-EUenEU (European Union) is not an assigned country code in ISO 3166-1, so Google ignores that part.
Show 24 more
WrittenUseWhy
es-LAesLA is Laos. Latin America has no country code: use es for all Spanish speakers, or one tag per country, such as es-MX and es-AR.
brpt-BRbr is the language Breton. It does not stand for the country (Brazil).
twzh-TWtw is the language Twi. It does not stand for the country (Taiwan).
krkokr is the language Kanuri. It does not stand for the country (South Korea).
grelGR is a country code (Greece). A code has to start with a language.
czcsCZ is a country code (Czechia). A code has to start with a language.
dkdaDK is a country code (Denmark). A code has to start with a language.
uaukUA is a country code (Ukraine). A code has to start with a language.
vnviVN is a country code (Vietnam). A code has to start with a language.
usen-USUS is a country code (United States). A code has to start with a language.
mxes-MXMX is a country code (Mexico). A code has to start with a language.
atde-ATAT is a country code (Austria). A code has to start with a language.
chde-CHch is the language Chamorro. For Switzerland write de-CH, fr-CH or it-CH.
caen-CAca is the language Catalan. For Canada write en-CA or fr-CA.
engenGoogle reads two-letter language codes (ISO 639-1). eng is the three-letter form of English.
en-USAen-USGoogle reads two-letter country codes. USA is a three-letter one (United States).
ar-ARarThe language code is repeated as the country, and AR is the code of Argentina.
sv-SVsv-SEThe language code is repeated as the country, and SV is the code of El Salvador.
ja-JAja-JPThe language code is repeated as the country, but JA is not the country code.
ko-KOko-KRThe language code is repeated as the country, but KO is not the country code.
da-DAda-DKThe language code is repeated as the country, but DA is not the country code.
zh-CHSzh-HansCHS is an old Windows code for Chinese.
iwheiw is not the current code for Hebrew.
defaultx-defaultThe fallback value is written x-default.

Valid language and country codes

A language code comes first. A script and a country may follow, joined with hyphens: en, en-GB, zh-Hant, zh-Hans-SG. Capital letters make no difference.

Languages (ISO 639-1): 183
  • abAbkhazian
  • aaAfar
  • afAfrikaans
  • akAkan
  • sqAlbanian
  • amAmharic
  • arArabic
  • anAragonese
  • hyArmenian
  • asAssamese
  • avAvaric
  • aeAvestan
  • ayAymara
  • azAzerbaijani
  • bmBambara
  • baBashkir
  • euBasque
  • beBelarusian
  • bnBengali (Bangla)
  • biBislama
  • bsBosnian
  • brBreton
  • bgBulgarian
  • myBurmese
  • caCatalan
  • chChamorro
  • ceChechen
  • nyChichewa (Nyanja)
  • zhChinese
  • cuChurch Slavic
  • cvChuvash
  • kwCornish
  • coCorsican
  • crCree
  • hrCroatian
  • csCzech
  • daDanish
  • dvDhivehi
  • nlDutch
  • dzDzongkha
  • enEnglish
  • eoEsperanto
  • etEstonian
  • eeEwe
  • foFaroese
  • fjFijian
  • fiFinnish
  • frFrench
  • ffFulah
  • glGalician
  • lgGanda
  • kaGeorgian
  • deGerman
  • elGreek
  • gnGuarani
  • guGujarati
  • htHaitian Creole
  • haHausa
  • heHebrew
  • hzHerero
  • hiHindi
  • hoHiri Motu
  • huHungarian
  • isIcelandic
  • ioIdo
  • igIgbo
  • idIndonesian
  • iaInterlingua
  • ieInterlingue
  • iuInuktitut
  • ikInupiaq
  • gaIrish
  • itItalian
  • jaJapanese
  • jvJavanese
  • klKalaallisut
  • knKannada
  • krKanuri
  • ksKashmiri
  • kkKazakh
  • kmKhmer
  • kiKikuyu
  • rwKinyarwanda
  • kvKomi
  • kgKongo
  • koKorean
  • kjKuanyama
  • kuKurdish
  • kyKyrgyz
  • loLao
  • laLatin
  • lvLatvian
  • liLimburgish
  • lnLingala
  • ltLithuanian
  • luLuba-Katanga
  • lbLuxembourgish
  • mkMacedonian
  • mgMalagasy
  • msMalay
  • mlMalayalam
  • mtMaltese
  • gvManx
  • miMaori
  • mrMarathi
  • mhMarshallese
  • mnMongolian
  • naNauru
  • nvNavajo
  • ngNdonga
  • neNepali
  • ndNorth Ndebele
  • seNorthern Sami
  • noNorwegian
  • nbNorwegian Bokmål
  • nnNorwegian Nynorsk
  • ocOccitan
  • orOdia (Oriya)
  • ojOjibwa
  • omOromo
  • osOssetic
  • piPali
  • psPashto
  • faPersian
  • plPolish
  • ptPortuguese
  • paPunjabi
  • quQuechua
  • roRomanian
  • rmRomansh
  • rnRundi
  • ruRussian
  • smSamoan
  • sgSango
  • saSanskrit
  • scSardinian
  • gdScottish Gaelic
  • srSerbian
  • snShona
  • iiSichuan Yi
  • sdSindhi
  • siSinhala
  • skSlovak
  • slSlovenian
  • soSomali
  • nrSouth Ndebele
  • stSouthern Sotho
  • esSpanish
  • suSundanese
  • swSwahili
  • ssSwati
  • svSwedish
  • tlTagalog
  • tyTahitian
  • tgTajik
  • taTamil
  • ttTatar
  • teTelugu
  • thThai
  • boTibetan
  • tiTigrinya
  • toTongan
  • tsTsonga
  • tnTswana
  • trTurkish
  • tkTurkmen
  • twTwi
  • ukUkrainian
  • urUrdu
  • ugUyghur
  • uzUzbek
  • veVenda
  • viVietnamese
  • voVolapük
  • waWalloon
  • cyWelsh
  • fyWestern Frisian
  • woWolof
  • xhXhosa
  • yiYiddish
  • yoYoruba
  • zaZhuang
  • zuZulu
Countries and regions (ISO 3166-1 alpha-2): 249
  • AFAfghanistan
  • ALAlbania
  • DZAlgeria
  • ASAmerican Samoa
  • ADAndorra
  • AOAngola
  • AIAnguilla
  • AQAntarctica
  • AGAntigua and Barbuda
  • ARArgentina
  • AMArmenia
  • AWAruba
  • AUAustralia
  • ATAustria
  • AZAzerbaijan
  • BSBahamas
  • BHBahrain
  • BDBangladesh
  • BBBarbados
  • BYBelarus
  • BEBelgium
  • BZBelize
  • BJBenin
  • BMBermuda
  • BTBhutan
  • BOBolivia
  • BABosnia and Herzegovina
  • BWBotswana
  • BVBouvet Island
  • BRBrazil
  • IOBritish Indian Ocean Territory
  • VGBritish Virgin Islands
  • BNBrunei
  • BGBulgaria
  • BFBurkina Faso
  • BIBurundi
  • KHCambodia
  • CMCameroon
  • CACanada
  • CVCape Verde
  • BQCaribbean Netherlands
  • KYCayman Islands
  • CFCentral African Republic
  • TDChad
  • CLChile
  • CNChina
  • CXChristmas Island
  • CCCocos (Keeling) Islands
  • COColombia
  • KMComoros
  • CDCongo (DR Congo)
  • CGCongo (Republic)
  • CKCook Islands
  • CRCosta Rica
  • HRCroatia
  • CUCuba
  • CWCuraçao
  • CYCyprus
  • CZCzechia
  • CICôte d'Ivoire
  • DKDenmark
  • DJDjibouti
  • DMDominica
  • DODominican Republic
  • ECEcuador
  • EGEgypt
  • SVEl Salvador
  • GQEquatorial Guinea
  • EREritrea
  • EEEstonia
  • SZEswatini
  • ETEthiopia
  • FKFalkland Islands
  • FOFaroe Islands
  • FJFiji
  • FIFinland
  • FRFrance
  • GFFrench Guiana
  • PFFrench Polynesia
  • TFFrench Southern Territories
  • GAGabon
  • GMGambia
  • GEGeorgia
  • DEGermany
  • GHGhana
  • GIGibraltar
  • GRGreece
  • GLGreenland
  • GDGrenada
  • GPGuadeloupe
  • GUGuam
  • GTGuatemala
  • GGGuernsey
  • GNGuinea
  • GWGuinea-Bissau
  • GYGuyana
  • HTHaiti
  • HMHeard and McDonald Islands
  • HNHonduras
  • HKHong Kong
  • HUHungary
  • ISIceland
  • INIndia
  • IDIndonesia
  • IRIran
  • IQIraq
  • IEIreland
  • IMIsle of Man
  • ILIsrael
  • ITItaly
  • JMJamaica
  • JPJapan
  • JEJersey
  • JOJordan
  • KZKazakhstan
  • KEKenya
  • KIKiribati
  • KWKuwait
  • KGKyrgyzstan
  • LALaos
  • LVLatvia
  • LBLebanon
  • LSLesotho
  • LRLiberia
  • LYLibya
  • LILiechtenstein
  • LTLithuania
  • LULuxembourg
  • MOMacao
  • MGMadagascar
  • MWMalawi
  • MYMalaysia
  • MVMaldives
  • MLMali
  • MTMalta
  • MHMarshall Islands
  • MQMartinique
  • MRMauritania
  • MUMauritius
  • YTMayotte
  • MXMexico
  • FMMicronesia
  • MDMoldova
  • MCMonaco
  • MNMongolia
  • MEMontenegro
  • MSMontserrat
  • MAMorocco
  • MZMozambique
  • MMMyanmar (Burma)
  • NANamibia
  • NRNauru
  • NPNepal
  • NLNetherlands
  • NCNew Caledonia
  • NZNew Zealand
  • NINicaragua
  • NENiger
  • NGNigeria
  • NUNiue
  • NFNorfolk Island
  • KPNorth Korea
  • MKNorth Macedonia
  • MPNorthern Mariana Islands
  • NONorway
  • OMOman
  • PKPakistan
  • PWPalau
  • PSPalestine
  • PAPanama
  • PGPapua New Guinea
  • PYParaguay
  • PEPeru
  • PHPhilippines
  • PNPitcairn Islands
  • PLPoland
  • PTPortugal
  • PRPuerto Rico
  • QAQatar
  • RORomania
  • RURussia
  • RWRwanda
  • RERéunion
  • BLSaint Barthélemy
  • SHSaint Helena
  • KNSaint Kitts and Nevis
  • LCSaint Lucia
  • MFSaint Martin (French part)
  • PMSaint Pierre and Miquelon
  • VCSaint Vincent and Grenadines
  • WSSamoa
  • SMSan Marino
  • SASaudi Arabia
  • SNSenegal
  • RSSerbia
  • SCSeychelles
  • SLSierra Leone
  • SGSingapore
  • SXSint Maarten (Dutch part)
  • SKSlovakia
  • SISlovenia
  • SBSolomon Islands
  • SOSomalia
  • ZASouth Africa
  • GSSouth Georgia and South Sandwich Islands
  • KRSouth Korea
  • SSSouth Sudan
  • ESSpain
  • LKSri Lanka
  • SDSudan
  • SRSuriname
  • SJSvalbard and Jan Mayen
  • SESweden
  • CHSwitzerland
  • SYSyria
  • STSão Tomé and Príncipe
  • TWTaiwan
  • TJTajikistan
  • TZTanzania
  • THThailand
  • TLTimor-Leste
  • TGTogo
  • TKTokelau
  • TOTonga
  • TTTrinidad and Tobago
  • TNTunisia
  • TMTurkmenistan
  • TCTurks and Caicos Islands
  • TVTuvalu
  • TRTürkiye
  • UMU.S. Outlying Islands
  • VIU.S. Virgin Islands
  • UGUganda
  • UAUkraine
  • AEUnited Arab Emirates
  • GBUnited Kingdom
  • USUnited States
  • UYUruguay
  • UZUzbekistan
  • VUVanuatu
  • VAVatican City
  • VEVenezuela
  • VNVietnam
  • WFWallis and Futuna
  • EHWestern Sahara
  • YEYemen
  • ZMZambia
  • ZWZimbabwe
  • AXÅland Islands
Scripts in use for hreflang (ISO 15924): 8
  • ArabArabic
  • HansChinese, Simplified
  • HantChinese, Traditional
  • CyrlCyrillic
  • DevaDevanagari
  • GuruGurmukhi
  • LatnLatin
  • MongMongolian

Lists compared with the Library of Congress, the Unicode Consortium and the United Nations on December 5, 2026.

What Google and Bing say

  • Google uses hreflang to show people the version for their language and country. It does not use hreflang, or the HTML lang attribute, to find out which language a page is in.
  • If two pages do not both point to each other, Google ignores the tags between them. Pairs that do are still used, even when the set is incomplete.
  • The HTML, the HTTP header and the sitemap count the same. Using more than one has no benefit in Google Search. Google documentation, updated September 21, 2026
  • Microsoft recommends hreflang for Bing to define language and regional targeting. In 2020 it called hreflang a far weaker signal than the content-language tag. Bing Webmaster Blog, December 19, 2025

A hreflang checker tests whether the language and country versions of a page are tagged correctly and point back to each other. With this free tool you enter a page address, an XML sitemap or pasted code, and it returns a verdict, a table showing who lists whom, and a specific fix for every problem it finds.

What Is Hreflang and Why Does It Matter?

Hreflang is an annotation that tells search engines which language, and optionally which country, a page targets, and which other URLs are its translations or regional equivalents. According to Google's Search Central documentation, it helps Google show the right version to the right searcher. It does not raise rankings by itself. It swaps the URL shown in results.

Each annotation pairs a code with an absolute URL. The code is a two-letter language (such as en), optionally followed by a hyphen and a region (en-GB, pt-BR) or a script (zh-Hant). The special value x-default marks the fallback page for everyone else, usually a language selector or a global homepage.

You can place the annotations in three spots: link tags in the HTML head, an HTTP Link header, or an XML sitemap. Use one method consistently for a set of pages. Two rules apply to all of them:

  • Every version must list itself, not only its siblings.
  • Every version must link back. If page A points to page B but B does not point to A, search engines may ignore the pair. These are called return tags.

How to Use the Hreflang Checker

You can start from a live page, a whole sitemap, or code you paste, and each route ends with the same report.

  1. Choose your way in: a single page, The whole sitemap, or pasted code.
  2. For a page, type the URL into Page address, for example https://example.com/en/. If your hreflang lives in a sitemap, select The sitemap has another address and enter the Sitemap address, such as https://example.com/sitemap-en.xml.
  3. For a sitemap, enter the full sitemap URL, for example https://example.com/sitemap.xml. Optionally fill in Page to open and check (optional) to put one URL in focus.
  4. For pasted code, drop your tags, Link header, sitemap or page source into the Tags, Link header, sitemap or page source box. If the tags use relative addresses, add the Address of the page they are on (optional). The head section alone is enough.
  5. Select Open and check. Select Load an example first if you want to see a finished report.
  6. Read the verdict, then work through the findings. On large sitemaps, results come in batches, and Back to the first pages returns you to the start.

Worked Example: Finding a Missing Return Tag

Say your English page https://example.com/en/ contains four annotations: en-US pointing to /en/, en-UK pointing to /uk/, de pointing to /de/, and x-default pointing to the homepage. The German page lists the same four. The UK page has no hreflang at all.

The checker reports two problems. First, en-UK is not a valid code, because the United Kingdom's region code is GB, so the fix shown is en-GB. Second, the UK page does not link back to the English or German page, so those two links have no return tag. The matrix under Who lists whom shows an empty row for the UK page, and the Only pages with something missing filter narrows the table to it.

The repair is to add the full set of four tags, with the corrected en-GB code, to the head of every version, including the UK page itself. Run the check again and the verdict should clear.

How Do You Read the Results?

The report starts with an overall verdict, then breaks the details into sections you can scan in under a minute.

What the sections show

  • What is right: checks that passed, so you know what not to touch.
  • Where the tags are: whether the annotations came from the HTML, a Link header or a sitemap. Finding them in two places at once is worth a second look.
  • Who lists whom: a grid of every page against every other page. Gaps are missing return links.
  • All versions: each language or region version found, with its code and URL.
  • Changes and open points: a numbered list of problems, each with a Fix line and the affected tags or pages.
  • What this can mean: a plain explanation of why a finding matters.

What good and poor look like

A good result has every version listed by every other version, each page including itself, valid codes, absolute URLs, and one x-default. A poor result has gaps in the grid, codes the checker cannot validate, or tags that point to a redirected or broken address. Fix errors first, then warnings. A warning often means the code is understood but written in an unusual way, such as a wrong letter case.

How Does the Code Tester Work?

The code tester checks one or more hreflang codes you type and tells you whether each is valid, and what to write instead if it is not. Enter values like en-UK de-AT jp in One or more hreflang codes, or type a plain name such as Swedish, Brazil or ko into Find a language or country to look up the right code.

WrittenUseWhy
en-UKen-GBGB is the region code for the United Kingdom
jpjajp is Japan's country code; Japanese is ja
us-enen-USLanguage comes first, region second
en_USen-USUse a hyphen, not an underscore

The page also lists common wrong codes with their right versions, and full lists of valid language and country codes you can search. A short section called What Google and Bing say summarizes how both engines treat the annotations.

Who Should Use a Hreflang Checker?

Anyone who publishes the same content for more than one language or market will benefit, because hreflang errors fail silently. Nothing looks broken on screen, yet the wrong version may appear in search.

  • International SEO specialists auditing a client site before a migration or launch.
  • Developers who just wired hreflang into a template or sitemap and need proof it outputs the right pairs.
  • Ecommerce teams adding a new country store and wanting every product page cross-linked.
  • Content managers checking a translated blog post that shows the wrong language in results.

If you have not written the tags yet, build them first with the hreflang tags generator, then come back and verify the output.

Best Practices, Common Mistakes and Troubleshooting

Most hreflang failures come from a short list of repeat mistakes, and each one has a quick fix.

  • Missing return tags. Add the complete set of annotations to every version, not just the main one.
  • No self-reference. Each page must list its own URL with its own code.
  • Invalid codes. Replace en-UK, jp or us-en using the code tester.
  • Relative URLs. Use full addresses beginning with https. When pasting code, fill in the page address so relative paths can be resolved.
  • Conflicting canonicals. If a page's canonical points at another language version, the hreflang pair breaks. Compare with the canonical tag checker.
  • Tags pointing to redirects or errors. Link to the final, indexable URL of each version.
  • Mixed methods. HTML tags that disagree with the sitemap create confusion. Keep one source of truth.

If the report shows nothing found, check that the tags are in the head and not injected somewhere the page source does not include them. In that case, paste the rendered code into the paste box instead. For translated titles and descriptions that match each market, preview them in the SERP snippet preview.

What Are the Limits of This Check?

The checker tells you whether your annotations are consistent and correctly formed. It cannot promise that Google will show a given version, because search engines treat hreflang as a signal, not a command. It also does not judge translation quality or whether the content of two pages is truly equivalent. Very large sitemaps are shown in batches, so use the focus field or the filter to reach the pages you care about. Pasted text is limited to 1.5 MB, which is far more than a page head needs.

Run your page, sitemap or pasted code through the checker above, fix the items listed under changes and open points, and test again until every version links to every other. For more tools like this, browse the on-page SEO and meta tags tools.

Frequently Asked Questions

What is hreflang used for?
Hreflang tells search engines which language or country each version of a page targets and links those versions together. It helps the right version appear for the right searcher. For example, a UK visitor can see the en-GB page while a German visitor sees the de page.
How do I check hreflang tags on my site?
Enter your page address in the checker and select Open and check. The tool reads the tags and lists every version it finds. It then flags missing return links, invalid codes and gaps, with a fix for each problem.
Can I check a sitemap or pasted code instead of a live page?
Yes. The checker accepts a page address, a full XML sitemap address, or pasted hreflang tags, a Link header, a sitemap or page source. For pasted code, add the page address if your tags use relative URLs so they can be resolved.
What does a missing return tag mean?
A missing return tag means page A lists page B as an alternate, but page B does not list page A back. Search engines may ignore such a pair. Fix it by adding the full set of hreflang tags to every version, including each page itself.
Why does the checker say en-UK is wrong?
The code en-UK is invalid because the region code for the United Kingdom is GB, not UK. Use en-GB instead. The code tester on the page also catches swapped codes like us-en, underscores like en_US, and country codes like jp, which should be ja for Japanese.
Is the hreflang checker free to use?
Yes, the hreflang checker is free and you do not need to sign in. Enter a page, sitemap or pasted code and read the report. It checks that your annotations are consistent, but it cannot guarantee which version a search engine will show.
Recommended

Explore VPN options

A VPN changes your network exit. It does not guarantee anonymity.

Hide Your IP Encryption Network coverage
Protect My IP Now