About this tool
Enter a language code and URL per locale to get the complete hreflang set including x-default. The tool checks the three mistakes that break hreflang most often: a code that does not match the BCP 47 shape (writing `zh-tw` instead of `zh-TW`, or using a non-existent code like `cn`), a relative URL where an absolute one is required (relative paths make the whole set be ignored), and duplicate codes. It also notes whether the chosen x-default has a matching entry.