SEO

hreflang tag generator

Map each language/region to its URL — get validated hreflang tags in three formats.

Output:
Output
 

For the HTML and HTTP-header forms, the same set must appear on every listed page (each page references all versions, including itself). Script subtags (e.g. zh-Hans-CN) aren't validated.

About the output formats

  • HTML tags<link rel="alternate"> elements for the <head> of every HTML page in the set.
  • XML sitemap<url> entries with <xhtml:link> alternates for an XML sitemap. Lets you declare hreflang without editing each page's <head>; the usual choice for large sites.
  • HTTP headerLink: response headers. The only way to declare hreflang for non-HTML files such as PDFs, where there is no <head> to hold tags.
Browse language & region codes

A quick reference — type any of these into a code field. For the complete, authoritative lists, see the sources at the bottom of the page.

Common languages (ISO 639-1)

  • ar Arabic
  • bg Bulgarian
  • cs Czech
  • da Danish
  • de German
  • el Greek
  • en English
  • es Spanish
  • fa Persian
  • fi Finnish
  • fr French
  • he Hebrew
  • hi Hindi
  • hu Hungarian
  • id Indonesian
  • it Italian
  • ja Japanese
  • ko Korean
  • nl Dutch
  • no Norwegian
  • pl Polish
  • pt Portuguese
  • ro Romanian
  • ru Russian
  • sk Slovak
  • sv Swedish
  • th Thai
  • tr Turkish
  • uk Ukrainian
  • vi Vietnamese
  • zh Chinese

Africa (ISO 3166-1)

  • AO Angola
  • BF Burkina Faso
  • BI Burundi
  • BJ Benin
  • BW Botswana
  • CD Congo - Kinshasa
  • CF Central African Republic
  • CG Congo - Brazzaville
  • CI Côte d’Ivoire
  • CM Cameroon
  • CV Cape Verde
  • DJ Djibouti
  • DZ Algeria
  • EG Egypt
  • EH Western Sahara
  • ER Eritrea
  • ET Ethiopia
  • GA Gabon
  • GH Ghana
  • GM Gambia
  • GN Guinea
  • GQ Equatorial Guinea
  • GW Guinea-Bissau
  • KE Kenya
  • KM Comoros
  • LR Liberia
  • LS Lesotho
  • LY Libya
  • MA Morocco
  • MG Madagascar
  • ML Mali
  • MR Mauritania
  • MU Mauritius
  • MW Malawi
  • MZ Mozambique
  • NA Namibia
  • NE Niger
  • NG Nigeria
  • RE Réunion
  • RW Rwanda
  • SC Seychelles
  • SD Sudan
  • SH St. Helena
  • SL Sierra Leone
  • SN Senegal
  • SO Somalia
  • SS South Sudan
  • ST São Tomé & Príncipe
  • SZ Eswatini
  • TD Chad
  • TG Togo
  • TN Tunisia
  • TZ Tanzania
  • UG Uganda
  • YT Mayotte
  • ZA South Africa
  • ZM Zambia
  • ZW Zimbabwe

Asia (ISO 3166-1)

  • AE United Arab Emirates
  • AF Afghanistan
  • AM Armenia
  • AZ Azerbaijan
  • BD Bangladesh
  • BH Bahrain
  • BN Brunei
  • BT Bhutan
  • CN China
  • CY Cyprus
  • GE Georgia
  • HK Hong Kong SAR China
  • ID Indonesia
  • IL Israel
  • IN India
  • IO British Indian Ocean Territory
  • IQ Iraq
  • IR Iran
  • JO Jordan
  • JP Japan
  • KG Kyrgyzstan
  • KH Cambodia
  • KP North Korea
  • KR South Korea
  • KW Kuwait
  • KZ Kazakhstan
  • LA Laos
  • LB Lebanon
  • LK Sri Lanka
  • MM Myanmar (Burma)
  • MN Mongolia
  • MO Macao SAR China
  • MV Maldives
  • MY Malaysia
  • NP Nepal
  • OM Oman
  • PH Philippines
  • PK Pakistan
  • PS Palestinian Territories
  • QA Qatar
  • SA Saudi Arabia
  • SG Singapore
  • SY Syria
  • TH Thailand
  • TJ Tajikistan
  • TL Timor-Leste
  • TM Turkmenistan
  • TR Türkiye
  • TW Taiwan
  • UZ Uzbekistan
  • VN Vietnam
  • YE Yemen

Europe (ISO 3166-1)

  • AD Andorra
  • AL Albania
  • AT Austria
  • AX Åland Islands
  • BA Bosnia & Herzegovina
  • BE Belgium
  • BG Bulgaria
  • BY Belarus
  • CH Switzerland
  • CQ Sark
  • CZ Czechia
  • DE Germany
  • DK Denmark
  • EE Estonia
  • ES Spain
  • FI Finland
  • FO Faroe Islands
  • FR France
  • GB United Kingdom
  • GG Guernsey
  • GI Gibraltar
  • GR Greece
  • HR Croatia
  • HU Hungary
  • IE Ireland
  • IM Isle of Man
  • IS Iceland
  • IT Italy
  • JE Jersey
  • LI Liechtenstein
  • LT Lithuania
  • LU Luxembourg
  • LV Latvia
  • MC Monaco
  • MD Moldova
  • ME Montenegro
  • MK North Macedonia
  • MT Malta
  • NL Netherlands
  • NO Norway
  • PL Poland
  • PT Portugal
  • RO Romania
  • RS Serbia
  • RU Russia
  • SE Sweden
  • SI Slovenia
  • SJ Svalbard & Jan Mayen
  • SK Slovakia
  • SM San Marino
  • UA Ukraine
  • VA Vatican City
  • XK Kosovo

North America (ISO 3166-1)

  • AG Antigua & Barbuda
  • AI Anguilla
  • AW Aruba
  • BB Barbados
  • BL St. Barthélemy
  • BM Bermuda
  • BQ Caribbean Netherlands
  • BS Bahamas
  • BZ Belize
  • CA Canada
  • CR Costa Rica
  • CU Cuba
  • CW Curaçao
  • DM Dominica
  • DO Dominican Republic
  • GD Grenada
  • GL Greenland
  • GP Guadeloupe
  • GT Guatemala
  • HN Honduras
  • HT Haiti
  • JM Jamaica
  • KN St. Kitts & Nevis
  • KY Cayman Islands
  • LC St. Lucia
  • MF St. Martin
  • MQ Martinique
  • MS Montserrat
  • MX Mexico
  • NI Nicaragua
  • PA Panama
  • PM St. Pierre & Miquelon
  • PR Puerto Rico
  • SV El Salvador
  • SX Sint Maarten
  • TC Turks & Caicos Islands
  • TT Trinidad & Tobago
  • US United States
  • VC St. Vincent & Grenadines
  • VG British Virgin Islands
  • VI U.S. Virgin Islands

South America (ISO 3166-1)

  • AR Argentina
  • BO Bolivia
  • BR Brazil
  • CL Chile
  • CO Colombia
  • EC Ecuador
  • FK Falkland Islands
  • GF French Guiana
  • GY Guyana
  • PE Peru
  • PY Paraguay
  • SR Suriname
  • UY Uruguay
  • VE Venezuela

Oceania (ISO 3166-1)

  • AS American Samoa
  • AU Australia
  • CC Cocos (Keeling) Islands
  • CK Cook Islands
  • CX Christmas Island
  • FJ Fiji
  • FM Micronesia
  • GU Guam
  • KI Kiribati
  • MH Marshall Islands
  • MP Northern Mariana Islands
  • NC New Caledonia
  • NF Norfolk Island
  • NR Nauru
  • NU Niue
  • NZ New Zealand
  • PF French Polynesia
  • PG Papua New Guinea
  • PN Pitcairn Islands
  • PW Palau
  • SB Solomon Islands
  • TK Tokelau
  • TO Tonga
  • TV Tuvalu
  • UM U.S. Outlying Islands
  • VU Vanuatu
  • WF Wallis & Futuna
  • WS Samoa

Antarctica (ISO 3166-1)

  • AQ Antarctica
  • BV Bouvet Island
  • GS South Georgia & South Sandwich Islands
  • HM Heard & McDonald Islands
  • TF French Southern Territories

Sources & references