About this tool
Turn a list of language codes and URLs, one pair per line, into <link rel="alternate" hreflang> tags, optionally adding an x-default; everything runs in your browser.
Each line is split on whitespace into a code and a URL, so use a space, not an equals sign; lines with one part are ignored silently. Accepted codes are a 2-3 letter language with optional 4-letter script and 2-letter or 3-digit region (en, en-GB, zh-Hant, es-419), or x-default. Codes ending in -uk, and repeats in any letter case, are skipped and listed above the output. The x-default tag reuses the first URL unless you typed one. URLs are not validated.