Hreflang Tag Generator
v1.0Hreflang Tag Generator turns a list of localized pages into a validated block of <link rel="alternate"> tags for your <head>, or <xhtml:link> tags for an XML sitemap. List each page's language-region code and absolute URL.
Codes are checked against common language and region codes, so a typo like zz or an unknown region is caught with its row number instead of shipping as a tag search engines ignore. Duplicate codes are flagged too, and a reminder notes that every listed page should link back to the others. You can add an x-default entry for the fallback page, and it always comes last in the output.
Only rows that pass validation appear in the HTML and XML tabs, so you never get a broken tag. Share puts your rows, the x-default setting and the active tab in a link. Everything runs in your browser.